[mod_python] Segfault on Apache Startup

richard offer richard at whitequeen.com
Sun Jul 9 06:30:47 EST 2000


* $ from list-modpython at ccraig.org at "11-Jul:10:23pm" | sed "1,$s/^/* /" 
*
* #0  0x4021a047 in ?? () from /lib/libpthread.so.0
* (gdb) bt
* #0  0x4021a047 in ?? () from /lib/libpthread.so.0
* #1  0x401352eb in __getpwnam_r (name=0x80a9dc4 "nobody", resbuf=0x40196240, 
*     buffer=0x80a6f08 "nobody", buflen=1024, result=0xbfffd5fc)
*     at ../nss/getXXbyYY_r.c:182
* #2  0x40134ba0 in getpwnam () at ../nss/getXXbyYY.c:156
* #3  0x8064c26 in ap_uname2id ()
* #4  0x8057043 in ap_exists_config_define ()
* #5  0x8053e8c in ap_clear_module_list ()
* #6  0x80540cc in ap_handle_command ()
* #7  0x8054118 in ap_srm_command_loop ()
* #8  0x8054487 in ap_process_resource_config ()
* #9  0x8054b04 in ap_read_config ()
* #10 0x805bf97 in ap_child_terminate ()
* #11 0x805c65f in main ()
* #12 0x400bc9cb in __libc_start_main () at ../sysdeps/generic/libc-start.c:122
* (gdb) 
* --=-=-=
* 
* 
* I'm using mod_python version 2.4.1 on a RedHat 6.2 machine,
* kernel 2.2.16 and Apache 1.3.12
* 
* The module was compiled with the following command:
* 
* apxs -c -I/usr/include/python1.5 -L/usr/lib/python1.5/config \
* -lpython1.5 -lpthread -lieee -lm -ldl mod_python.c

You probably want to link python in statically, I did something like

apxs -c -I/usr/include/python1.5 mod_python.c
/usr/lib/python1.5/config/libpython1.5.a -lpthread

* 
* 
* I'm including a complete list of module loads and a backtrace of the
* core dump.  This segfault does not occur if the LoadModule for
* mod_python are commented out, but does if only the AddModule is.
* 
* I hope this was somewhat helpful,

I assume that you are consistant in the threading (both python and mod_python are threaded or neither).


However something that I found was that trying to use a threaded python
in a chroot'ed environment didn't work. Threaded python worked okay
outside the chroot and a non-threaded python worked okay in th chroot.

* Christopher A. Craig <ccraig at ccraig.org>


richard.


-- 
richard offer @ home 
          84 FE 48 E4 74 D0 26 D4  31 8E B6 86 98 74 E2 7C  8A FB BF A3
___________________________________http://216.185.15.144/users/richard/



More information about the Mod_python mailing list