all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: My Emacs unicode 2 crash again when I do some *Replace String (M-%)*, I give the debug informations under gdb in the attachments.
Date: Tue, 13 Mar 2007 08:54:09 +0100	[thread overview]
Message-ID: <864pop1sv2.fsf@lola.quinscape.zz> (raw)
In-Reply-To: <87odmxbyrx.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Tue\, 13 Mar 2007 12\:36\:18 +0900")

"Stephen J. Turnbull" <stephen@xemacs.org> writes:

> Eli Zaretskii writes:
>
>  > The problem is, again, that the list of -fxxx options that, if
>  > disabled, will make the program much easier to debug, is not known
>
> We already have one (-fno-cross-jumps or similar).  Others can be
> added as people find out about them.  I'm simply saying that this
> information should be available to *all* Emacs developers (eg, by
> configuring with --marquis-de-sade-optimizations=no-thank-you), not
> just to those who happen to read every post David makes.

I've written this info into the file etc/DEBUG, too, but it would be
overoptimistic to assume that everybody reads that before starting
out.

I actually know no option with similarly devastating effects on
debugging productivity: if registers and values and stuff get
optimized away, that is basically a nuisance, but gdb tells you what
happens (at least with newer debug info formats, which value is where
is traced rather well).  I just fine-combed the other gcc options and
did not detect any option which would have the effect of leading the
debugging person to a completely wrong place: other stuff may make
debugging more adventurous, but as far as I can see, it will not cause
plausible lies from the debugger.

The crossjumps option ruins post-mortem debugging by very convincingly
making the backtrace point to the wrong failed assertion.  It does not
help to put a breakpoint on "abort" either.

It cost me several days of debugging once.

>  > So I don't think we know what to put in aclocal.

Well, not using -fno-crossjumping cost me several days of debugging,
it made me put the info in etc/DEBUG, and it cost another person a few
days before I again volunteered this information.

How much more wasted man-hours do you want, Eli, before "knowing" it
might be a good idea to use this by default?

Debugging failed assertions is not exactly a rare occurence.

I'd say what is good enough for etc/DEBUG is good enough for aclocal.
Of course, we'll need an autoconf check that this option is actually
supported by the gcc version in question.

-- 
David Kastrup

  reply	other threads:[~2007-03-13  7:54 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06  6:30 My Emacs unicode 2 crash again when I do some *Replace String (M-%)*, I give the debug informations under gdb in the attachments Hongyi Zhao
2007-03-06  7:02 ` Kenichi Handa
2007-03-06  8:57   ` Hongyi Zhao
2007-03-06  8:06 ` Kenichi Handa
2007-03-06  8:41   ` Hongyi Zhao
2007-03-06 12:38     ` Kenichi Handa
2007-03-06 15:23       ` Hongyi Zhao
2007-03-06 14:10   ` David Kastrup
2007-03-07  1:01     ` Kenichi Handa
2007-03-07  2:37       ` Nick Roberts
2007-03-07  3:56         ` Hongyi Zhao
2007-03-07  4:01           ` Nick Roberts
2007-03-07  4:58             ` Hongyi Zhao
2007-03-07  5:10               ` Nick Roberts
2007-03-07  4:58           ` Kenichi Handa
2007-03-07  5:37             ` Display bug [Re: My Emacs unicode 2 crash again ...] Kenichi Handa
2007-03-07  6:26               ` Hongyi Zhao
2007-03-07  6:40                 ` Kenichi Handa
2007-03-07  7:38                   ` Hongyi Zhao
2007-03-07 17:26                 ` Richard Stallman
2007-03-08  3:50                   ` Hongyi Zhao
2007-03-08 21:47                     ` Richard Stallman
2007-03-07 17:25         ` My Emacs unicode 2 crash again when I do some *Replace String (M-%)*, I give the debug informations under gdb in the attachments Richard Stallman
2007-03-08  4:24           ` Eli Zaretskii
2007-03-08  4:50             ` Miles Bader
2007-03-09 15:08               ` Eli Zaretskii
2007-03-09 15:26                 ` Andreas Schwab
2007-03-09 15:51                   ` Eli Zaretskii
2007-03-09 15:56                   ` Eli Zaretskii
2007-03-09 21:26                 ` Richard Stallman
2007-03-10 19:18                   ` Eli Zaretskii
2007-03-09 22:59                 ` Stefan Monnier
2007-03-11 21:10                   ` Eli Zaretskii
2007-03-11 21:32                     ` David Kastrup
2007-03-11 21:56                       ` Eli Zaretskii
2007-03-11 21:59                         ` David Kastrup
2007-03-12  4:14                           ` Eli Zaretskii
2007-03-11 22:29                       ` Andreas Schwab
2007-03-12  6:11                         ` Stephen J. Turnbull
2007-03-12 22:08                           ` Eli Zaretskii
2007-03-13  3:36                             ` Stephen J. Turnbull
2007-03-13  7:54                               ` David Kastrup [this message]
2007-03-13 21:24                                 ` Eli Zaretskii
2007-03-12  7:04                         ` David Kastrup
2007-03-12 14:23                     ` Stefan Monnier
2007-03-12 21:50                       ` Eli Zaretskii
2007-03-13  1:33                         ` Stefan Monnier
2007-03-08  7:19             ` Stefan Monnier
2007-03-09 15:20               ` Eli Zaretskii

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=864pop1sv2.fsf@lola.quinscape.zz \
    --to=dak@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stephen@xemacs.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.