[issue815646] thread unsafe file objects cause crash

Antoine Pitrou report at bugs.python.org
Fri Mar 28 19:09:53 CET 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

This is a preliminary patch which shows how things might be done better.
It only addresses close(), seek() and dealloc right now. However, as
mentioned in test_close_open_seek, if I raise the number of workers, I
get crashes (while test_close_open is fine). Perhaps fseek() in the
glibc is thread unsafe when operating on the same file descriptor?

----------
keywords: +patch
Added file: http://bugs.python.org/file9883/filethread1.patch

____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue815646>
____________________________________


More information about the Python-bugs-list mailing list