+ do not throw exception from inside signal handler to get useful stack trace for segmentation faults

This commit is contained in:
wmayer
2015-01-13 22:01:59 +01:00
parent 7c789a1bf7
commit fa4f8b0735
2 changed files with 8 additions and 4 deletions

View File

@@ -116,9 +116,9 @@ void PartExport initPart()
// if we have mysterious crashes
// The argument must be 'Standard_False' to avoid FPE caused by
// Python's cmath module.
//#if defined(FC_OS_LINUX)
#if !defined(_DEBUG)
OSD::SetSignal(Standard_False);
//#endif
#endif
PyObject* partModule = Py_InitModule3("Part", Part_methods, module_part_doc); /* mod name, table ptr */
Base::Console().Log("Loading Part module... done\n");