From: Mahmood Naderan <nt_mahmood@yahoo.com>
To: "pmuldoon@redhat.com" <pmuldoon@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: GDB doesnot catches segmentation fault
Date: Tue, 05 Jul 2011 07:24:00 -0000 [thread overview]
Message-ID: <1309850661.18621.YahooMailNeo@web111713.mail.gq1.yahoo.com> (raw)
In-Reply-To: <m3oc19urna.fsf@redhat.com>
>Then:
>gdb gdb --core=yourcore.pid
>Where "youcore.pid" is the core-file that GDB generated on crash
Where does it save that file? I can not find it
// Naderan *Mahmood;
----- Original Message -----
From: Phil Muldoon <pmuldoon@redhat.com>
To: Mahmood Naderan <nt_mahmood@yahoo.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Sent: Tuesday, July 5, 2011 11:43 AM
Subject: Re: GDB doesnot catches segmentation fault
Mahmood Naderan <nt_mahmood@yahoo.com> writes:
> Hi
> I have attached a PID to gdb. Although the code crashed with segmentation fault, but gdb ignores that and I am not able to view backtrace.
> 0x0000000000447bfb in Event::initialized (this=0x41ec648) at build/ALPHA_FS/sim/eventq.hh:84
> 84 initialized() const
> (gdb) c
> Continuing.
> Segmentation fault
> mahmood@mpc:~$
This looks like GDB crashed with a segmentation fault.
There is not enough information to work with here. There are two things
you could try: A newer GDB, the problem might already have been
fixed. Or, submit a backtrace for GDB.
If you have debug information installed for GDB you can do this. I am
not sure of the method for installing debug information for installed
packages with Ubuntu. But assuming you do have them:
Type:
ulimit -c unlimited
in the terminal where you will launch GDB (This will allow core-files
to be generated).
Attach GDB to the program (as you did above) and replicate the scenario
to crash GDB.
Then:
gdb gdb --core=yourcore.pid
Where "youcore.pid" is the core-file that GDB generated on crash.
Then type "bt" into GDB. This will produce a backtrace of the crashing
GDB process.
Then create a bug at:
http://sourceware.org/bugzilla/
for gdb, and paste the "bt" output. Also include any supplemental
information you think is useful.
Cheers,
Phil
next prev parent reply other threads:[~2011-07-05 7:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 6:39 Mahmood Naderan
2011-07-05 7:13 ` Phil Muldoon
2011-07-05 7:24 ` Mahmood Naderan [this message]
2011-07-05 7:51 ` Phil Muldoon
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=1309850661.18621.YahooMailNeo@web111713.mail.gq1.yahoo.com \
--to=nt_mahmood@yahoo.com \
--cc=gdb@sourceware.org \
--cc=pmuldoon@redhat.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox