all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jdonner <jdonner0@earthlink.net>
Subject: Re: valgrind
Date: Tue, 12 Aug 2003 21:28:59 -0600	[thread overview]
Message-ID: <3F39B07B.9030102@earthlink.net> (raw)

Robert Anderson wrote:
 > Has anyone ever looked into why emacs doesn't play well
 > with valgrind? It dies immediately with:
 > ..

Joe Buehler
 > My guess would be undump() -- the build process creates
 > the final emacs binary by starting emacs, loading up some
 > LISP files, then writing all its memory out to a
 > new executable.

I get the same crash when using valgrind on a recent
CVS build; is Joe Buehler's explanation correct?
Is anyone using valgrind or purify on emacs?

Here are the errors again, for reference:
...
==10911== Invalid free() / delete / delete[]
==10911==    at 0x40029CF7: realloc (in 
/usr/lib/valgrind/vgskin_memcheck.so)
==10911==    by 0x8162E97: xrealloc (alloc.c:547)
==10911==    by 0x815B13B: regex_compile (regex.c:2716)
==10911==    by 0x816204B: re_compile_pattern (regex.c:5994)
==10911==    Address 0x8457848 is not stack'd, malloc'd or free'd
==10911==
==10911== Invalid free() / delete / delete[]
==10911==    at 0x400299D9: free (in 
/usr/lib/valgrind/vgskin_memcheck.so)
==10911==    by 0x8162D86: memory_full (alloc.c:478)
==10911==    by 0x8162ED8: xrealloc (alloc.c:552)
==10911==    by 0x815B13B: regex_compile (regex.c:2716)
==10911==    Address 0x82FDBE0 is not stack'd, malloc'd or free'd
emacs: Memory exhausted--use M-x save-some-buffers then exit and 
restart Emacs
==10911==
...

Jeff Donner

             reply	other threads:[~2003-08-13  3:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-13  3:28 jdonner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-15 10:07 valgrind Robert Anderson
2003-02-19 18:59 ` valgrind Joe Buehler

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

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

  git send-email \
    --in-reply-to=3F39B07B.9030102@earthlink.net \
    --to=jdonner0@earthlink.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.