From: "Saurabh Thukral" <saurabhth@gmail.com>
To: gdb@sourceware.org
Subject: backtrace shows ?? instead of function names in gdb
Date: Wed, 13 Jun 2007 09:02:00 -0000 [thread overview]
Message-ID: <4a4b2c810706130202q35296aadxe139a0e8a305c7e6@mail.gmail.com> (raw)
Hi all,
While debugging a core file produced by a program, I found the
following backtrace:
#0 0x0000000000000000 in ?? ()
#1 0x000000010009e4c0 in stMesg ()
#2 0x000000010009e380 in stMhandler ()
#3 0x000000010088351c in stSchedule ()
#4 0x000000010087bd5c in stRun()
#5 0x000000010008c030 in main ()
I am unable to understand the reason for gdb displaying ??() in frame
#0 instead of a valid function name.
System: SunOS 5.10 64 bit
gdb version 5.3. This problem is encountered in gdb
version 6.1 also.
I tried to find a post related to this problem and came across the
following post:
http://sourceware.org/ml/gdb/2007-03/msg00167.html. The reason that
was posted is reproduced below:
>Because GDB could not figure out what came next. The library might be
>too optimized and stripped, or the stack might be corrupt, or GDB
>might have a bug, or some other operating system specific problem.
I have a few queries
1. What is the meaning of too optimized ? Should we avoid compiling
with highest level of optimisation - in that case we will be forgoing
performance ?
2. Please suggest a solution by which such backtraces can be avoided ?
Please help,
Thanks,
Saurabh
next reply other threads:[~2007-06-13 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 9:02 Saurabh Thukral [this message]
2007-06-13 9:23 ` Andreas Schwab
2007-06-13 9:35 ` Saurabh Thukral
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=4a4b2c810706130202q35296aadxe139a0e8a305c7e6@mail.gmail.com \
--to=saurabhth@gmail.com \
--cc=gdb@sourceware.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox