提问人:Proy 提问时间:3/1/2022 更新时间:3/1/2022 访问量:334
展开导致分段故障
unwind causing segmentation fault
问:
我正在使用 backward-cpp (https://github.com/bombela/backward-cpp) 打印堆栈跟踪。但是,这会产生分段错误。以下是堆栈的 gdb 跟踪:
0x00007ffff608e357 in _Unwind_Backtrace () from /lib/x86_64-linux-gnu/libgcc_s.so.1
(gdb) bt full
#0 0x00007ffff608e357 in _Unwind_Backtrace () from /lib/x86_64-linux-gnu/libgcc_s.so.1
No symbol table info available.
#1 0x000055555567225c in backward::details::Unwinder<backward::StackTraceImpl<backward::system_tag::linux_tag>::callback>::operator() (this=0x7ffff7ee7410, f=..., depth=32)
at inc/backward.hpp:814
No locals.
#2 0x000055555566d66a in backward::details::unwind<backward::StackTraceImpl<backward::system_tag::linux_tag>::callback> (f=..., depth=32) at inc/backward.hpp:857
unwinder = {_f = 0x7ffff7ee7408, _index = 13, _depth = 32}
#3 0x00005555556666d2 in backward::StackTraceImpl<backward::system_tag::linux_tag>::load_here (this=0x7ffff7ee74c0, depth=32, context=0x0, error_addr=0x0) at inc/backward.hpp:875
trace_cnt = 140732520194072
我用 -g 编译了代码。如何解决该问题?
答: 暂无答案
评论
context=0x0
error_addr=0x0