Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nickolay Vinogradov <nickolay@protei.ru>
To: gdb@sourceware.org
Subject: backtracing threaded ARM core
Date: Thu, 27 Nov 2008 18:36:00 -0000	[thread overview]
Message-ID: <492EE883.4040301@protei.ru> (raw)

Hi,

I'm having trouble with backtracing threaded ARM applications.
My simple application create thread, which call func1() -> func2() -> 
func3() and then sleep();

If I kill this thread(with SEGV) while sleep, and look with gdb, I see 
only last function nanosleep(), and unknown __pthread_enable_asynccancel().

(gdb) bt
#0  0x01d4cde4 in nanosleep ()
#1  0x01d4be5c in __pthread_enable_asynccancel () at cancellation.c:42
#2  0xbee4d9b4 in ?? ()
Current language:  auto; currently asm

When sleep() replaced in the code with while(1), then I can see the full 
backtrace:
#0  0x00008260 in func3 (a=<value optimized out>) at core_test.cpp:66
#1  0x0000826c in func2 (a=0x492edfa7) at core_test.cpp:57
#2  0x0000828c in func1 (a=0x492edfa7) at core_test.cpp:49
#3  0x000082c4 in ThreadFunction () at core_test.cpp:45
#4  0x00008908 in start_thread (arg=<value optimized out>) at 
pthread_create.c:300
#5  0x00026770 in clone ()
Backtrace stopped: frame did not save the PC

Repeated with:
gcc-4.2.1(armv5b-softfloat-linux) + glibc-2.5
gcc-4.3.2(armeb-none-linux-gnueabi) + glibc-2.8

Could you please help me out ?

-- 
Nickolay VInogradov


             reply	other threads:[~2008-11-27 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27 18:36 Nickolay Vinogradov [this message]
2008-11-28 13:52 ` Simon Richter

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=492EE883.4040301@protei.ru \
    --to=nickolay@protei.ru \
    --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