STINNER Victor added the comment:

> With all faulthandler references removed from regrtest.py no
> bus errors happen, but most tests fail anyway. As I said, I'm
> NOT blaming faulthandler, but suspect some strange platform
> bug that perhaps involves linuxthreads.

Threads + signal is a very complex problem. It is not solved yet in OpenBSD for 
example. There were a lot of such issues on old versions of FreeBSD. Extract of 
the Wikipedia article of LinuxThreads:

"LinuxThreads had a number of problems, mainly owing to the implementation, 
which used the clone system call to create a new process sharing the parent's 
address space. For example, threads had distinct process identifiers, causing 
problems for signal handling; (...)"

If disabling faulthandler avoids new issues, you can add 'if 
sys.thread_info.version.startswith("linuxthreads"):" on the line:

faulthandler.enable(all_threads=True)

in regrtest.py.

I added sys.thread_info to be able to skip some tests only failing on 
LinuxThreads...

--

> but most tests fail anyway

Ah? With which message? Can you get more information in gdb?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15589>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to