This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Backtrace doesn't terminate.


Hi All,
	I am using gdb 6.4 on Xscale processor. I found that the backtrace
doesn't terminate for multi-threaded application, it keeps on repeating
the last frame.
This problem was also seen on native gdb.

(gdb) bt
#0  0x401bf06c in nanosleep ()
   from /opt/timesys/toolchains/armv5l-linux/armv5l-linux-
debug/lib/libc.so.6
#1  0x401beeb0 in __sleep (seconds=0)
at ../sysdeps/unix/sysv/linux/sleep.c:137
#2  0x00008574 in thread_func (not_used=0xbee2fba8) at multithread.c:35
#3  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
#4  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
#5  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
#6  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
#7  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
#8  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310

On  investigating further I found that registers remained unchanged
except sp, for these frames.

(gdb) fr 3
#3  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
310     in manager.c
(gdb) info regi
r0             0x0      0
r1             0xbcbff960       -1128269472
r2             0x0      0
r3             0x1      1
r4             0x174    372
r5             0xbcbffbe0       -1128268832
r6             0x0      0
r7             0x400f0d6c       1074728300
r8             0x80     128
r9             0x400eebc0       1074719680
r10            0x400ee000       1074716672
r11            0x0      0
r12            0x0      0
sp             0xbcbffb40       -1128268992
lr             0x400dc0f0       1074643184
pc             0x400dc0f0       1074643184
fps            0x0      0
cpsr           0x60000010       1610612752
(gdb) fr 4
#4  0x400dc0f0 in pthread_start_thread_event (arg=0xbcbffbe0) at
manager.c:310
310     in manager.c
(gdb) info regi
r0             0x0      0
r1             0xbcbff960       -1128269472
r2             0x0      0
r3             0x1      1
r4             0x174    372
r5             0xbcbffbe0       -1128268832
r6             0x0      0
r7             0x400f0d6c       1074728300
r8             0x80     128
r9             0x400eebc0       1074719680
r10            0x400ee000       1074716672
r11            0x0      0
r12            0x0      0
sp             0xbcbffbd8       -1128268840
lr             0x400dc0f0       1074643184
pc             0x400dc0f0       1074643184
fps            0x0      0
cpsr           0x60000010       1610612752
(gdb)                      

Kindly let me know where things might be going wrong.

Thanks & Regards,
-Girish.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]