From: grischka <grishka@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: dak@gnu.org, emacs-devel@gnu.org
Subject: Re: Segfault in current bzr
Date: Tue, 28 Sep 2010 19:19:14 +0200 [thread overview]
Message-ID: <4CA22392.2070103@gmx.de> (raw)
In-Reply-To: <E1P0ciF-0001H7-Vk@fencepost.gnu.org>
Eli Zaretskii wrote:
>> 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
No, you'd see:
emax: internal error at process.c:5072. Aborting.
Which while you just started to preach the user how to use gcc and gdb
might very well suffice for someone else to be done with the problem
already.
--- grischka
>
> (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.
>
next prev parent reply other threads:[~2010-09-28 17:19 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
2010-09-28 17:19 ` grischka [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA22392.2070103@gmx.de \
--to=grishka@gmx.de \
--cc=dak@gnu.org \
--cc=eliz@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).