all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: grischka <grishka@gmx.de>
Cc: dak@gnu.org, emacs-devel@gnu.org
Subject: Re: Segfault in current bzr
Date: Tue, 28 Sep 2010 12:07:27 -0400	[thread overview]
Message-ID: <E1P0ciF-0001H7-Vk@fencepost.gnu.org> (raw)
In-Reply-To: <4CA1CD1F.3010604@gmx.de> (message from grischka on Tue, 28 Sep 2010 13:10:23 +0200)

> Date: Tue, 28 Sep 2010 13:10:23 +0200
> From: grischka <grishka@gmx.de>
> Cc: emacs-devel@gnu.org
> 
> Typically emacs:  They're rather able to give people a lecture about
> gcc options than to add a simple one-line wrapper for abort to print
> the file:linenumber.

Aha, and then we will see something like this:

  #1  0x00000000004ebc25 in abort () at emacs.c:427
  #2  0x00000000deadbeef in abort_wrapper (file=<value optimized out>, 
      line=<value optimized out>) at grishka.c:1234
  #3  0x00000000005a5dd9 in wait_reading_process_output (
      time_limit=<value optimized out>, microsecs=<value optimized out>, 
      read_kbd=-1, do_display=<value optimized out>, 
      wait_for_cell=<value optimized out>, wait_proc=0x0, just_wait_proc=0)
      at process.c:5072

  (gdb) frame 2
  #2  0x000000000045babe in abort_wrapper (file=<value optimized out>, 
      line=<value optimized out>) at grishka.c:1234
  (gdb) print file
  No symbol "file" in current context.
  (gdb) print line
  No symbol "line" in current context.
  (gdb)

Very useful, very informative.

Debugging an optimized build is practically impossible, with current
versions of GCC.  End of story.



  reply	other threads:[~2010-09-28 16:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 11:10 Segfault in current bzr grischka
2010-09-28 16:07 ` Eli Zaretskii [this message]
2010-09-28 17:19   ` grischka
2010-09-28 17:30     ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2010-09-27 19:56 Lars Magne Ingebrigtsen
2010-09-27 19:59 ` Lars Magne Ingebrigtsen
2010-09-27 20:09   ` Lars Magne Ingebrigtsen
2010-09-27 20:14   ` Eli Zaretskii
2010-09-27 20:27     ` Lars Magne Ingebrigtsen
2010-09-27 20:37       ` Lars Magne Ingebrigtsen
2010-09-27 20:45         ` Lars Magne Ingebrigtsen
2010-09-27 20:46       ` Jan Djärv
2010-09-27 20:54         ` Lars Magne Ingebrigtsen
2010-09-27 22:29     ` David Kastrup
2010-09-27 20:16 ` 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=E1P0ciF-0001H7-Vk@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=grishka@gmx.de \
    /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.