From: "Eli Zaretskii" <eliz@elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: EMACS and valgrind (was: command and doco for valgrind)
Date: Tue, 20 Jan 2004 08:21:38 +0200 [thread overview]
Message-ID: <1438-Tue20Jan2004082138+0200-eliz@elta.co.il> (raw)
In-Reply-To: <16396.24781.247776.602605@nick.uklinux.net> (message from Nick Roberts on Mon, 19 Jan 2004 22:57:17 +0000)
[Let's start a new thread for this.]
> Date: Mon, 19 Jan 2004 22:57:17 +0000
> From: Nick Roberts <nickrob@gnu.org>
>
> > Given this, I can't seem to find a way to run "valgrind ./temacs" under GDB,
> > and without that, how can I debug this?
>
> I guess you've tried variants of "valgrind --gdb-attach=yes emacs". Thats what
> my original post was about :-)
>
> The problem, here, is that gdb attaches to emacs after it has called
> memory_full.
Exactly. Moreover, the code that just caused the problem is not the
code GDB will see.
> However, if I do p lisp_malloc_loser, I get something like:
>
> $1 = (void *) 0x418aad88
>
> so it looks like val is *set* from this value to 0 in the loop:
>
> if ((char *) XCONS (tem) != (char *) val + nbytes - 1)
> {
> lisp_malloc_loser = val;
> free (val);
> val = 0;
> }
Yes, you are right, I think.
> I don't know about x86 internals but is this away from the heap and somewhere
> where shared libraries go?
I don't know either. Anyone?
next prev parent reply other threads:[~2004-01-20 6:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 21:42 command and doco for valgrind Nick Roberts
2004-01-10 12:34 ` Eli Zaretskii
2004-01-17 23:38 ` Nick Roberts
2004-01-18 7:25 ` Eli Zaretskii
2004-01-18 19:15 ` Richard Stallman
2004-01-19 6:32 ` Eli Zaretskii
2004-01-18 14:17 ` Eli Zaretskii
2004-01-18 19:15 ` Eli Zaretskii
2004-01-19 20:11 ` Richard Stallman
2004-01-19 21:33 ` Eli Zaretskii
2004-01-19 22:57 ` Nick Roberts
2004-01-20 6:21 ` Eli Zaretskii [this message]
2004-01-20 15:26 ` EMACS and valgrind (was: command and doco for valgrind) Stefan Monnier
2004-01-22 21:46 ` EMACS and valgrind Nick Roberts
2004-01-22 22:26 ` Stefan Monnier
2004-01-23 22:07 ` Nick Roberts
2004-01-24 10:25 ` Eli Zaretskii
2004-03-21 16:47 ` command and doco for valgrind Nick Roberts
2004-03-21 16:56 ` Eli Zaretskii
2004-03-22 18:27 ` Nick Roberts
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=1438-Tue20Jan2004082138+0200-eliz@elta.co.il \
--to=eliz@elta.co.il \
--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 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.