Try and debug the point of the crash by using gdb as described in:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB

to get a stack trace of where it crashes.

Shared library version conflicts could be one cause, as could PHP
extension modules/libraries using a global symbol name that clashes
with a name used in a Python C extension module or library.

Get a stack track out of gdb and that will give a clue as to the problem.

Graham

On 30 January 2011 22:12, dmitrybelyakov <[email protected]> wrote:
> Hello,
>
> I would like to ask you for some support with modwsgi as it's my
> actual first time with python.
>
> I am running MacOS 10.6.6 and installed latest python2 that is 2.7.1
> via .dmg image provided on python website, that installed python to
> standard location that is: /Library/Frameworks/Python.framework/
> Versions/2.7
>
> I am also running ZendServer with Apache 2.2.15 that i want to add
> modwsgi to.
> So i downloaded the latest modwsgi that is mod_wsgi-3.3 and configured
> it with the folowing options:
>
> ./configure --disable-framework --with-apxs=/usr/local/zend/apache2/
> bin/apxs --with-python=/usr/local/bin/python
>
> that gave me:
>
> checking Apache version... 2.2.15
> configure: creating ./config.status
> config.status: creating Makefile
>
> then make, that gave me:
>
> /usr/local/zend/apache2/bin/apxs -c -I/Library/Frameworks/
> Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  -Wc,'-arch
> i386' mod_wsgi.c -L/Library/Frameworks/Python.framework/Versions/2.7/
> lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
> config  -arch i386 -lpython2.7 -ldl  -framework CoreFoundation
> /usr/local/zend/apache2/build-1/libtool --silent --mode=compile gcc -
> prefer-pic -O2 -pipe -g -fno-common  -DDARWIN -
> DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/usr/local/pcre-8.00/
> include -DPCRE_STATIC -I/usr/local/zend/apache2/include  -I/usr/local/
> zend/apache2/include/apr-1   -I/usr/local/zend/apache2/include/apr-1  -
> arch i386 -I/Library/Frameworks/Python.framework/Versions/2.7/include/
> python2.7 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
> /usr/local/zend/apache2/build-1/libtool --silent --mode=link gcc -o
> mod_wsgi.la  -rpath /usr/local/zend/apache2/modules -module -avoid-
> version    mod_wsgi.lo -L/Library/Frameworks/Python.framework/Versions/
> 2.7/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7/config -arch i386 -lpython2.7 -ldl -framework CoreFoundation
>
> and finally make install that gave me:
>
> /usr/local/zend/apache2/bin/apxs -i -S LIBEXECDIR=/usr/local/zend/
> apache2/modules -n 'mod_wsgi' mod_wsgi.la
> /usr/local/zend/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/zend/
> apache2/build-1/libtool' mod_wsgi.la /usr/local/zend/apache2/modules
> /usr/local/zend/apache2/build-1/libtool --mode=install cp mod_wsgi.la /
> usr/local/zend/apache2/modules/
> cp .libs/mod_wsgi.so /usr/local/zend/apache2/modules/mod_wsgi.so
> cp .libs/mod_wsgi.lai /usr/local/zend/apache2/modules/mod_wsgi.la
> cp .libs/mod_wsgi.a /usr/local/zend/apache2/modules/mod_wsgi.a
> chmod 644 /usr/local/zend/apache2/modules/mod_wsgi.a
> ranlib /usr/local/zend/apache2/modules/mod_wsgi.a
> ----------------------------------------------------------------------
> Libraries have been installed in:
>   /usr/local/zend/apache2/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>   - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
>     during execution
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
> chmod 755 /usr/local/zend/apache2/modules/mod_wsgi.so
>
>
> So as you can see, there were no errors or any other notices.
> I then go load mod_wsgi.so into my httpd.conf, and when restarting
> Apache I get a notice in logs that states:
>
> [Sun Jan 30 13:37:33 2011] [notice] Apache/2.2.15 (Unix) PHP/5.3.2
> mod_wsgi/3.3 Python/2.7.1 mod_ssl/2.2.15 OpenSSL/0.9.8n configured --
> resuming normal operations
>
> Everything looks good so far but as soon as I access the virtual host
> it crashes the server and i get an 324 empty response error, with the
> following line in apache logs:
>
> [Sun Jan 30 13:37:52 2011] [notice] child pid 65398 exit signal Bus
> error (10)
>
> I googled around and found no suitable solution so far. As a side note
> here's an output of otool -L and file commands against my compiled .so
> extension
>
> # otool -L /usr/local/zend/apache2/modules/mod_wsgi.so
> /usr/local/zend/apache2/modules/mod_wsgi.so:
>        /Library/Frameworks/Python.framework/Versions/2.7/Python
> (compatibility version 2.7.0, current version 2.7.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 125.2.1)
>        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/
> CoreFoundation (compatibility version 150.0.0, current version
> 550.42.0)
>
> # file /usr/local/zend/apache2/modules/mod_wsgi.so
> /usr/local/zend/apache2/modules/mod_wsgi.so: Mach-O bundle i386
>
>
> --
> 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.
>
>

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

Reply via email to