AIX 6.1:CORE DUMP - GDB“线程应用所有bt full”返回NOTHING?

时间:2012-03-20 18:56:23

标签: c gdb aix

我从AIX 6.1上的C应用程序的核心转储中获得以下回溯。我正在运行GDB 6.0。

GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"...

warning: core file may not match specified executable file.
Core was generated by `inbound'.
Program terminated with signal 11, Segmentation fault.
#0  0x0900000000b5c0a4 in _event_sleep () from /usr/lib/libpthread.a(shr_xpg5_64.o)
(gdb) backtrace
#0  0x0900000000b5c0a4 in _event_sleep () from /usr/lib/libpthread.a(shr_xpg5_64.o)
#1  0x0900000000b5c9bc in _event_wait () from /usr/lib/libpthread.a(shr_xpg5_64.o)
#2  0x0900000000b6a788 in _cond_wait_local () from /usr/lib/libpthread.a(shr_xpg5_64.o)
#3  0x0900000000b6ad60 in _cond_wait () from /usr/lib/libpthread.a(shr_xpg5_64.o)
#4  0x0900000000b52fc4 in pthread_join () from /usr/lib/libpthread.a(shr_xpg5_64.o)
#5  0x0000000100003d30 in main (argc=2, argv=0xffffffffffffb38) at ./inbound/inbound.c:850
(gdb)

当我尝试运行线程应用所有bt full 时,它只返回NOTHING。

我需要在这里找出错误,因为它只发生在以下场景中:

  • 应用程序等待消息大约30个小时没有任何内容,然后出现消息,似乎不喜欢“醒来”。

我很想知道导致问题的另一个问题是什么......

非常感谢任何帮助

林顿

1 个答案:

答案 0 :(得分:0)

你从哪里得到gdb?对于aix来说,gdb很难/难以编译。例如,它有一个AIX线程选项。我记得,你必须明确告诉./configure使用该选项。

另外,正如alk指出的那样,请确保您拥有正确的可执行文件< =>核心文件。确保您具有相同的LIBPATH,就像应用程序在转储时所做的那样。

fullcore也有帮助(我假设你已经拥有)。