From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Memory leak Date: Tue, 20 May 2008 08:48:57 +0200 Message-ID: <48327459.9000105@swipnet.se> References: <87skwgg302.fsf@uwakimon.sk.tsukuba.ac.jp> <87od74agfu.fsf@offby1.atm01.sea.blarg.net> <4830126D.5080804@swipnet.se> <20080518.153421.230365816.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211266176 1428 80.91.229.12 (20 May 2008 06:49:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 06:49:36 +0000 (UTC) Cc: offby1@blarg.net, emacs-devel@gnu.org To: Werner LEMBERG Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 20 08:50:12 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JyLfm-00005D-QI for ged-emacs-devel@m.gmane.org; Tue, 20 May 2008 08:50:11 +0200 Original-Received: from localhost ([127.0.0.1]:48166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyLf2-00012A-OC for ged-emacs-devel@m.gmane.org; Tue, 20 May 2008 02:49:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyLey-00011h-P7 for emacs-devel@gnu.org; Tue, 20 May 2008 02:49:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyLew-00011C-Ca for emacs-devel@gnu.org; Tue, 20 May 2008 02:49:20 -0400 Original-Received: from [199.232.76.173] (port=37886 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyLew-000119-5l for emacs-devel@gnu.org; Tue, 20 May 2008 02:49:18 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:42065) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JyLes-0007Ym-57; Tue, 20 May 2008 02:49:14 -0400 Original-Received: from av6-1-sn3.vrr.skanova.net ([81.228.9.179]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JyLer-0005yp-JH; Tue, 20 May 2008 02:49:13 -0400 Original-Received: by av6-1-sn3.vrr.skanova.net (Postfix, from userid 502) id AA47B388F2; Tue, 20 May 2008 08:49:12 +0200 (CEST) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av6-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 944BF388F1; Tue, 20 May 2008 08:49:12 +0200 (CEST) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 76EA237E45; Tue, 20 May 2008 08:49:12 +0200 (CEST) User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) In-Reply-To: <20080518.153421.230365816.wl@gnu.org> X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:97433 Archived-At: Werner LEMBERG skrev: >> Valgrind just craches when run on Emacs. Emacs memory handling is too >> much for valgrind. It is the undump think that it doesn't understand. > > What about contacting the valgrind guys directly for help? I think > that Emacs would get *huge* benefits if checked with it. > > If my memory is correct, someone already did that. I must search the mail archives. I think the Emacs way of doing things was too special for the valgrind guys to devote time to. I actually agree with that. From what I recall, it was the saving and restoring of malloc state during dump and undump that was the main problem. Valgrind has no way of correctly capture this state and begin tracking from there. Jan D.