简体   繁体   English

gdb没有给出核心转储的原因

[英]gdb not giving reason for core dump

Typically when analyzing a core dump in gdb it'll print the reason why it was generated: 通常,在分析gdb中的核心转储时,它将显示生成它的原因:

Core was generated by `executable'.
Program terminated with signal 11, Segmentation fault.

However I've encountered a situation where gdb isn't giving a reason: 但是我遇到了gdb没有给出原因的情况:

Core was generated by `executable'.

I'm wondering what could cause a core dump where gdb doesn't give the reason for its generation. 我想知道是什么会导致核心转储,而gdb却没有给出生成它的原因。

It turns out that this core file was generated using gcore, so there wasn't actually a problem with the executable. 事实证明,此核心文件是使用gcore生成的,因此可执行文件实际上没有问题。 /facepalm /捂脸

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM