New submission from Xavier de Gaye: After an alarm handler raises an exception while a tracing function is being invoked and when this exception is not caught by the tracing function, the call_trampoline() function in sysmodule.c returns NULL and its caller, trace_trampoline(), removes the trace function. Therefore, tests that raise an exception in an alarm handler should use the support.no_tracing decorator as it is done in test_io.py at check_reentrant_write().
Patch attached. ---------- components: Library (Lib) files: no_tracing.diff keywords: patch messages: 210984 nosy: xdegaye priority: normal severity: normal status: open title: tracing and tests that raise an exception in a SIGALRM handler type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file34046/no_tracing.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20601> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com