From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: command and doco for valgrind Date: 18 Jan 2004 09:25:50 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16383.8247.758985.411260@nick.uklinux.net> <9743-Sat10Jan2004143440+0200-eliz@elta.co.il> <16393.51090.62851.168340@nick.uklinux.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074447782 17930 80.91.224.253 (18 Jan 2004 17:43:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2004 17:43:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jan 18 18:42:58 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 1AiGgp-0008Q3-00 for ; Sun, 18 Jan 2004 18:26:23 +0100 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ai7ME-0000Xg-00 for ; Sun, 18 Jan 2004 08:28:38 +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 1Ai7It-0002n7-LN for emacs-devel@quimby.gnus.org; Sun, 18 Jan 2004 02:25:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ai7IW-0002mp-9V for emacs-devel@gnu.org; Sun, 18 Jan 2004 02:24:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ai7I0-0002Us-II for emacs-devel@gnu.org; Sun, 18 Jan 2004 02:24:39 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1Ai7Hz-0002UD-TA; Sun, 18 Jan 2004 02:24:08 -0500 Original-To: Nick Roberts In-reply-to: <16393.51090.62851.168340@nick.uklinux.net> (message from Nick Roberts on Sat, 17 Jan 2004 23:38:58 +0000) 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:19232 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19232 > Date: Sat, 17 Jan 2004 23:38:58 +0000 > From: Nick Roberts > > BTW I think valgrind could be a useful tool to debug some of Emacs crashes > (less frequent now) on x86 architectures. However, for some reason, it reports > a memory full message at start up, at the moment: > > ==2466== Invalid free() / delete / delete[] > ==2466== at 0x400263A8: free (vg_replace_malloc.c:231) > ==2466== by 0x812A135: memory_full (alloc.c:478) > ==2466== by 0x812A3E8: lisp_malloc (alloc.c:623) > ==2466== by 0x812BA07: allocate_vectorlike (alloc.c:2505) > ==2466== Address 0x83CCE60 is not stack'd, malloc'd or free'd > emacs: Memory exhausted--use M-x save-some-buffers then exit and restart Emacs I suspect that it has something to do with the dumping process (which effectively freezes memory malloc'ed before unexec), but I don't know enough about valgrind to tell for sure.