Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@cygnus.com>
To: Matt Schalit <mschalit@pacbell.net>
Cc: gdb@sourceware.cygnus.com
Subject: Re: Need help with a backtrace
Date: Thu, 15 Feb 2001 12:56:00 -0000	[thread overview]
Message-ID: <3A8C4285.674CE905@cygnus.com> (raw)
In-Reply-To: <3A8C27A6.73CA238D@pacbell.net>

Matt Schalit wrote:
> 
> In general, when a backtrace gives a really meager output
> like the following:
> 
> > > (gdb) file /usr/local/cgi-bin/convert
> > > (gdb) run
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x80016d76 in ?? () from /usr/lib/libc.so.1
> > > (gdb) bt
> > > #0  0x80016d76 in ?? () from /usr/lib/libc.so.1
> > > #1  0x80016c5c in ?? () from /usr/lib/libc.so.1
> > > #2  0x8001826d in ?? () from /usr/lib/libc.so.1
> > > #3  0x8001932d in ?? () from /usr/lib/libc.so.1
> > > #4  0x80014b20 in ?? () from /usr/lib/libc.so.1
> 
> and that's all the lines it output, am I supposed to
> put breakpoints into my convert program to see when
> it makes a call to a libc function?  I can't understand
> why there's so little info nor why it left out the function
> values.
> 


These addresses are inside the libc.so that was probably compiled without debugging symbols.  That is why the debugger cannot give you more information.

Unless you are dealing with a bug in libc (very unlikely), just forget about these lines and check how your program called the library function.  Probably it called it with a bad argument and causes the crash.


-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


  reply	other threads:[~2001-02-15 12:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-12 11:33 Matt Schalit
2001-02-12 11:53 ` Fernando Nasser
2001-02-15  5:33   ` Matt Schalit
2001-02-15  6:17     ` Fernando Nasser
2001-02-15 11:04       ` Matt Schalit
2001-02-15 12:56         ` Fernando Nasser [this message]
2001-02-12 11:46 Michael Elizabeth Chastain
2001-02-12 17:09 ` Matt Schalit
2001-02-15 12:48 Michael Elizabeth Chastain

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=3A8C4285.674CE905@cygnus.com \
    --to=fnasser@cygnus.com \
    --cc=gdb@sourceware.cygnus.com \
    --cc=mschalit@pacbell.net \
    /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