小编Pau*_*gan的帖子

gdb奇怪的回溯

我的程序是用dietlibc静态编译的.它是在ubuntu x64上编译的(使用-m32标志为x86编译),并在centos x86上运行.

编译后的大小只有大约100KB.我用-ggdb3编译它,没有优化标志.

我的程序使用signal.h来处理SIGSEGV信号,然后调用abort().

程序运行好几天但有时会出现段错误.这是我得到奇怪的回溯,我不明白:

username@ubuntu:~/Desktop$ gdb -c core.28569 program-name
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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 "--host=x86_64-linux-gnu --target=i386-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from program-name...done.
[New Thread …

c gdb coredump backtrace

10
推荐指数
2
解决办法
8760
查看次数

标签 统计

backtrace ×1

c ×1

coredump ×1

gdb ×1