这个gdb警告意味着什么?当我尝试为一个核心文件转储backtrace时,我得到了它

时间:2012-09-01 22:44:39

标签: debugging gdb segmentation-fault

我看到这个漂亮的衬管让gdb在核心转储后为所有线程转储回溯。所以我试了一下:

int main() {int* x = new int[5]; for(int i = 0; true; ++i) x[i] = i; }

获取核心转储然后运行:

gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" a.out core.box-name.a.out.27459.8515.11

我得到了输出:

[New LWP 27459]

warning: Can't read pathname for load map: Input/output error.

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff9e503000
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004005ca in main () at <stdin>:6
6       <stdin>: No such file or directory.

Thread 1 (LWP 27459):
#0  0x00000000004005ca in main () at <stdin>:6
        i = 33788
        x = 0x1a460010

我看到一个很好的回溯,但我想知道我看到的两个警告是什么?

1 个答案:

答案 0 :(得分:1)

从这个链接看,它是gdb中的一个错误,并且已在最近的版本中得到修复。

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248898

相关问题