Author Vladimir.Ushakov
Recipients Vladimir.Ushakov, christian.heimes, jcea, neologix, pitrou, vstinner
Date 2012-10-14.09:04:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
SIGBUS as well as SIGFPE or SIGSEGV is a synchronous signal. It is delivered to the thread that caused the trouble and the stack contents is well defined.


Does not apply here: longjmp is not a return.


The grounds are weak. They refer to SIG30-C, which is based on ISO C standard.

POSIX explicitly declares the fact that longjmp is allowed to exit signal handlers as an extension to ISO C standard.


Besides, POSIX explicitly states that only async-signal-safe functions can be called from the handlers, which "are invoked asynchronously with process execution". That's not out case as mentioned above, we are not in asynchronous context as it could be with, say, SIGINT.


Glibc doesn't mind as well:

I can doubt about non-POSIX platforms, but with POSIX everything seems clean to me. Especially since the method is already in use with SIGFPE.
Date User Action Args
2012-10-14 09:04:48Vladimir.Ushakovsetrecipients: + Vladimir.Ushakov, jcea, pitrou, vstinner, christian.heimes, neologix
2012-10-14 09:04:48Vladimir.Ushakovsetmessageid: <>
2012-10-14 09:04:48Vladimir.Ushakovlinkissue16212 messages
2012-10-14 09:04:47Vladimir.Ushakovcreate