Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@kealia.com>
To: gdb <gdb@sources.redhat.com>
Subject: backtrace issues
Date: Fri, 06 Feb 2004 18:32:00 -0000	[thread overview]
Message-ID: <yf2wu70f49k.fsf@hawaii.kealia.com> (raw)

Does GDB have known issues with backtraces on programs compiled with a
recent GCC but with a C library compiled with an old GCC?  It happens
not infrequently around here that we get backtraces that GDB 5.3 can
read but where mainline GDB can't get past the first few frames.  I
know I've seen this in the following situation (user code is compiled
with GCC 3.2, system libraries are from Red Hat 7.3):

* We have user code, which seg faults.

* Our signal handler gets called.  This signal handler then prints out
  a (useful) backtrace, using the functions provided by the C
  library.  It then calls abort().

* A core file is generated.

Then, when we try to read the core file, mainline GDB gets confused a
few frames down (right around the signal handler), while GDB 5.3 has
no problem with the core file.

Is this a known issue?  Is there anything useful I can do to help
diagnose the issue?  Obviously I'll try to produce a stripped-down
example where this happens, but if I'm not able to do so, I can
certainly run GDB on itself to see what's going on, if anybody can
point me to useful places to look at.

David Carlton
carlton@kealia.com


             reply	other threads:[~2004-02-06 18:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 18:32 David Carlton [this message]
2004-02-06 19:20 ` David Carlton
2004-02-07  4:25   ` Joel Brobecker
2004-02-10 22:22     ` Andrew Cagney

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=yf2wu70f49k.fsf@hawaii.kealia.com \
    --to=carlton@kealia.com \
    --cc=gdb@sources.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