[Python-modules-team] Bug#411487: mod_python + php5-mhash + trac	give segmentation fault
    Fabien 
    fabien.ubuntu at gmail.com
       
    Wed Aug 15 08:53:38 UTC 2007
    
    
  
Hello,
After spending a couple of hours to understand why trac wasn't working 
on 2 similar configurations (debian etch amd64), I finally found that 
php5-mhash module was the problem.
So, I guess it's around the same issue that the 1st bug reported...
What I have : debian etch amd64 version fully up-to-date on AMD 64 bit 
processors
How to reproduce the problem :
1) Install libapache2-mod-python libapache2-mod-php5 php5-mhash and trac
2) Setup a minimal trac under www-data, eg :
$ trac-admin /var/trac/myproject initenv
(accept all defaults, just press enter)
3) Setup a minimal mod_python + trac configuration in apache2, edit 
httpd.conf and and the following :
<Location /projects/myproject>
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/trac/myproject
    PythonOption TracUriRoot /projects/myproject
</Location>
4) Restart apache and try to go to http://localhost/projects/myproject
You shoud get a apache2 segfault
Note: if you already have a running trac, you'd better to use telnet 
localhost 80 because a running browser session may prevent you from 
seeing the problem...
Removing php5-mhash solves the issue.
--
Fabien
    
    
More information about the Python-modules-team
mailing list