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
failing_with_php5.log.bz2
Description: BZip2 compressed data
working_without_php5.log.bz2
Description: BZip2 compressed data
signature.asc
Description: This is a digitally signed message part.

