[Python-modules-team] Bug#433038: libapache2-mod-python: mod_python collides with mod_php5, rendering psp ususuable without proper error messages

Gunter Ohrner G.Ohrner at post.rwth-aachen.de
Tue Aug 21 21:16:24 UTC 2007


Am Sonntag, 12. August 2007 schrieb Robert Edmonds:
>  - Any relevant apache configuration.  I assume you're using something
>    like,

>      AddHandler mod_python .psp
>      PythonHandler mod_python.psp

<Directory /serverdir/abc/xyz>
        Options Indexes SymLinksIfOwnerMatch IncludesNoExec

        AddCharset ISO-8859-15 .psp

        AddHandler mod_python .psp .psp_
        PythonHandler mod_python.psp

        PythonPath "sys.path + 
['/home/gunter/misc/prog/unidsl/udgate_scripte/wnet_cgi/frontendscripte']"
        PythonDebug On
</Directory>


>  - Does starting one worker in debug mode ("apache2 -X") still cause
> the failure?

Uh, not really - in debug mode it simply does not return anything, 
blocking the caller.

("RET" is "\n" typed by me.)

> telnet localhost 80 RET
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /unidsl/udgate_scripte/wnet_cgi/cgi/rueckmeld.psp HTTP/0.9 RET
RET
(Here it hangs.)

In contrast, if I run "a2dismod php5" and restart Apache:

> telnet localhost 80 RET
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /unidsl/udgate_scripte/wnet_cgi/cgi/rueckmeld.psp HTTP/0.9 RET
RET
HTTP/1.1 200 OK
Date: Tue, 21 Aug 2007 21:13:42 GMT
Server: Apache/2.2.4 (Debian) DAV/2 mod_python/3.3.1 Python/2.4.4
Content-Length: 6
Connection: close
Content-Type: text/html

False
> 

>    Configure apache with whatever combination of php5 and modpython it
>    is that makes apache crash.

In standard mode, Apache doesn't crash, it just returns empty documents. 
Only parsestring() causes a SIGSEGV, I'll write a tiny test script soon.

>    Start apache in the foreground with 
>    "apache2 -X" and send the output of "cat /proc/`pidof
> apache2`/maps". And the same for a good configuration.

Both logs are attached.

Greetings,

  Gunter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: failing_with_php5.log.bz2
Type: application/x-bzip2
Size: 3433 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20070821/7190a3ce/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: working_without_php5.log.bz2
Type: application/x-bzip2
Size: 1870 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20070821/7190a3ce/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20070821/7190a3ce/attachment.pgp 


More information about the Python-modules-team mailing list