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: GC crashes Date: Wed, 8 Dec 2004 20:31:29 +1300 Message-ID: <16822.44497.636006.297768@farnswood.snap.net.nz> References: <200412071754.06950.pogonyshev@gmx.net> <16822.6213.912468.936725@farnswood.snap.net.nz> <200412080217.55955.pogonyshev@gmx.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 1102491541 22527 80.91.229.6 (8 Dec 2004 07:39:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2004 07:39:01 +0000 (UTC) Cc: "Kim F. Storm" , emacs-devel@gnu.org, Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 08:38:55 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CbwPX-0005NG-00 for ; Wed, 08 Dec 2004 08:38:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbwZM-0005H7-Vm for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2004 02:49:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbwZC-0005GF-DV for emacs-devel@gnu.org; Wed, 08 Dec 2004 02:48:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbwZB-0005Ew-2Z for emacs-devel@gnu.org; Wed, 08 Dec 2004 02:48:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbwZA-0005Eq-Vp for emacs-devel@gnu.org; Wed, 08 Dec 2004 02:48:53 -0500 Original-Received: from [202.124.110.164] (helo=farnswood.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbwP2-0008Ex-Ag for emacs-devel@gnu.org; Wed, 08 Dec 2004 02:38:25 -0500 Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 640CC6283F; Wed, 8 Dec 2004 07:31:30 +0000 (GMT) Original-To: "Jan D." In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.2.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30852 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30852 > > Then maybe someone should build it to use the standard malloc/free > > routines and try? (Yes, yes I should do it myself instead of bogging > > everybody else, but I don't have that much CPU time and I have not seen > > the infamous memory corruption yet, so I'm not that curious.) > > I just tried that, but it failed in the same way. I recently asked on the Valgrind mailing list about this very matter. This is what Julian Seward, the author of Valgrind said: JS> I"ve had varying success running GNU emacs on recent V"s; one time JS> it worked, but another time it didn"t. I think it is to do with JS> emacs doing something wildly non-portable with brk() and being JS> confused by V"s behaviour. xemacs doesn"t have any such stupidness. XEmacs doesn't seem to work with Valgrind, but assuming it dumps the executable in the same way, thats not surprising. JS> "build it using the standard malloc/free routines" is just a ./configure JS> option to emacs, IIRC. Something like --use-system-malloc -- you"ll have JS> to check, I don"t really remember. Note I also have to use JS> --with-x-toolkit=NONE in order to get a build of emacs which doesn"t JS> simply segfault at startup. I tried building Emacs with -DSYSTEM_MALLOC, --with-x-toolkit=no, and even --without-x (but not all combinations) to no avail. I feel the code that causes a problem is probably in unexec.c, or possibly emacs.c but this is just a guess and not a very educated one at that. Nick