From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Readable backtrace from core file
Date: Fri, 06 Jul 2007 09:31:42 +0400
Message-ID: <468DD3BE.1020709@stc.donpac.ru> (raw)
In-Reply-To: <467C28D8.9090803@stc.donpac.ru>
> $ gdb --core=core
для анналов отвечу сам себе:
gdb ./coredump core
...
Core was generated by `./coredump'.
Program terminated with signal 11, Segmentation fault.
#0 0x0804833a in main () at coredump.c:3
3 int p = *((int*)0);
(gdb) bt
#0 0x0804833a in main () at coredump.c:3
(gdb) bt full
#0 0x0804833a in main () at coredump.c:3
p = -1208259776
(gdb)
Т.е. нужно указывать не только корку, но и исполняемый файл, и при этом
находиться в каталоге, где лежат исходники - тогда строку, в которой
приключилась беда, будет видно.
--
С уважением, Прокопьев Евгений
prev parent reply other threads:[~2007-07-06 5:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-22 19:54 Eugene Prokopiev
2007-06-22 21:03 ` Motsyo Gennadi aka Drool
2007-06-23 9:12 ` Eugene Prokopiev
2007-06-23 9:20 ` Eugene Prokopiev
2007-06-23 10:53 ` Ivan Fedorov
2007-06-23 15:52 ` Dmitry V. Levin
2007-07-06 5:31 ` Eugene Prokopiev [this message]
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=468DD3BE.1020709@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git