gpt4 book ai didi

c++ - libc 退出调用中的核心转储

转载 作者:行者123 更新时间:2023-11-30 04:36:01 26 4
gpt4 key购买 nike

我在程序的退出过程中看到 solaris 中的核心转储。如何调试和修复这种核心转储?

(gdb) where
#0 0xff2cc0c0 in kill () from /usr/lib/libc.so.1
#1 0x0004dac0 in run_before_killed_handler (sig=11) at NdmpServer.cpp:1186
#2 signal handler called
#3 0xfee0ad50 in ?? ()
#4 0x00060a6c in proc_cleanup ()
#5 0xff2421ac in _exithandle () from /usr/lib/libc.so.1
#6 0xff2305d8 in exit () from /usr/lib/libc.so.1
#7 0x0003431c in _start ()

最佳答案

您的程序显然使用了 atexit(3C)注册一个退出处理程序。问题出在该处理程序中。

关于c++ - libc 退出调用中的核心转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4827422/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com