Maelvon HAWK
maelvon.hawk at laposte.net
Fri Dec 5 07:35:17 EST 2008
Graham Dumpleton a écrit : > 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 So I've done the test. With Python2.5 as default, php5-recode package a white blank page for the file "test.psp" like this : """ <html> <body> <h1><% req.write("Hello!") %></h1> </body> </html> """ With Python2.5 as default, without php5-recode package the PSP file return *Hello!* No traces in the log of Segmentation fault in the time I've made the tests. ### [Fri Dec 05 13:26:43 2008] [notice] Apache configured -- resuming normal operations [Fri Dec 05 13:27:10 2008] [notice] caught SIGTERM, shutting down [Fri Dec 05 13:27:13 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Fri Dec 05 13:27:13 2008] [notice] mod_python: using mutex_directory /tmp [Fri Dec 05 13:27:13 2008] [notice] Apache configured -- resuming normal operations [Fri Dec 05 13:27:54 2008] [notice] caught SIGTERM, shutting down [Fri Dec 05 13:27:57 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Fri Dec 05 13:27:57 2008] [notice] mod_python: using mutex_directory /tmp PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/recode.so' - /usr/lib/php5/20060613+lfs/recode.so: cannot open shared object file: No such file or directory in Unknown on line 0 [Fri Dec 05 13:27:57 2008] [notice] Apache configured -- resuming normal operations ### Don't know what to think. I'll try to update my kernel and the libc6 to see what happens. Maelvon
|