all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Cc: nickrob@gnu.org, emacs-devel@gnu.org
Subject: Re: command and doco for valgrind
Date: Mon, 19 Jan 2004 23:33:58 +0200	[thread overview]
Message-ID: <7494-Mon19Jan2004233358+0200-eliz@elta.co.il> (raw)
In-Reply-To: <E1AifkL-0005Js-Qx@fencepost.gnu.org> (message from Richard Stallman on Mon, 19 Jan 2004 15:11:41 -0500)

> From: Richard Stallman <rms@gnu.org>
> Date: Mon, 19 Jan 2004 15:11:41 -0500
> 
>       valgrind ./temacs
> 
>     or
> 
>       valgrind ./temacs -l loadup
> 
>     They both crash with SIGSEGV in some way or another.  "./temacs"
>     without valgrind works as expected, of course.
> 
> This could be a completely different problem.

Maybe, I don't know.  FWIW, this is the first time I see temacs crash
like that.

> So how about looking at this first?

I cannot figure out how; suggestions welcome.

The problem is that valgrind doesn't really run the machine
instructions from temacs on the real CPU.  Instead, it runs a modified
instrcution stream (modifications are its instrumentation of the code)
on a synthetic CPU provided by the valgrind core.  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 can guess that the problem could be due to the fact that Emacs uses
> its own malloc.

Most probably, although on GNU/Linux we use the one from glibc, IIRC
(which is Doug Lea's variant).

  reply	other threads:[~2004-01-19 21:33 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 [this message]
2004-01-19 22:57         ` Nick Roberts
2004-01-20  6:21           ` EMACS and valgrind (was: command and doco for valgrind) Eli Zaretskii
2004-01-20 15:26             ` 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=7494-Mon19Jan2004233358+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=emacs-devel@gnu.org \
    --cc=nickrob@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.