bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb 6.8 aix5.3 pthread stacks seem to be messed up.


From: John Charles
Subject: gdb 6.8 aix5.3 pthread stacks seem to be messed up.
Date: Sat, 23 Aug 2008 00:03:14 +0000

Hi,

I'm attempting to use GDB on AIX 5.3.0.5 CSP for a multi-threaded application ported from other *nix platforms
(which is to say the thing works fine on Solaris, centos, HPUX, Linux 2.6, etc).
There are a small number of threads (6 plus one per accepted connection), of which three seem to be
messed up.
When I use "dbx" on the same executable, it appears to be able to find all the threads stacks.
compiled with -D_THREAD_SAFE -g3 -ggdb (etc)
This happens whether I stop at a breakpoint or use the keyboard interrupt.

Another odd thing: if I quit out of gdb, and then start it up again on the same program,
I am unable to interrupt gdb and unable to kill (-9) either process, even as root.

any suggestions?

Thanks.

# gdb appd
GNU gdb 6.8
Copyright (C) 2008 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 "powerpc-ibm-aix5.3.0.0"...
(gdb) b app_assert_failed
Breakpoint 1 at 0x10036e80: file app-assert.c, line 51.
(gdb) run -l -f appd.conf
Starting program: /home/PUB/APP/appd -l -f appd.conf
[New Thread 1]
[New Thread 258]
[New Thread 515]
[New Thread 772]

^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 1]
0xd005d99c in _usched_swtch () from /usr/lib/libpthread.a(shr_xpg5.o)
(gdb) info threads
  6 Thread 1286 (tid 38473, running)  0x00000000 in ?? ()
  5 Thread 1029 (tid 34369, running)  0x00000000 in ?? ()
  4 Thread 772 (tid 39483, running)  0xd037eb94 in clock_gettime ()
   from /usr/lib/libc.a(shr.o)
  3 Thread 515 (tid 39741, running)  0x00000000 in ?? ()
  2 Thread 258 (tid 24595, sleeping)  0xd005dbc4 in _event_sleep ()
   from /usr/lib/libpthread.a(shr_xpg5.o)
* 1 Thread 1 (, sleeping)  0xd005d99c in _usched_swtch ()
   from /usr/lib/libpthread.a(shr_xpg5.o)
(gdb) thread 3
[Switching to thread 3 (Thread 515)]#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000000 in ?? ()
(gdb) thread 5
[Switching to thread 5 (Thread 1029)]#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000000 in ?? ()
(gdb) thread 6
[Switching to thread 6 (Thread 1286)]#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000000 in ?? ()
(gdb)

bash-3.00$ gcc --version
gcc (GCC) 4.2.0
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-3.00$ uname -a
AIX aix53qa01 3 5 000F629C4C00


bash-3.00$ ldd appd
appd needs:
         /usr/lib/libc.a(shr.o)
         /usr/lib/libpthread.a(shr_comm.o)
         /usr/lib/libpthread.a(shr_xpg5.o)
         /usr/lib/libodm.a(shr.o)
         /usr/lib/libcfg.a(shr.o)
         /usr/lib/libcrypto.a(libcrypto.so.0.9.8)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)



Get thousands of games on your PC, your mobile phone, and the web with Windows®. Game with Windows

reply via email to

[Prev in Thread] Current Thread [Next in Thread]