[MacPorts] #22518: Apache2 / mod_wsgi / python 2.6 crash

MacPorts noreply at macports.org
Fri Jan 8 08:48:35 PST 2010


#22518: Apache2 / mod_wsgi / python 2.6 crash
-------------------------------+--------------------------------------------
 Reporter:  nerdrew@…          |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.8.1                                
 Keywords:                     |        Port:  mod_wsgi apache2 python26            
-------------------------------+--------------------------------------------

Comment(by nerdrew@…):

 So, I have done some more research into this. Here is what I have found.
 The problem should only exist on Snow Leopard, as it seems
 [http://www.opensource.apple.com/source/CF/CF-550.13/CFRuntime.c
 CFRuntime.c] changed between 10.5 and 10.6. Looking at {{{void
 __CFInitialize(void)}}} in CFRuntime.c shows that "CoreFoundation must be
 initialized on the main thread." To work around this problem while
 continuing to use the worker mpm with mod_wsgi, you can include the
 following in your wsgi config file:

 {{{
 WSGIImportScript <your-wsgi-script> process-group=<your-process-group>
 application-group=%{GLOBAL}
 }}}

 I think this will only work for one script though, but I'm not sure.

-- 
Ticket URL: <http://trac.macports.org/ticket/22518#comment:18>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list