From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neal Becker Newsgroups: gmane.emacs.devel Subject: Re: valgrind emacs Date: Sat, 22 Mar 2008 18:31:13 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1206225130 21616 80.91.229.12 (22 Mar 2008 22:32:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 22:32:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 23:32:40 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 1JdCGV-000070-C3 for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 23:32:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JdCFu-0003Cf-NA for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 18:32:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JdCFQ-0002zM-P5 for emacs-devel@gnu.org; Sat, 22 Mar 2008 18:31:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JdCFQ-0002yv-9K for emacs-devel@gnu.org; Sat, 22 Mar 2008 18:31:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JdCFP-0002yq-Rv for emacs-devel@gnu.org; Sat, 22 Mar 2008 18:31:31 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JdCFP-0002yA-9E for emacs-devel@gnu.org; Sat, 22 Mar 2008 18:31:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JdCFH-0004XS-4x for emacs-devel@gnu.org; Sat, 22 Mar 2008 22:31:23 +0000 Original-Received: from pool-70-16-163-218.hag.east.verizon.net ([70.16.163.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Mar 2008 22:31:23 +0000 Original-Received: from ndbecker2 by pool-70-16-163-218.hag.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Mar 2008 22:31:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 102 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-70-16-163-218.hag.east.verizon.net User-Agent: KNode/0.10.9 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:93214 Archived-At: Andreas Schwab wrote: > Neal Becker writes: > >> Anyone try valgrind on emacs? I get some errors: >> ==15930== Invalid free() / delete / delete[] >> ==15930== at 0x4A05AF7: realloc (vg_replace_malloc.c:306) > > valgrind depends on its own implementation of malloc that is unlikely to > understand the internal malloc state from glibc's malloc which is > installed by malloc_set_state. Thus for proper results you must run > valgrind on temacs. > > Andreas. > OK: valgrind ~/RPM/BUILD/emacs-23.0.60/src/temacs ==3816== Conditional jump or move depends on uninitialised value(s) ==3816== at 0x4D68E5: Fgarbage_collect (alloc.c:5004) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ==3816== by 0x4856A9: top_level_1 (keyboard.c:1387) ==3816== by 0x4EAD26: internal_catch (eval.c:1230) ==3816== by 0x48616E: command_loop (keyboard.c:1342) ==3816== ==3816== Conditional jump or move depends on uninitialised value(s) ==3816== at 0x4D2A17: mem_find (alloc.c:3510) ==3816== by 0x4D36F4: mark_maybe_object (alloc.c:4108) ==3816== by 0x4D392D: mark_stack (alloc.c:4272) ==3816== by 0x4D6A55: Fgarbage_collect (alloc.c:5092) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ... ==3816== Conditional jump or move depends on uninitialised value(s) ==3816== at 0x4D3709: mark_maybe_object (alloc.c:4114) ==3816== by 0x4D392D: mark_stack (alloc.c:4272) ==3816== by 0x4D6A55: Fgarbage_collect (alloc.c:5092) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ==3816== by 0x4856A9: top_level_1 (keyboard.c:1387) ... ==3816== Conditional jump or move depends on uninitialised value(s) ==3816== at 0x4D2B9A: live_cons_p (alloc.c:3926) ==3816== by 0x4D37D4: mark_maybe_object (alloc.c:4122) ==3816== by 0x4D392D: mark_stack (alloc.c:4272) ==3816== by 0x4D6A55: Fgarbage_collect (alloc.c:5092) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ... ==3816== Use of uninitialised value of size 8 ==3816== at 0x4D37FE: mark_maybe_object (alloc.c:4122) ==3816== by 0x4D392D: mark_stack (alloc.c:4272) ==3816== by 0x4D6A55: Fgarbage_collect (alloc.c:5092) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ==3816== by 0x4856A9: top_level_1 (keyboard.c:1387) ... ==3816== Conditional jump or move depends on uninitialised value(s) ==3816== at 0x4D2F82: mark_object (alloc.c:5376) ==3816== by 0x4D392D: mark_stack (alloc.c:4272) ==3816== by 0x4D6A55: Fgarbage_collect (alloc.c:5092) ==3816== by 0x4EB922: Feval (eval.c:2248) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x5047BB: readevalloop (lread.c:1791) ==3816== by 0x50614D: Fload (lread.c:1255) ==3816== by 0x4EBB5E: Feval (eval.c:2370) ==3816== by 0x4EAC36: internal_condition_case (eval.c:1494) ==3816== by 0x4856A9: top_level_1 (keyboard.c:1387) ... lots more, not all the same...