Summary: | Segfaults when using mod_include and mod_php with Apache 2.0.55 and PHP 5.0.5-r3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tobias Klausmann (RETIRED) <klausman> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
gdb backtrace
GDB log with proper debugging strace log |
Description
Tobias Klausmann (RETIRED)
2005-11-04 01:49:21 UTC
Created attachment 72089 [details]
gdb backtrace
To clarify: with "Try to load the shtml file in your browser" I mean loading the first file you created (the one with the include directives). Hmm 5.0.5-r3 added a patch to prevent crashes with Apache2, but a part of that patch was faulty, so I fixed that and added 5.0.5-r4 to the tree, please test with that one and, if the problem persists, reopen the bug, thanks! Best regards, CHTEKK. And if you reopen or anyways in the future, please provide useful GDB backtraces: you must compile with the USE flag "debug" enabled and add "-g -ggdb3" to your C[XX]FLAGS, as well as "nostrip" to your FEATURES. Also, a strace of what happens is useful to complement the GDB backtrace, for more informations on this please take a look at [1], thanks. Best regards, CHTEKK. [1] http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap2 Emerging -r4 did not help. I'll recompile with the proper debugging flags and provide a backtrace and an strace, but it will be a while until then since the machine isn't all that fast. Another thing I noticed: it only happens if the included files are in a subdirectory. Sorry I forgot to mention that. Created attachment 72096 [details]
GDB log with proper debugging
Created attachment 72098 [details]
strace log
strace cmdline: strace -Ff -o strace.log /usr/sbin/apache2 -X -D PHP5 -D
USERDIR -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
The PHP Manual has a note that including PHP sourcefiles via SSI is not supported, and was never intended to work. So this means I've been using something that wasn't supposed to work for about three years? Strange. But well, that's how it is. Thanks and sorry for wasting your time. |