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 09:53:25 +1300 Message-ID: <16822.6213.912468.936725@farnswood.snap.net.nz> References: <87k6rvvybw.fsf_-_@jurta.org> <200412071754.06950.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 1102455600 13534 80.91.229.6 (7 Dec 2004 21:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2004 21:40:00 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 07 22:39:50 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 1Cbn3l-00045d-00 for ; Tue, 07 Dec 2004 22:39:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbnDa-0001vh-Bx for ged-emacs-devel@m.gmane.org; Tue, 07 Dec 2004 16:49:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbnDT-0001vI-U5 for emacs-devel@gnu.org; Tue, 07 Dec 2004 16:49:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbnDS-0001uU-It for emacs-devel@gnu.org; Tue, 07 Dec 2004 16:49:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbnDR-0001u1-Tz for emacs-devel@gnu.org; Tue, 07 Dec 2004 16:49:49 -0500 Original-Received: from [199.232.41.5] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Cbn2t-00027J-Jb for emacs-devel@gnu.org; Tue, 07 Dec 2004 16:38:55 -0500 Original-Received: from [202.124.110.96] (helo=farnswood.snap.net.nz) by mx20.gnu.org with esmtp (Exim 4.34) id 1CbmhJ-0008Sy-3v for emacs-devel@gnu.org; Tue, 07 Dec 2004 16:16:38 -0500 Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 91E786283F; Tue, 7 Dec 2004 20:53:26 +0000 (GMT) Original-To: Paul Pogonyshev In-Reply-To: <200412071754.06950.pogonyshev@gmx.net> 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:30813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30813 > > Please do -- I know there is a memory corruption issue somewhere but > > so far nobody's been able to identify under what circumstances they > > happen. > > Somebody with a very fast machine with lots of RAM and lots of spare > time could try to run Emacs under Valgrind. Have you actually tried this? I can't get it to work with Emacs and the documentation says: doco> Emacs is known not to work with Valgrind because Emacs has its own doco> memory-management scheme. Emacs works fine if you build it using the doco> standard malloc/free routines. and this is what I get: ==2325== Invalid free() / delete / delete[] ==2325== at 0x1B900335: free (vg_replace_malloc.c:153) ==2325== by 0x81467B6: (within /usr/bin/emacs-21.2) ==2325== by 0x8054A15: (within /usr/bin/emacs-21.2) ==2325== by 0x80F1A38: (within /usr/bin/emacs-21.2) ==2325== Address 0x82B92D0 is not stack'd, malloc'd or (recently) free'd emacs: Memory exhausted--use M-x save-some-buffers RET I think it has something to do with the way that temacs dumps out emacs. Recently I downloaded Valgrind 2.2.0, and this now works with temacs where previously (2.0.0) it ended with a segmentation fault. This runs like a dog though, and you need either a supercomputer or a lot of patience. Nick