quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Pye <...@rhid.com>
Subject segfault caused by for in
Date Mon, 14 Jul 2003 19:28:43 GMT

	I am getting a segfault when I try to "for h in request.headers_in:". With PythonDebug On,
I get an erroneous error written to the browser(noramally about the preceding line). This
is always reproducable:

	for h in request.headers_in:
		pass

	or

	for h,c in request.headers_in:
		pass

Remove that and it works fine.

	Although, I can load the eval'd headers_in into a dictionary without trouble..


The log entries:
[Mon Jul 14 12:08:55 2003] [notice] mod_python: (Re)importing module 'mputils'
[Mon Jul 14 12:08:55 2003] [notice] child pid 45512 exit signal Segmentation fault (11)


Running version 3.0.3 of mod_python and apachectl -V:

Server version: Apache/2.0.47
Server built:   Jul 10 2003 10:20:38
Server's Module Magic Number: 20020903:4
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="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="etc/apache2/httpd.conf"


uname -a:
FreeBSD void 4.8-STABLE FreeBSD 4.8-STABLE #1: Sun Jun 29 16:27:43 MST 2003     root@void:/usr/src/sys/compile/void
 i386


And of course more information is available on request if this isn't enough or no one else
can reproduce..

	Sorry if this has already been reported, but I couldn't find anything about searching the
mailing list or searching for bug reports on modpython.org.. Is there something on the apache
site?


-james


Mime
View raw message