[issue12905] multiple errors in test_socket on OpenBSD

Charles-François Natali report at bugs.python.org
Wed Sep 7 20:34:10 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

> Using SA_RESTART, read() is not interrupted. But if the program is linked to pthread, read() is always interrupted: with sa_flags=0 or sa_flags=SA_RESTART.
>

Ouch...

>> But OpenBSD's pthread implementation has severe limitations/bugs.
>
> rthread doc contains:
>
> "Future work:
>
> Quite simply, signal handling is one the most complicated aspects of threads to get right. (...)"
>

This paper dates back to 2005, I was hoping they would have solved
this by now...

As for the original problem, IIUC you don't reproduce it with your C
test code...
It might be due to a subtle difference in the way Python is built
(like POSIX_SOURCE...), but it's hard to tell...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12905>
_______________________________________


More information about the Python-bugs-list mailing list