Message303941
I failed to build https://github.com/FynnBe/faulthandler-spam with a Python built myself. But I succeeded to recompile a Python extension (_overlapped) in C++ (I removed two functions which caused compilation error) and then added faulthandler-spam/test_module/module.cpp code into _overlapped. So I was able to test C++ code raising a regular extension called by Python.
Sadly, using "AddVectoredExceptionHandler(0, faulthandler_exc_handler);" (instead of "AddVectoredExceptionHandler(1, ...") doesn't solve the issue: the exception is still logged. It seems like the faulthandler exception handler is called before C++ has the opportunity to handle the exception.
So it doesn't seem possible to log *unhandled* C++ exceptions using AddVectoredExceptionHandler() without flooding logs with *handled* C++ extensions.
I now agree with Steve Dower to ignore *all* C++ exceptions in faulthandler. |
|
Date |
User |
Action |
Args |
2017-10-09 11:09:53 | vstinner | set | recipients:
+ vstinner, paul.moore, tim.golden, zach.ware, steve.dower, Fynn Be |
2017-10-09 11:09:53 | vstinner | set | messageid: <1507547393.74.0.213398074469.issue31701@psf.upfronthosting.co.za> |
2017-10-09 11:09:53 | vstinner | link | issue31701 messages |
2017-10-09 11:09:53 | vstinner | create | |
|