unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Neal Becker <ndbecker2@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: valgrind emacs
Date: Sat, 22 Mar 2008 18:31:13 -0400	[thread overview]
Message-ID: <fs41bh$khm$1@ger.gmane.org> (raw)
In-Reply-To: jeprtm8kpy.fsf@sykes.suse.de

Andreas Schwab wrote:

> Neal Becker <ndbecker2@gmail.com> 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...





  reply	other threads:[~2008-03-22 22:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-22 17:47 valgrind emacs Neal Becker
2008-03-22 21:47 ` Chong Yidong
2008-03-22 22:20 ` Andreas Schwab
2008-03-22 22:31   ` Neal Becker [this message]
2008-03-24 18:50     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fs41bh$khm$1@ger.gmane.org' \
    --to=ndbecker2@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).