当前位置: 技术问答>linux和unix
程序产生core文件,但是无法跟踪到函数堆栈信息,不知大虾有没有遇到过
来源: 互联网 发布时间:2016-05-12
本文导语: zxscuser@agent160:~> gdb exe core.xxx GNU gdb 6.3 Copyright 2004 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. ...
zxscuser@agent160:~> gdb exe core.xxx
GNU gdb 6.3
Copyright 2004 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 "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Program terminated with signal 11, Segmentation fault.
warning: current_sos: Can't read pathname for load map: 输入/输出错误
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x1dc25700 in ?? ()
(gdb) bt
#0 0x1dc25700 in ?? ()
程序运行过程中core掉,但是从core中无法看到函数调用栈
会是什么原因产生这种请况,编译的时候已经加了-g了
GNU gdb 6.3
Copyright 2004 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 "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Program terminated with signal 11, Segmentation fault.
warning: current_sos: Can't read pathname for load map: 输入/输出错误
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x1dc25700 in ?? ()
(gdb) bt
#0 0x1dc25700 in ?? ()
程序运行过程中core掉,但是从core中无法看到函数调用栈
会是什么原因产生这种请况,编译的时候已经加了-g了
|
warning: current_sos: Can't read pathname for load map: 输入/输出错误
core 文件不完整。
core 文件不完整。
|
你先确认这个core是正确的文件,用file core.xxx确认一下,最好写绝对路径。
|
用crash工具试试
|
可能是内存越界使用,导致堆栈内的信息被破坏了。