ID: 16475 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Apache2 related Operating System: Linux 2.4.x PHP Version: 4.2.0RC2-4 New Comment:
The version 1.74 enables the Apache 2.0.35 server to start with PHP 4.2.0 However after a "bin/apachectl restart" all http calls will fail: child pid 31308 exit signal Segmentation fault (11) A full stop and startssl of Apache is needed. Jan P. Sorensen Previous Comments: ------------------------------------------------------------------------ [2002-04-24 16:00:38] [EMAIL PROTECTED] Hi folks, great work :-) Apache 2.0.35 works now fine for me even with php4.3-dev (I took it from snaps.php.net). Again let me know when I should retry any other version of php... Thanks + bye, Sebastian ------------------------------------------------------------------------ [2002-04-23 20:59:35] [EMAIL PROTECTED] This bug has been fixed in CVS. I just committed a fix for this in sapi/apache2filter/sapi_apache2.c version 1.74 (from CVS HEAD). If you are still seeing the problem after trying this version please reopen this bug. Thank you for using Apache/PHP! ------------------------------------------------------------------------ [2002-04-23 16:12:24] [EMAIL PROTECTED] Hi, try submitting a backtrace. See http://bugs.php.net/bugs-generating-backtrace.php to create it - it's quite simple but helps the developers a lot. Did you compile apache with the option "--with-apxs2"? Just gimme a hint when I should try to compile apache with php on my system again... Bye, Sebastian ------------------------------------------------------------------------ [2002-04-23 14:55:29] [EMAIL PROTECTED] Well, this is probably not much help, but with gcc-2.95.3, linux-2.4.18, apache 2.0.35 and PHP 4.2.0 I see the same behavior, namely, httpd -X crashes with a segmentation fault whenever I access ANY page on the server, PHP or not. This only happens AFTER the PHP module is loaded. With the vanilla apache (no php) I have no problems, whatsoever. Also, configuration of both apache and php is minimal. ------------------------------------------------------------------------ [2002-04-22 00:04:43] [EMAIL PROTECTED] AHA! I think I'm onto something. The DSO is segfaulting in the second initialization round when php_apache_server_startup(). That function calls php_apache_startup() which uses pthread_getspecific. It ends up looking up a structure which contains pointers that point to from the FIRST round, dereferences them, and poof, it dies. I'm working on a patch. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16475 -- Edit this bug report at http://bugs.php.net/?id=16475&edit=1