From: "Zarges, Olav" <Olav.Zarges@imc-berlin.de>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: gdb-6.5 produces infinite backtrace on ARM
Date: Mon, 21 Aug 2006 14:37:00 -0000 [thread overview]
Message-ID: <44E9C47A.9090605@imc-berlin.de> (raw)
In-Reply-To: <20060821124241.GA16416@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]
Daniel Jacobowitz wrote:
> On Mon, Aug 21, 2006 at 01:32:04PM +0200, Zarges, Olav wrote:
>> Sounds pretty good. Good job! I can't wait to lay my hands on the patch...
>>
>> Another question arose from you answer: what is a gdb/mi front-end supposed
>> to do when a message like
>>
>> "Backtrace stopped: frame did not save the PC" or
>> "Previous frame identical to this frame (corrupt stack?)" or
>> ...
>>
>> is returned at the end of the backtrace? Eclipse just throws away the
>> complete backtrace for the corresponding thread.
>
> What other versions of GDB are you looking at? With older versions, it was an
> ^error; with newer it's a ~"console output message". I would not
> expect Eclipse to throw away the backtrace if there's a console output
> message.
I just verified it with gdb-6.3 which doesn't show any backtrace at all when
setting backtrace limit (--> Backtrace limit of 20 exceeded, see dump-6.3.txt).
The current version gdb-6.5 shows backtrace and the message "Previous frame
identical to this frame (corrupt stack?)" (see dump-6.5.txt). Eclipse then
fails to show any bt info at all for this thread (I can supply a screenshot
of this behaviour, 109 KByte PNG).
btw: I'm using the latest Eclipse and CDT release.
[-- Attachment #2: dump-6.5.txt --]
[-- Type: text/plain, Size: 7864 bytes --]
(gdb) t a all bt
Thread 4 (thread 32771):
#0 0x402a319c in nanosleep ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libc.so.6
#1 0x402a3078 in sleep ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libc.so.6
#2 0x00008784 in f2 () at ../threads.cpp:31
#3 0x000087a4 in thread_function2 () at ../threads.cpp:36
#4 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#5 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#6 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#7 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#8 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#9 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#10 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#11 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#12 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#13 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#14 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#15 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#16 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#17 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#18 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#19 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
Thread 3 (thread 32769):
#0 0x402c8d60 in poll ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libc.so.6
#1 0x40024114 in __pthread_manager ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#2 0x40024304 in __pthread_manager_event ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-lin-ux-gnu/lib/libpthread.so.0
--Type <return> to continue, or q <return> to quit---
#3 0x40024304 in __pthread_manager_event ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
Previous frame identical to this frame (corrupt stack?)
Thread 2 (thread 16386):
#0 f1 () at ../threads.cpp:13
#1 0x0000870c in thread_function1 () at ../threads.cpp:18
#2 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#3 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#4 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#5 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#6 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#7 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#8 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#9 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#10 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
--Type <return> to continue, or q <return> to quit---
#11 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#12 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#13 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#14 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#15 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#16 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#17 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#18 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#19 0x40024410 in pthread_start_thread ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
Thread 1 (thread 16384):
#0 0x40027148 in __pthread_sigsuspend ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#1 0x40026fcc in __pthread_wait_for_restart_signal ()
---Type <return> to continue, or q <return> to quit---
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#2 0x40023cfc in pthread_join ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libpthread.so.0
#3 0x00008818 in main (argc=1, argv=0xbeb71ea4) at ../threads.cpp:50
13 sleep(3);
(gdb)
[-- Attachment #3: dump-6.3.txt --]
[-- Type: text/plain, Size: 318 bytes --]
(gdb) t a all bt
Backtrace limit of 20 exceeded
Thread 4 (Thread 32771):
#-1 0x402a319c in nanosleep ()
from /opt/crosstool/gcc-3.4.4-glibc-2.3.5-linux-2.6.12/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libc.so.6
Backtrace limit of 20 exceeded
Backtrace limit of 20 exceeded
13 sleep(3);
(gdb)
next prev parent reply other threads:[~2006-08-21 14:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-15 8:15 Zarges, Olav
2006-08-15 12:41 ` Daniel Jacobowitz
2006-08-15 13:54 ` Zarges, Olav
2006-08-19 5:24 ` Daniel Jacobowitz
2006-08-21 11:35 ` Zarges, Olav
2006-08-21 12:42 ` Daniel Jacobowitz
2006-08-21 14:37 ` Zarges, Olav [this message]
2006-08-21 14:54 ` Daniel Jacobowitz
2006-09-06 13:32 ` Zarges, Olav
2006-09-06 14:44 ` Daniel Jacobowitz
2006-09-06 15:03 ` Zarges, Olav
2006-09-06 15:19 ` Daniel Jacobowitz
2006-09-06 15:38 ` Zarges, Olav
2006-09-06 15:52 ` Daniel Jacobowitz
2006-09-07 16:15 ` Zarges, Olav
2006-09-07 17:38 ` Daniel Jacobowitz
2006-09-10 14:49 ` Daniel Jacobowitz
2006-09-19 1:40 ` Michael Snyder
2006-09-19 3:17 ` 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=44E9C47A.9090605@imc-berlin.de \
--to=olav.zarges@imc-berlin.de \
--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