[MacPorts] #44762: mod_wsgi crashes
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: wsgi, apache | Port: mod_wsgi --------------------------+-------------------------------- I have apache2 @2.2.27_0+preforkmpm, python27 @2.7.8_1 and mod_wsgi @4.2.7_0+python27 installed in Mac OS X 10.9.4. Enabling "LoadModule wsgi_module modules/mod_wsgi.so" results in a crash: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 mod_wsgi.so 0x00000001101fec13 wsgi_python_init + 55 1 mod_wsgi.so 0x00000001102000da wsgi_hook_child_init + 133 2 httpd 0x000000010f30c140 ap_run_child_init + 51 3 httpd 0x000000010f32fa6a child_main + 263 4 httpd 0x000000010f32f2fc make_child + 207 5 httpd 0x000000010f32ed68 ap_mpm_run + 2089 6 httpd 0x000000010f3114ce main + 2314 7 libdyld.dylib 0x00007fff8ef675fd start + 1 Commenting out the LoadModule line allows Apache to run, but of course without mod_wsgi. -- Ticket URL: <https://trac.macports.org/ticket/44762> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Changes (by ryandesign@…): * cc: nomaintainer@… (removed) * keywords: wsgi, apache => Old description:
I have apache2 @2.2.27_0+preforkmpm, python27 @2.7.8_1 and mod_wsgi @4.2.7_0+python27 installed in Mac OS X 10.9.4. Enabling "LoadModule wsgi_module modules/mod_wsgi.so" results in a crash:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 mod_wsgi.so 0x00000001101fec13 wsgi_python_init + 55 1 mod_wsgi.so 0x00000001102000da wsgi_hook_child_init + 133 2 httpd 0x000000010f30c140 ap_run_child_init + 51 3 httpd 0x000000010f32fa6a child_main + 263 4 httpd 0x000000010f32f2fc make_child + 207 5 httpd 0x000000010f32ed68 ap_mpm_run + 2089 6 httpd 0x000000010f3114ce main + 2314 7 libdyld.dylib 0x00007fff8ef675fd start + 1
Commenting out the LoadModule line allows Apache to run, but of course without mod_wsgi.
New description: I have apache2 @2.2.27_0+preforkmpm, python27 @2.7.8_1 and mod_wsgi @4.2.7_0+python27 installed in Mac OS X 10.9.4. Enabling "LoadModule wsgi_module modules/mod_wsgi.so" results in a crash: {{{ Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 mod_wsgi.so 0x00000001101fec13 wsgi_python_init + 55 1 mod_wsgi.so 0x00000001102000da wsgi_hook_child_init + 133 2 httpd 0x000000010f30c140 ap_run_child_init + 51 3 httpd 0x000000010f32fa6a child_main + 263 4 httpd 0x000000010f32f2fc make_child + 207 5 httpd 0x000000010f32ed68 ap_mpm_run + 2089 6 httpd 0x000000010f3114ce main + 2314 7 libdyld.dylib 0x00007fff8ef675fd start + 1 }}} Commenting out the LoadModule line allows Apache to run, but of course without mod_wsgi. -- -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by cal@…): Can you attach the complete crash report? -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by n.gilbert@…): The crash report is now attached. -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by cal@…): OK, so it's obviously a null pointer dereference. The loaded python library seems to be correct. I'll try to reproduce. -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by cal@…): Works fine on my system. I have updated mod_wsgi to the latest version in r124538, please try and see if that helps. Since the port doesn't have a maintainer in MacPorts you might want to request assistance upstream (`port gohome mod_wsgi`) or investigate further yourself. -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by n.gilbert@…): Replying to [comment:5 cal@…]:
Works fine on my system. I have updated mod_wsgi to the latest version in r124538, please try and see if that helps.
Since the port doesn't have a maintainer in MacPorts you might want to request assistance upstream (`port gohome mod_wsgi`) or investigate further yourself.
Thanks for the latest version, but regrettably, it doesn't make a difference. I will seek help from the module author. -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Comment (by n.gilbert@…): Solved! The trick is to ensure that once mod_wsgi has been included in your httpd.conf file, you stop the server (`sudo apachectl stop`) if it is running, and then start it (`sudo apachectl start`). Do not just use `sudo apachectl graceful` , as I did. -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44762: mod_wsgi crashes --------------------------+-------------------------------- Reporter: n.gilbert@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: Port: mod_wsgi | --------------------------+-------------------------------- Changes (by mf2k@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/44762#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts