Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Sergei Poselenov <sposelenov@emcraft.com>
To: Sergei Poselenov <sposelenov@emcraft.com>,  gdb@sources.redhat.com
Subject: Re: Problem reading corefiles on ARM
Date: Thu, 07 Aug 2008 09:30:00 -0000	[thread overview]
Message-ID: <489AC07E.2020603@emcraft.com> (raw)
In-Reply-To: <20080806152736.GA31492@caradoc.them.org>

Hello Daniel, all,


Daniel Jacobowitz wrote:
> On Wed, Aug 06, 2008 at 07:19:26PM +0400, Sergei Poselenov wrote:
>> (gdb) bt
>> #0  0x4004ec0c in raise () from /lib/libc.so.6
>> #1  0x40050234 in abort () from /lib/libc.so.6
>> Backtrace stopped: frame did not save the PC
> 
> Your implementation of abort does not save a return address, so GDB
> can't display it.  I believe tehis is a known limitation of the ARM
> GCC port.
> 

Thanks, I've got the point.
Indeed, changing abort() to invalid memory reference makes backtrace 
work.

How about threaded applications?

-bash-3.2# gdb linux-dp core.969
GNU gdb Red Hat Linux (6.7-1rh)
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
and "show warranty" for details.
This GDB was configured as "arm-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.3...done.
Loaded symbols for /lib/ld-linux.so.3
Core was generated by `./linux-dp'.
Program terminated with signal 11, Segmentation fault.
#0  0x400ce8e4 in nanosleep () from /lib/libc.so.6
(gdb) bt
#0  0x400ce8e4 in nanosleep () from /lib/libc.so.6
#1  0x400ce8d4 in nanosleep () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt 
stack?)
(gdb) info thr
   6 process 970  0x00000000 in ?? ()
   5 process 971  0x00000000 in ?? ()
   4 process 972  0x00000000 in ?? ()
   3 process 973  0x00000000 in ?? ()
   2 process 974  0x00000000 in ?? ()
* 1 process 969  0x400ce8e4 in nanosleep () from /lib/libc.so.6
(gdb) thr 3
[Switching to thread 3 (process 973)]#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000000 in ?? ()
(gdb)

This time, the core was generated by "kill -SIGSEGV".

Could it be a kernel bug?

Regards,
Sergei


  parent reply	other threads:[~2008-08-07  9:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 15:20 Sergei Poselenov
2008-08-06 15:28 ` Daniel Jacobowitz
2008-08-06 15:45   ` Mark Kettenis
2008-08-06 15:51     ` Daniel Jacobowitz
2008-08-06 16:02     ` Paul Koning
2008-08-06 17:10       ` Joe Buck
2008-08-06 17:39         ` Paul Koning
2008-08-06 17:52           ` Joe Buck
2008-08-06 18:11             ` Paul Koning
2008-08-06 21:39               ` Andreas Schwab
2008-08-06 21:58                 ` Joe Buck
2008-08-07 13:30                   ` Paul Koning
2008-08-07 16:56                     ` Joe Buck
2008-08-07 17:29                       ` Paul Koning
2008-08-07  9:30   ` Sergei Poselenov [this message]
2008-08-07 13:44     ` Daniel Jacobowitz

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=489AC07E.2020603@emcraft.com \
    --to=sposelenov@emcraft.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