Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jon Grant <jg@jguk.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb@sourceware.org
Subject: Re: Two gdb 6.4 usage queries
Date: Sun, 12 Nov 2006 01:25:00 -0000	[thread overview]
Message-ID: <45567857.9020007@jguk.org> (raw)
In-Reply-To: <15035.82.92.89.47.1163284098.squirrel@webmail.xs4all.nl>

Hi Mark,

Thanks for your reply with suggestions.

Mark Kettenis elucidated on 11/11/06 22:28:
>>  Hello,
>>
>>  Don't think I missed any reply.. I wonder if anyone could help me with
>>  some info on how solve the problems?
> 
> For one thing, those backtraces do not correspond to the same state.
> I don't know what the kde crash handler is doing, but it might be worth
> trying to disable it, such that your program just crashes.  The resulting
> core dump should be easier to interpret.  And if it isn't, you probably
> need to install the appropriote debug info packages for your system.

That sounds good. I've not noticed "core" files being dumped since I
switched to Kubuntu, do you know if I have to enable something somewhere
to get them?

>>> Attaching to program: /usr/bin/ark, process 6582
>>> (no debugging symbols found)
> 
> Do yourself a favour, and compile your code (all of it) with -g.

Unfortunately these are the binaries shipped with Kubuntu from KDE

>>> 0xffffe410 in __kernel_vsyscall ()
>>> (gdb) bt
>>> #0  0xffffe410 in __kernel_vsyscall ()
>>> #1  0xb7d09110 in ?? ()
>>> #2  0xb7d08f3c in ?? ()
>>> #3  0xbfc11bb4 in ?? ()
>>> #4  0xbfc11bb4 in ?? ()
>>> #5  0x00000000 in ?? ()
> 
> Make sure you install at least the debug info packages for glibc.

I really wish Kubuntu 6.06 had such packages, would make it a lot
simpler trying to give feedback on crashes.

Perhaps I shouldn't bother filing bugs until they start shipping binaries
which can produce useful backtraces out-of-the-box. The crashes are nearly
always not reproducible unfortunately.

I managed to find the bit of info I needed "frame n" and "show address"
which allowed me to calculate the position in the disassembled file I
got from objdump. GDB doesn't demangle symbols it seems too. Do you know
if it
only attempts to demangle using debug sections?

Please include my email address in any replies as I'm not a member of
this list.

Thanks for your help, Kind regards
Jon


      reply	other threads:[~2006-11-12  1:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30  3:59 Jon Grant
2006-11-11 22:06 ` Jon Grant
2006-11-11 22:28   ` Mark Kettenis
2006-11-12  1:25     ` Jon Grant [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=45567857.9020007@jguk.org \
    --to=jg@jguk.org \
    --cc=gdb@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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