[pypy-issue] [issue1465] cffi callback crashes in multithread environment

Armin Rigo tracker at bugs.pypy.org
Tue Sep 3 10:02:44 CEST 2013

Armin Rigo <armin.rigo at gmail.com> added the comment:

Argh!  Found out the reason for why it crashes.  It's only because the GIL was
not initialized.  In the example I tried, adding the following line at the top
of the script helps a lot:

    import thread; thread.start_new_thread(lambda: None, ())

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list