Sunday, November 18, 2007

Version 1.3 of mod_wsgi is now available.

Version 1.3 of mod_wsgi is a bug fix only release, addressing issues with mod_wsgi daemon processes hanging under certain conditions. It is highly recommended that users of mod_wsgi who use daemon mode of mod_wsgi upgrade to this new version. A third release candidate for version 2.0 is also now being made available incorporating the same fix and adding an additional feature to detect errant Python C extension modules that don't release the Python GIL when running long, potentially blocking, operations.

5 comments:

Jonas said...

Seems like mod_wsgi crashes as of FreeBSD 7.x pthread redux :(

Endless loop:

#0 0x285d05a9 in pthread_join () from /lib/libthr.so.3
#1 0x285cd304 in pthread_self () from /lib/libthr.so.3
#2 0x285cd610 in pthread_rwlock_timedwrlock () from /lib/libthr.so.3
#3 0x285d07a9 in pthread_join () from /lib/libthr.so.3
#4 0x285cd304 in pthread_self () from /lib/libthr.so.3
#5 0x285cd610 in pthread_rwlock_timedwrlock () from /lib/libthr.so.3
(...)
#201 0x285d07a9 in pthread_join () from /lib/libthr.so.3
#202 0x285cd304 in pthread_self () from /lib/libthr.so.3
#203 0x285cd610 in pthread_rwlock_timedwrlock () from /lib/libthr.so.3

Thanks for looking into it.

Jonas said...

Ah yes, in the above case its mod_wsgi 1.3, but it might affect 2.0 too.

Graham Dumpleton said...

FreeBSD threading support has given others problems as well. In part it looks to be problems in FreeBSD rather than mod_wsgi. See:

http://blag.whit537.org/2007/07/freebsd-threads-apache-and-modwsgi.html

It would appear that if one doesn't sing the right magic incantation that you will hit problems.

If you can provide better information about the problems then post it on the mod_wsgi list on Google groups.

Jonas said...

Alright,to note: I'm trying to get it to run within Apache 1.3. Now this envvar file does not exist.

So I tried to libmap to other threading implementations but python would not even compile with them.

pthreads are now now in libthr.so, I was told, there is no longer libpthreads. Thus I think you will really have to look into it anew for FreeBSD 7.x - things have changed.

Graham Dumpleton said...

Not really up to mod_wsgi, as it just uses apxs from Apache, so Apache's build mechanism is what needs to be setup correctly. I think though you will not be able to get Apache 1.3 to work as it doesn't have threading compiled into it anyway.