[mod_python] PSP returning empty result

Graham Dumpleton graham.dumpleton at gmail.com
Thu Dec 4 18:51:26 EST 2008


2008/12/5 Maelvon HAWK <maelvon.hawk at laposte.net>:
> Graham Dumpleton a écrit :
>>
>> 2008/12/5 Maelvon HAWK <maelvon.hawk at laposte.net>:
>>>
>>> Thanks Nicholas
>>>
>>> I've found this thread, and it give me the answer to my actual bug.
>>>
>>> I'm on a Debian 4.0 ETCH, with a downgrade of the libc6 (Because of an
>>> VIA
>>> C7 CPU [1] on a Dedibox server).
>>>
>>> Trying and testing to install mod_python with Apache2 & python2.5, my PSP
>>> file returned a white blank empty page.
>>>
>>> And I've got the package "php5-recode" installed, once removed, I throw
>>> the
>>> test.psp file in my browser and the "Hello World!" appears!
>>>
>>> RECIPE :
>>> ========
>>> Install of "mod_python-3.3.1":
>>> # wget http://ftp.wayne.edu/apache/httpd/modpython/mod_python-3.3.1.tgz
>>> # tar -zxvf mod_python*3.1*
>>> # cd mod_python-3.3.1/
>>> # ./configure --with-apxs=/usr/bin/apxs2 --with-python=/usr/bin/python2.5
>>> Remove php5-recode:
>>> # apt-get remove php5-recode
>>> Put Python2.5 as default in :
>>> /usr/share/python/debian_defaults
>>> # ln -sf /usr/bin/python2.5 /usr/bin/python
>>> Add the psp Handler in apache2.conf
>>> # apache2ctl -t
>>> # apache2ctl -k graceful
>>>
>>> Kenavo,
>>>
>>> Maelvon
>>>
>>> [1] Similar to the Bug 228263 in gentoo :
>>>       http://bugs.gentoo.org/show_bug.cgi?id=228263
>>
>> Does the Apache error log indicate that the Apache child process
>> handling the request is crashing with a segmentation fault or similar?
>
> Graham,
>
> I've not focus myself on the /var/log/apache2/error.log files when testing
> to debug the mod_python, just the psp page log. But once (it seems) I've put
> my Debian with a python2.5 as default, I see a lot of :
> [notice] child pid 16944 exit signal Segmentation fault (11)
> [notice] child pid 16945 exit signal Segmentation fault (11)
> lines in the error.log file.
>
> I think thoses Segmentation fault appears in log when python2.5 were
> default, I've tested so many other solutions. I can rewind my system back in
> the last state to test that, watching the apache2 error log, if you want to
> be sure.
>
> But the remove of the php5-recode make the psp running. It's the only thing
> i've modify, except the apache2.conf, the python default and the mod_python
> package.
>
> What's the purpose of php5-recode in fact ?

That is what I was going to ask you? Please try and find out, as
likely what the problem is that that package is requiring a shared
library version/variant which conflicts with version/variant required
by Python. Alternatively it is using a generic name for symbol that
conflicts with something used by another library required by Python or
an extension module.

Please keep followups on the mod_python list by using reply-all.

Graham



More information about the Mod_python mailing list