【发布时间】:2019-05-12 12:11:00
【问题描述】:
如果我有一个无限递归错误,当我在ddd 中发现这个错误时,需要很长时间才能从段错误中产生回溯。
如果a、b,、c,等是函数,调用栈是
a b c c c c ... (thousands) ... c c (SIGSEGV)
或
a b c b c ... (thousands) ... b c b c (SIGSEGV)
生成相关的堆栈跟踪可能需要几分钟时间。
如果我怀疑是这种情况,有没有办法让 gdb/ddd 快速跳到重复的开头,而不是等待它一直跟踪到后面?
【问题讨论】:
标签: debugging recursion gdb segmentation-fault