[Twisted-Python] segfaults with deferToThread

Andrew Bennetts andrew-twisted at puzzling.org
Mon Feb 7 23:37:01 EST 2005


On Mon, Feb 07, 2005 at 07:53:46PM -0800, snacktime wrote:
> This is on Freebsd 5.3-release-p2 with python 2.4.
> 
> The script below calls a blocking method using deferToThread.  When I
> have 5 or so clients all hitting it at the same time I get a segfault
> or bus error within minutes.

This looks like it may be related to http://python.org/sf/1080660.  I've
added a comment to that bug; you might like to follow-up there yourself.
The bug is almost certainly in Python itself (or a 3rd-party extension
module you're using, like psycopg), and not Twisted.

-Andrew.





More information about the Twisted-Python mailing list