[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

Terry J. Reedy report at bugs.python.org
Fri May 29 19:25:34 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

hang.py uses the default multiprocessing start method, which was then 'fork'.  It is now 'spawn' on macOS.  And there have been many other changes.  When I run the following from IDLE, it finishes immediately.

import multiprocessing, sqlite3
def hang():
   sqlite3.connect('/tmp/foo')
if __name__ == '__main__':
   multiprocessing.Pool(2).apply_async(hang, []).get(999)
print('done')

Unless I am missing something, this should be closed as 'out of date'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20353>
_______________________________________


More information about the Python-bugs-list mailing list