gdb提示 "Detaching after fork from child process 15***" 时的意思

当gdb再调试某进程时,某进程fork了一个子进程,gdb只能够跟随这两个进程的其中一个。它必须从另一个进程“挣脱”。这行提示是在通知开发者它所“挣脱”的进程。紫禁城15***正在没有gdb的情况下运行。

你可以通过 set follow-fork-mode 命令来选择所要跟随的子进程。set follow-fork-mode child 就是跟随子进程,set follow-fork-mode parent 就是返回到默认行为。

For more details, see this page on the Apple development website.

来源:https://stackoverflow.com/questions/4300317/meaning-of-detaching-after-fork-from-child-process-15

(gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/562381/code/P_2023.05.06_IPCHisilicon_Vodka_RUB_SD/./mkconfig warning: Error disabling address space randomization: Operation not permitted /*************************************************************************************************/ Session : SESSION_Normal_Normal_ITOP_Dahua_Chn_PN SESSION_Normal_Normal_ITOP_Dahua_MultiLang_PN SESSION_Normal_Normal_ITOP_General_Chn_PN SESSION_Normal_Normal_ITOP_General_MultiLang_PN SESSION_Normal_Normal_LLM_ITOP_Dahua_Chn_PN SESSION_Normal_Normal_LLM_ITOP_Dahua_MultiLang_PN SESSION_Normal_Normal_LLM_ITOP_General_Chn_PN SESSION_Normal_Normal_LLM_ITOP_General_MultiLang_PN SESSION_LingDongPro_Normal_Dahua_Chn_PN SESSION_LingDongPro_Normal_Dahua_MultiLang_PN SESSION_LingDongPro_Normal_General_Chn_PN SESSION_LingDongPro_Normal_General_MultiLang_PN SESSION_XVR_ShuangPinXVR_ITOP_Dahua_Chn_PN SESSION_XVR_ShuangPinXVR_ITOP_Dahua_MultiLang_PN SESSION_XVR_ShuangPinXVR_ITOP_General_Chn_PN SESSION_XVR_ShuangPinXVR_ITOP_General_MultiLang_PN SESSION_Normal_Monitor_ITOP_Dahua_Chn_PN SESSION_Normal_Monitor_ITOP_General_Chn_PN SESSION_Normal_Traffic_ITOP_Dahua_Chn_PN SESSION_Normal_Traffic_ITOP_General_Chn_PN SESSION_Normal_Energy_ITOP_Dahua_Chn_PN SESSION_Normal_Energy_ITOP_General_Chn_PN SESSION_Normal_Water_ITOP_Dahua_Chn_PN SESSION_Normal_Water_ITOP_General_Chn_PN SESSION_Normal_Water_LLM_ITOP_Dahua_Chn_PN SESSION_Normal_Water_LLM_ITOP_General_Chn_PN SESSION_Normal_DHOP_ITOP_Dahua_MultiLang_PN SESSION_Normal_DHOP_ITOP_General_MultiLang_PN SESSION_XVR_ShuangPinXVR_GV_ITOP_Dahua_Chn_PN SESSION_XVR_ShuangPinXVR_GV_ITOP_General_Chn_PN SESSION_Normal_Normal_None_Dahua_Chn_PN SESSION_Normal_Normal_None_General_Chn_PN SESSION_XVR_ShuangPinXVR_Acupick_ITOP_Dahua_MultiLang_PN SESSION_XVR_ShuangPinXVR_Acupick_ITOP_General_MultiLang_PN SESSION_XVR_ShuangPinXVR_Acupick_LLMMul_ITOP_Dahua_MultiLang_PN SESSION_XVR_ShuangPinXVR_Acupick_LLMMul_ITOP_General_MultiLang_PN SESSION_XVR_ShuangPinXVR_Acupick_LLM_ITOP_General_MultiLang_PN SESSION_XVR_ShuangPinXVR_Acupick_LLM_ITOP_Dahua_MultiLang_PN SESSION_XVR_ShuangPinXVR_Energy_ITOP_Dahua_Chn_PN SESSION_XVR_ShuangPinXVR_Energy_ITOP_General_Chn_PN SESSION_XVR_ShuangPinXVR_LLM_ITOP_Dahua_Chn_PN SESSION_XVR_ShuangPinXVR_LLM_ITOP_Dahua_MultiLang_PN SESSION_XVR_ShuangPinXVR_LLM_ITOP_General_Chn_PN SESSION_XVR_ShuangPinXVR_LLM_ITOP_General_MultiLang_PN SESSION_XCC_Agent_Normal_Dahua_Chn_PN SESSION_XCC_Agent_Traffic_Dahua_Chn_PN Transaction : All uboot kernel dtb romfs pd web firmware itop Version : 3.200.0000028.0.R 3. [Detaching after fork from child process 68657] [Detaching after fork from child process 68658]***************************************************/ cfg_productDef address: 0x7fff102176b8 pure virtual method called terminate called without an active exception Program received signal SIGABRT, Aborted. 0x00007f463f17b387 in raise () from /lib64/libc.so.6 (gdb) bt full #0 0x00007f463f17b387 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00007f463f17ca78 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00007f463fa8ba95 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6 No symbol table info available. #3 0x00007f463fa89a06 in ?? () from /lib64/libstdc++.so.6 No symbol table info available. #4 0x00007f463fa89a33 in std::terminate() () from /lib64/libstdc++.so.6 No symbol table info available. #5 0x00007f463fa8a59f in __cxa_pure_virtual () from /lib64/libstdc++.so.6 No symbol table info available. #6 0x000000000041138a in Json::Value::~Value (this=0x1071e5d0, __in_chrg=<optimized out>) at src/lib_json/json_value.cpp:518 No locals. #7 0x0000000000411438 in std::pair<Json::Value::CZString const, Json::Value>::~pair (this=0x1071e5c0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:68 No locals. #8 0x0000000000411491 in destroy (__p=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/new_allocator.h:115 No locals. #9 std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_destroy_node (this=<optimized out>, __p=0x1071e5a0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:383 No locals. #10 0x00000000004114f9 in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e5a0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:972 __y = 0x0 #11 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e550) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #12 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e500) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #13 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e4b0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #14 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e460) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #15 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e410) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #16 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString cons---Type <return> to continue, or q <return> to quit--- t, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e3c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #17 0x00000000004114ea in std::_Rb_tree<Json::Value::CZString, std::pair<Json::Value::CZString const, Json::Value>, std::_Select1st<std::pair<Json::Value::CZString const, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<Json::Value::CZString const, Json::Value> > >::_M_erase (this=0x1071e330, __x=0x1071e370) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:970 __y = <optimized out> #18 0x00000000004113a0 in ~_Rb_tree (this=0x1071e330, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:614 No locals. #19 ~map (this=0x1071e330, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:87 No locals. #20 Json::Value::~Value (this=0x107224a8, __in_chrg=<optimized out>) at src/lib_json/json_value.cpp:523 No locals. #21 0x0000000000403e57 in PareItemFest::~PareItemFest (this=0x10722450, __in_chrg=<optimized out>) at Src/mkconfig.cpp:50 No locals. #22 0x0000000000407cac in _Destroy<PareItemFest> (__pointer=0x10722450) at /usr/include/c++/4.8.2/bits/stl_construct.h:93 No locals. #23 std::_Destroy_aux<false>::__destroy<PareItemFest*> (__first=0x10722450, __last=0x10722850) at /usr/include/c++/4.8.2/bits/stl_construct.h:103 No locals. #24 0x0000000000407cf3 in _Destroy<PareItemFest*> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/4.8.2/bits/stl_construct.h:126 No locals. #25 _Destroy<PareItemFest*, PareItemFest> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/4.8.2/bits/stl_construct.h:151 No locals. #26 std::vector<PareItemFest, std::allocator<PareItemFest> >::~vector (this=0x61c310 <pareItemFest>, __in_chrg=<optimized out>) at /usr/include/c++/4.8.2/bits/stl_vector.h:415 No locals. #27 0x00007f463f17ece9 in __run_exit_handlers () from /lib64/libc.so.6 No symbol table info available. #28 0x00007f463f17ed37 in exit () from /lib64/libc.so.6 No symbol table info available. #29 0x00007f463f16755c in __libc_start_main () from /lib64/libc.so.6 No symbol table info available. #30 0x00000000004027b9 in _start () No symbol table info available.
最新发布
08-30
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值