Opened 10 years ago

Closed 10 years ago

#44762 closed defect (fixed)

mod_wsgi crashes

Reported by: micrology Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: mod_wsgi

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Attachments (1)

httpd_2014-08-25-104039_Nigels-iMac.crash (23.0 KB) - added by micrology 10 years ago.
Crash report

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nomaintainer@… removed
Description: modified (diff)
Keywords: wsgi apache removed

comment:2 Changed 10 years ago by neverpanic (Clemens Lang)

Can you attach the complete crash report?

Changed 10 years ago by micrology

Crash report

comment:3 Changed 10 years ago by micrology

The crash report is now attached.

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

OK, so it's obviously a null pointer dereference. The loaded python library seems to be correct. I'll try to reproduce.

comment:5 Changed 10 years ago by neverpanic (Clemens Lang)

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.

comment:6 in reply to:  5 Changed 10 years ago by micrology

Replying to 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.

comment:7 Changed 10 years ago by micrology

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.

comment:8 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.