提交 a88ecf47 编写于 作者: M Megvii Engine Team

feat(debug): change megbrain do not catch SEGV signal by default

change to enable SEGV catch when set MGB_REGISTER_SEGV_HANDLER env
only take effect on Linux and MacOS

GitOrigin-RevId: ceb76ff953be27285faa04c3a43139ecdb632415
上级 2950dd8d
......@@ -194,7 +194,14 @@ class InitCaller {
InitCaller() {
#ifndef WIN32
if (MGB_GETENV("MGB_REGISTER_SEGV_HANDLER")) {
mgb_log_warn(
"env config MGB_REGISTER_SEGV_HANDLER, which means "
"megbrain will catch crash SEGV signal, if you do not want "
"to megbrain do this, do unset MGB_REGISTER_SEGV_HANDLER "
"and rerun");
SigHandlerInit::init_for_segv();
}
#endif
#if MGB_CUDA
CudaCheckOnFork::init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册