[mod_python] apache core dumped after mod_python 2.7.11installation

Graham Dumpleton grahamd at dscpl.com.au
Sun Feb 26 19:11:19 EST 2006


If you are going to rebuild Apache I would highly recommend you
move up to Apache 2.0 and use mod_python 3.2.8.

edgar mortiz wrote ..
> i don't have php installed just a the pre-built OpenBSD's version of apache
> and the mod_python that im trying to run it on ... I'll try to build my
> own
> apache and build mod_python against it and see what i could find.
> 
> it might be due to the major bump-changes that obsd did on apache that
> might
> be causing the issue.
> 
> someone on another list was telling me that i should move to lightTPD and
> FastCGI so that i could run python on it .. but i'll stick to mod_python
> and
> apache if other people can make it run ... i think i can too..
> 
> 
> thanks for the reply
> 
> ed
> 
> On 2/26/06, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
> >
> > Core dumps on startup which might be attributable to mod_python
> > generally occur either because of shared library version mismatches
> > between different Apache modules, or where there are multiple
> > versions of Python on a system and mod_python is finding the wrong
> > one when Apache is started.
> >
> > Unfortunately, the error logging output in the old version of mod_python
> > you are using, doesn't really help to sort out the latter, where as latest
> > version of mod_python might. Unless you move to Apache 2.0, the
> > newer version can't be used though.
> >
> > As to shared library mismatch, if you are also loading PHP module,
> > disable the PHP module and see if it makes a difference.
> >
> > Graham
> >
> > edgar mortiz wrote ..
> > > i've installed mod_python 2.7.11 on my openbsd machine running python
> > > 2.4.2(w/c i build from source)
> > >
> > > everything build just fine
> > >
> > >  ./configure --with-apxs=/usr/sbin/apxs
> > > loading cache ./config.cache
> > > checking for gcc... (cached) gcc
> > > checking whether the C compiler (gcc  ) works... yes
> > > checking whether the C compiler (gcc  ) is a cross-compiler... no
> > > checking whether we are using GNU C... (cached) yes
> > > checking whether gcc accepts -g... (cached) yes
> > > checking for ranlib... (cached) ranlib
> > > checking for ar... (cached) ar
> > > checking for a BSD compatible install... (cached) /usr/bin/install
> -c
> > > checking whether make sets ${MAKE}... (cached) yes
> > > checking for main in -lm... (cached) yes
> > > checking for working const... (cached) yes
> > > checking your blood pressure... a bit high, but we can proceed
> > > checking whether apxs is available
> > > checking for --with-apxs... /usr/sbin/apxs executable, good
> > > checking for Apache libexec directory... /usr/lib/apache/modules
> > > checking for Apache include directory... -I/usr/lib/apache/include
> > > checking for --with-apache... no
> > > configure: warning: **** No apache sources specified, static compilation
> > > will not be available.
> > > configure: warning: **** You can use --with-apache to specify where
> your
> > > Apache sources are.
> > > checking for --with-python... no
> > > checking for python... (cached) /usr/local/bin/python
> > > checking Python version... 2.4
> > > checking whether Python is compiled with thread support... no threads,
> > > good
> > > checking Python install prefix... /usr/local
> > > checking what libraries Python was linked with...
> > > /usr/local/lib/python2.4/config/libpython2.4.a   -lpthread  -lutil
> > > -lm
> > > checking linker flags used to link Python...
> > > checking where Python include files are...
> > -I/usr/local/include/python2.4
> > > checking for mkdep... (cached) /usr/bin/mkdep
> > > creating ./config.status
> > > creating Makefile
> > > creating src/Makefile
> > > creating src/libpython.module
> > > creating Doc/Makefile
> > > analyzing dependencies
> > >
> > > *** make dso
> > >
> > > make dso
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c mod_python.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c _apachemodule.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c requestobject.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c tableobject.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c util.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c serverobject.c
> > > gcc  -I/home/pfunix/mod_python-2.7.11/src/include
> > -I/usr/lib/apache/include
> > > -I/usr/local/include/python2.4  -c connobject.c
> > >
> > > Compiling for DSO. For static, do "make static"
> > >
> > > /usr/sbin/apxs -I/home/pfunix/mod_python-2.7.11/src/include
> > > -I/usr/lib/apache/include -I/usr/local/include/python2.4 -c mod_python.o
> > > _apachemodule.o  requestobject.o  tableobject.o  util.o  serverobject.o
> > > connobject.o -lm  /usr/local/lib/python2.4/config/libpython2.4.a
> > > -lpthread  -lutil   -lm
> > > gcc -shared -fPIC -DSHARED_MODULE -o mod_python.so mod_python.o
> > > _apachemodule.o requestobject.o tableobject.o util.o serverobject.o
> > > connobject.o -lm /usr/local/lib/python2.4/config/libpython2.4.a
> > -lpthread
> > > -lutil -lm
> > >
> > > Now su and make install
> > >   (or, if you only want to perform a partial install,
> > >    you can use make install_dso and make install_py_lib)
> > >
> > > ** make install
> > > # make install
> > >
> > > Performing DSO installation.
> > >
> > > /usr/bin/install -c src/mod_python.so /usr/lib/apache/modules
> > > /usr/bin/install -c -d /usr/local/lib/python2.4/site-packages/mod_python
> > > python /usr/local/lib/python2.4/compileall.py
> > > /usr/local/lib/python2.4/site-packages/mod_python
> > > Listing /usr/local/lib/python2.4/site-packages/mod_python ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/__init__.py
> > > ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/apache.py
> > ...
> > > Compiling
> > /usr/local/lib/python2.4/site-packages/mod_python/cgihandler.py
> > > ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/httpdapi.py
> > > ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/publisher.py
> > > ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/util.py
> ...
> > > Compiling /usr/local/lib/python2.4/site-packages/mod_python/zhandler.py
> > > ...
> > >
> > > Now don't forget to edit your main config and add
> > >     LoadModule python_module /usr/lib/apache/modules/mod_python.so
> > > and if your configuration uses ClearModuleList, then also
> > >     AddModule mod_python.c
> > >
> > >
> > >
> > > but when I put the
> > >
> > > LoadModule python_module /usr/lib/apache/modules/mod_python.so on
> > httpd.conf
> > >
> > > and restart apache i get a
> > >
> > > # apachectl restart
> > > /usr/sbin/apachectl restart: httpd not running, trying to start
> > > /usr/sbin/apachectl restart: httpd started
> > >
> > > but there's no httpd on process, nor can i view apache
> > >
> > > i did a
> > >
> > > # apachectl configtest
> > > Syntax OK
> > > Segmentation fault (core dumped)
> > >
> > > and this is where i ended up .. any help would be greatly appreciated.
> > >
> > > I'm running OpenBSD 3.9BETA
> > >
> > > Apache/1.3.29 (prebuild in obsd)
> > > mod_python 2.7.11 (source)
> > > Python 2.4.2 (source)
> > >
> > >
> > >
> > >
> > > thanks,
> > > ed
> >


More information about the Mod_python mailing list