From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: VIRT_ADDR_VARIES Date: Wed, 09 Nov 2011 09:44:21 -0800 Organization: UCLA Computer Science Department Message-ID: <4EBABBF5.5030602@cs.ucla.edu> References: <4EB73983.1060000@cs.ucla.edu> <4EB86864.5080709@cs.ucla.edu> <4EB96841.7020701@cs.ucla.edu> <4EB99C7D.8000407@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320860691 19365 80.91.229.12 (9 Nov 2011 17:44:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 17:44:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 09 18:44:47 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROCCc-0003i7-70 for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 18:44:46 +0100 Original-Received: from localhost ([::1]:47847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROCCb-0004vN-Pf for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 12:44:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROCCZ-0004uA-JF for emacs-devel@gnu.org; Wed, 09 Nov 2011 12:44:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROCCY-00018a-IN for emacs-devel@gnu.org; Wed, 09 Nov 2011 12:44:43 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:49863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROCCY-00017P-B9 for emacs-devel@gnu.org; Wed, 09 Nov 2011 12:44:42 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 503ABA60003; Wed, 9 Nov 2011 09:44:31 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3kReEOos4rZs; Wed, 9 Nov 2011 09:44:30 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id CEF5DA60001; Wed, 9 Nov 2011 09:44:30 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145959 Archived-At: On 11/08/11 14:06, Andreas Schwab wrote: >> Valgrind supplies its own allocator, but I didn't >> > think it could move initialized data around. > But the heap. Sorry, I'm lost. As I understand it, the executable in a traditional Unix-like system has storage laid out in this order: text (programs and read-only data) data (read-write initialized static data) bss (read-write zeroed static data) everything else Valgrind has some control over the layout in "everything else", but it can't affect the addresses in text, data, and bss. my_edata lives in "data", so how can valgrind affect whether a pointer compares less than my_edata?