diff options
Diffstat (limited to 'src/caffe/common.cpp')
-rw-r--r-- | src/caffe/common.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/caffe/common.cpp b/src/caffe/common.cpp index 94fdf924..834d5694 100644 --- a/src/caffe/common.cpp +++ b/src/caffe/common.cpp @@ -35,6 +35,8 @@ void GlobalInit(int* pargc, char*** pargv) { ::gflags::ParseCommandLineFlags(pargc, pargv, true); // Google logging. ::google::InitGoogleLogging(*(pargv)[0]); + // Provide a backtrace on segfault. + ::google::InstallFailureSignalHandler(); } #ifdef CPU_ONLY // CPU-only Caffe. |