From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: EMACS and valgrind Date: Fri, 23 Jan 2004 22:07:44 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16401.39729.7130.20240@nick.uklinux.net> References: <16383.8247.758985.411260@nick.uklinux.net> <9743-Sat10Jan2004143440+0200-eliz@elta.co.il> <16393.51090.62851.168340@nick.uklinux.net> <9178-Sun18Jan2004211534+0200-eliz@elta.co.il> <16396.24781.247776.602605@nick.uklinux.net> <1438-Tue20Jan2004082138+0200-eliz@elta.co.il> <16400.17585.198467.331774@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074897482 7681 80.91.224.253 (23 Jan 2004 22:38:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 22:38:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jan 23 23:37:55 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ak9w2-0001PW-00 for ; Fri, 23 Jan 2004 23:37:54 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ak9w1-0002SP-00 for ; Fri, 23 Jan 2004 23:37:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ak9uT-0001Sv-6l for emacs-devel@quimby.gnus.org; Fri, 23 Jan 2004 17:36:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ak9tz-0001Pw-Mt for emacs-devel@gnu.org; Fri, 23 Jan 2004 17:35:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ak9tT-0000nE-3x for emacs-devel@gnu.org; Fri, 23 Jan 2004 17:35:46 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1Ak9tS-0000l8-Ju for emacs-devel@gnu.org; Fri, 23 Jan 2004 17:35:14 -0500 Original-Received: from [194.247.48.38] (helo=nick.uklinux.net) by mx20.gnu.org with esmtp (Exim 4.24) id 1Ak9i4-0007Zt-QS for emacs-devel@gnu.org; Fri, 23 Jan 2004 17:23:29 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 977B075FDE; Fri, 23 Jan 2004 22:07:45 +0000 (GMT) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.2.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19466 > Now, I have no idea whether the problem you se without USE_LSB_TAG is due to > the fact that valgrind uses a malloc implementation that returns pointers > whose value is larger than 2^29, but it seemed like a possible cause. It looks like USE_LSB_TAG has moved the problem from a lisp one to one of memory allocation. As Eli has said earlier, the valgrind team have noted that memory debugging doesn't work with Emacs: doc> Programs which are known not to work are: doc> * emacs starts up but immediately concludes it is out of memory and doc> aborts. Emacs has it's own memory-management scheme, but I don't doc> understand why this should interact so badly with Valgrind. Emacs doc> works fine if you build it to use the standard malloc/free routines. So I guess its not a simple problem. Nick