Graham Dumpleton
grahamd at dscpl.com.au
Mon Mar 14 15:53:39 EST 2005
Segmentation faults generally result from different packages being used directly/indirectly within Apache and mod_python which have been compiled against different versions of some shared libraries. The two main libraries which seem to always trigger this are libexpat and the MySQL shared libraries. On Fedora, there was also a specific libexpat RPM version which would cause segmentation faults. First thing to try would be to disable PHP so that it isn't loaded at all by Apache and then try the mod_python code. This is because it is generally PHP which is the other package using these shared libraries which are in conflict with what mod_python is using. Also try reading over the following links: http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp http://www.modpython.org/pipermail/mod_python/2005-February/017305.html You can search for more from the search box on the mod_python site. You would then need to investigate as to what shared libraries PHP and various Python modules such as pyexpat may have been compiled against. One of the suggestions generally put up is to not trust the packaged versions and build everything from source code so you know which versions are used. Graham On Tuesday, March 15, 2005, at 12:06 AM, Toni Brkic wrote: > Hi, > > I've used trac with mod_python but after an security update it stopped > working so I assume the fault is in mod_python/apache2 and not in the > python scritpts. > > But I would appreciate if anybody could give any hints how to pinpoint > where the problem is a little bit better, because right now I have no > idea on how to go forward. > > My OS is Linux with SuSE9.1. The installed rpm:s i have are: > apache2-prefork-2.0.50-3.1 > apache2-2.0.50-3.1 > apache2-mod_python-3.1.3-37.6 > > My error log looks like below when I use mod_python now. My scripts > works fine with cgi. > > What I noticed is that before I got the message: > mod_python: (Re)importing module 'trac.ModPythonHandler' > But I dont get that anymore. > > [Mon Mar 14 11:00:46 2005] [notice] suEXEC mechanism enabled (wrapper: > /usr/sbin/suexec2) > [Mon Mar 14 11:00:46 2005] [notice] mod_python: Creating 32 session > mutexes based on 150 max processes and 0 max threads. > [Mon Mar 14 11:00:46 2005] [notice] Apache/2.0.50 (Linux/SUSE) > configured -- resuming normal operations > [Mon Mar 14 11:01:04 2005] [notice] child pid 7377 exit signal > Segmentation fault (11) > [Mon Mar 14 11:01:11 2005] [notice] child pid 7378 exit signal > Segmentation fault (11) > [Mon Mar 14 11:01:21 2005] [notice] child pid 7376 exit signal > Segmentation fault (11) > [Mon Mar 14 11:01:25 2005] [notice] child pid 7379 exit signal > Segmentation fault (11) > [Mon Mar 14 11:03:04 2005] [notice] child pid 7380 exit signal > Segmentation fault (11) > [Mon Mar 14 11:03:21 2005] [notice] child pid 7395 exit signal > Segmentation fault (11) > [Mon Mar 14 11:05:37 2005] [warn] child process 7398 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7396 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7397 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7426 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7438 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7398 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7396 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7397 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7426 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:37 2005] [warn] child process 7438 still did not > exit, sending a SIGTERM > [Mon Mar 14 11:05:38 2005] [notice] caught SIGTERM, shutting down > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python
|