exit signal Segmentation fault (11)
"John Maurer, IV" <[email protected]> Wed, 26 Jan 2011 15:56:01 -1000
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============1571091901==
Content-type: multipart/alternative;
boundary="Boundary_(ID_K4xJYjYm6IpTJTIqmjSrUg)"
Content-language: en
This is a multi-part message in MIME format.
--Boundary_(ID_K4xJYjYm6IpTJTIqmjSrUg)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
Hi All,
I installed mod_python 3.3.1 today but cannot get the simple "Hello world!" test to work listed in the manual: http://www.modpython.org/live/mod_python-3.3.1/doc-html/inst-testing.html. When I restarted Apache after the installation, here is the line form Apache's error_log so you can see what version of things I am running:
[Wed Jan 26 15:32:24 2011] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b PHP/5.2.6 mod_python/3.3.1 Python/2.7 configured -- resuming normal operations
Each time I access the test url from my web server, I get a blank page and Apache's error_log gives another line like the following:
[Wed Jan 26 15:32:33 2011] [notice] child pid 30058 exit signal Segmentation fault (11)
Subsequent access to the test page will give a similar line but with a different pid; e.g.:
[Wed Jan 26 15:32:33 2011] [notice] child pid 30061 exit signal Segmentation fault (11)
As per the manual test case, I have the following in my httpd.conf:
LoadModule python_module /usr/local/apache/modules/mod_python.so
PythonOption mod_python.mutex_locks 32
<Directory /usr/local/apache/htdocs/test>
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
</Directory>
And /usr/local/apache/htdocs/test/mptest.py contains the following:
from mod_python import apache
def handler(req):
req.content_type = 'text/plain'
req.write("Hello World!")
return apache.OK
A simple text file in the same directory can be accessed just fine, so there are not permissions problems.
My Python 2.7 was not configured with any options. I can import mod_python successfully in an interactive session and run mod_python.version to get back '3.3.1'.
I also tried a few older mod_python versions to see if that would solve the problem, but all give the same error message in the Apache error_log when I access my test page: mod_python 3.3.0b, 3.2.10, and 3.2.8.
Any ideas what's causing this problem? Hoping to get mod_python up and running but this hang up has me baffled.
Thanks!,
John Maurer
P.S. My 64-bit OS info:
>> cat /proc/version
Linux version 2.6.18-92.1.22.el5 (mockbuild-t2f/[email protected]) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Dec 16 11:57:43 EST 2008
--Boundary_(ID_K4xJYjYm6IpTJTIqmjSrUg)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: quoted-printable
Content-disposition: inline
Hi All=2C=3Cbr=3EI installed mod=5Fpython 3=2E3=2E1 today but cannot get=
the simple =22Hello world!=22 test to work listed in the manual=3A =3Ca=
href=3D=22http=3A//www=2Emodpython=2Eorg/live/mod=5Fpython-3=2E3=2E1/do=
c-html/inst-testing=2Ehtml=22=3Ehttp=3A//www=2Emodpython=2Eorg/live/mod=5F=
python-3=2E3=2E1/doc-html/inst-testing=2Ehtml=3C/a=3E=2E When I restarte=
d Apache after the installation=2C here is the line form Apache=27s erro=
r=5Flog so you can see what version of things I am running=3A=3Cbr=3E=3C=
br=3E=5BWed Jan 26 15=3A32=3A24 2011=5D =5Bnotice=5D Apache/2=2E2=2E8 (U=
nix) mod=5Fssl/2=2E2=2E8 OpenSSL/0=2E9=2E8b PHP/5=2E2=2E6 mod=5Fpython/3=
=2E3=2E1 Python/2=2E7 configured -- resuming normal operations=3Cbr=3E=3C=
br=3EEach time I access the test url from my web server=2C I get a blank=
page and Apache=27s error=5Flog gives another line like the following=3A=
=3Cbr=3E=3Cbr=3E=5BWed Jan 26 15=3A32=3A33 2011=5D =5Bnotice=5D child pi=
d 30058 exit signal Segmentation fault (11)=3Cbr=3E=3Cbr=3ESubsequent ac=
cess to the test page will give a similar line but with a different pid=3B=
e=2Eg=2E=3A=3Cbr=3E=3Cbr=3E=5BWed Jan 26 15=3A32=3A33 2011=5D =5Bnotice=
=5D child pid 30061 exit signal Segmentation fault (11)=3Cbr=3E=3Cbr=3EA=
s per the manual test case=2C I have the following in my httpd=2Econf=3A=
=3Cbr=3E=3Cbr=3ELoadModule python=5Fmodule /usr/local/apache/modules/mod=
=5Fpython=2Eso=3Cbr=3EPythonOption mod=5Fpython=2Emutex=5Flocks 32=3Cbr=3E=
=3Cbr=3E=26lt=3BDirectory /usr/local/apache/htdocs/test=26gt=3B=3Cbr=3E=26=
nbsp=3B=26nbsp=3B=26nbsp=3B AddHandler mod=5Fpython =2Epy=3Cbr=3E=26nbsp=
=3B=26nbsp=3B=26nbsp=3B PythonHandler mptest=3Cbr=3E=26nbsp=3B=26nbsp=3B=
=26nbsp=3B PythonDebug On=3Cbr=3E=26lt=3B/Directory=26gt=3B=3Cbr=3E=3Cbr=
=3EAnd /usr/local/apache/htdocs/test/mptest=2Epy contains the following=3A=
=3Cbr=3E=3Cbr=3Efrom mod=5Fpython import apache=3Cbr=3E=3Cbr=3Edef handl=
er(req)=3A=3Cbr=3E=26nbsp=3B=26nbsp=3B=26nbsp=3B req=2Econtent=5Ftype =3D=
=27text/plain=27=3Cbr=3E=26nbsp=3B=26nbsp=3B=26nbsp=3B req=2Ewrite(=22H=
ello World!=22)=3Cbr=3E=26nbsp=3B=26nbsp=3B=26nbsp=3B return apache=2EOK=
=3Cbr=3E=3Cbr=3EA simple text file in the same directory can be accessed=
just fine=2C so there are not permissions problems=2E=3Cbr=3E=3Cbr=3EMy=
Python 2=2E7 was not configured with any options=2E I can import mod=5F=
python successfully in an interactive session and run mod=5Fpython=2Ever=
sion to get back =273=2E3=2E1=27=2E=3Cbr=3E=3Cbr=3EI also tried a few ol=
der mod=5Fpython versions to see if that would solve the problem=2C but =
all give the same error message in the Apache error=5Flog when I access =
my test page=3A mod=5Fpython 3=2E3=2E0b=2C 3=2E2=2E10=2C and 3=2E2=2E8=2E=
=3Cbr=3E=3Cbr=3EAny ideas what=27s causing this problem=3F Hoping to get=
mod=5Fpython up and running but this hang up has me baffled=2E=3Cbr=3ET=
hanks!=2C=3Cbr=3EJohn Maurer=3Cbr=3E=3Cbr=3EP=2ES=2E My 64-bit OS info=3A=
=3Cbr=3E=26gt=3B=26gt=3B cat /proc/version=3Cbr=3ELinux version 2=2E6=2E=
18-92=2E1=2E22=2Eel5 (mockbuild=40builder10=2Ecentos=2Eorg) (gcc version=
4=2E1=2E2 20071124 (Red Hat 4=2E1=2E2-42)) =231 SMP Tue Dec 16 11=3A57=3A=
43 EST 2008=3Cbr=3E
--Boundary_(ID_K4xJYjYm6IpTJTIqmjSrUg)--
--===============1571091901==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python
--===============1571091901==--