Pthreads and Extension Modules on Linux

Kevin Dahlhausen kdahlhaus at yahoo.com
Mon Nov 15 14:10:47 EST 2004


I've been playing with pySonic on unix.   PySonic is pyrex wrapper
around the fmod  sound library.  Fmod is distributed as a shared
library that uses pthreads.  I am getting a segfault when a stream
stops playing, at this point I've been able to determine only that the
segfault is from a semaphore message in the pthread library.

Native C++ code solution works fine, so it is some interaction between
python->pySonic shared lib extension->fmod shared lib.

Is anyone aware of any issues or special compiler settings when
building an extension (shared lib) that depends on another shared lib
that uses pthreads?



More information about the Python-list mailing list