[issue18869] test suite: faulthandler signal handler is lost

2013-08-29 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread Charles-François Natali
Charles-François Natali added the comment: I'll tackle #13285 instead. -- resolution: -> duplicate stage: -> committed/rejected superseder: -> signal module ignores external signal changes ___ Python tracker ___

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread STINNER Victor
STINNER Victor added the comment: "One way to fix this would be to add a WithSignalHandler(signal, handler) context manager to test.support that would replace the signal handler upon entry, and re-register faulthandler's handler upon exit." faulthandler.dump_traceback_later() is registered bef

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Or perhaps we could enhance the signal module so that getsignal() return > > something (i.e. a specific object) which can restore the C signal handler. > > That would be better than special-casing faulthandler, IMHO. > > Yes, I thought about that, see http

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread Charles-François Natali
Charles-François Natali added the comment: > Or perhaps we could enhance the signal module so that getsignal() return > something (i.e. a specific object) which can restore the C signal handler. > That would be better than special-casing faulthandler, IMHO. Yes, I thought about that, see http:

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or perhaps we could enhance the signal module so that getsignal() return something (i.e. a specific object) which can restore the C signal handler. That would be better than special-casing faulthandler, IMHO. -- nosy: +pitrou _

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread R. David Murray
R. David Murray added the comment: See also issue 3948 for another variation of this problem with getsignal/setsignal. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue18869] test suite: faulthandler signal handler is lost

2013-08-28 Thread Charles-François Natali
New submission from Charles-François Natali: At the beginning of the test suit execution, faulthandler registers its signal handler for fatal signals, as well as SIGUSR1 and SIGALRM. The problem is that some tests temporary change those handlers, e.g. for EINTR-handling tests. While they do re