2009/2/18 Ross Vandegrift <[email protected]>: > > Hi everyone, > > I'm attempting to put together a staging system for a Pylons > application using mod_wsgi. The environment is a bit special: I am > running RHEL4, Apache 2.0, with a Python2.4 installation in > /usr/local/python that wasn't built with a shared library. I'm using > virtualenv to keep the staging system isolated. > > After following the installation istructions and tips for segfaulting > mod_wsgi, I'm still seeing segfaults on any request in both process > and daemon mode when running code from my virtualenv. The "Hello > World" WSGI app works fine. > > Unfortunately, I don't have debugging symbols on my python or httpd > builds. > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1229816928 (LWP 7031)] > 0x00bc024f in PyString_FromString (str=0x0) at > Objects/stringobject.c:106 > 106 Objects/stringobject.c: No such file or directory. > in Objects/stringobject.c > (gdb) bt > #0 0x00bc024f in PyString_FromString (str=0x0) at Objects/stringobject.c:106 > #1 0x00c17aaa in PyModule_AddStringConstant (m=0xad1a95fc, name=0x881fa0 > "XML_ERROR_UNDECLARING_PREFIX", value=0x0) at Python/modsupport.c:589 > #2 0x00865964 in ?? () > #3 0xad1a95fc in ?? () > #4 0x00881fa0 in ?? () > #5 0x00000000 in ?? () > > > Is mod_wsgi a lost cause with a static python and virtualenv, or is it > possible I've screwed something up?
A check list for you to go through, check and answer. 1. What version of mod_wsgi are you using? Latest official release is 2.3. 2. Does a simple standalone hello world application work? That is, no Pylons ot any other third party package. 3. Are you loading mod_python at the same time? If you are then disable it. 4. Are you loading PHP at the same time? If you are then disable it? 5. Have you checked for expat incompatibilities? Refer http://code.google.com/p/modwsgi/wiki/IssuesWithExpatLibrary. 6. Are you using mod_wsgi embedded mode or daemon mode? 7. Is whatever mode you are using setup for multithreading? My initial guess would be the expat compatibility as this has produced crash in that function before. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
