[mod_python] Apache 2.0.52, Python 2.4 and mod_python 3.1.3, core dump while starting under FreeBSD

Russell Hay rhay at real.com
Fri Jan 7 18:44:07 EST 2005


mod_python-3.1.3 on FreeBSD with Apache 2.0.52

OS Information:

FreeBSD shell.b0b.net 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #0: Wed 
May 26 11:03:54 PDT 2004     
root at shell.b0b.net:/usr/obj/usr/src/sys/GENERIC  i386

Apache Information:

Server version: Apache/2.0.52
Server built:   Jan  7 2005 15:05:19
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache2/httpd.conf"

Python version 2.4, I've tried having it compiled with and without 
thread support.

When I try to start apache with mod_python loading as a .so, I get the 
following:

[Fri Jan 07 15:38:48 2005] [notice] child pid 87015 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87014 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87013 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87012 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87011 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87010 exit signal 
Segmentation fault (11)
[Fri Jan 07 15:38:48 2005] [notice] child pid 87009 exit signal 
Segmentation fault (11)

And this is repeated over and over until the server "gives up"

if I run httpd with -X, it doesn't segfault, so I'm thinking it probably 
has something to do with the mpm, but as you see, I'm using a Prefork 
version of apache, so it should be fine.  Has anyone else had this 
happen?  Has anyone found a work around?


More information about the Mod_python mailing list