+ 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 87fa47d8e3
commit 37c881c9b5
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");