ID: 23942
User updated by: alextxm at tin dot it
Reported By: alextxm at tin dot it
Status: Open
Bug Type: Apache2 related
Operating System: Linux
PHP Version: 4.3.2
New Comment:
finally, i've found the problem: compiling php 4.3.2 with
--with-mysql=/path-to-mysql staically linked is the culprit.
The problem can be avoided using --with-mysql and so using PHP's
built-in (but obsolete) mysql interface or using:
--with-mysql=shared,/path-to-mysql and then enabling php_mysql.so in
php.ini
Tests had been accomplished on three machines:
a) gentoo linux 1.2: glibc 2.2.5, php 4.3.2, apache 2.0.45/46, mysql
4.0.12, openssl 0.9.6j
b) gentoo linux 1.4rc4: glibc 2.3.1, php 4.3.2, apache 2.0.46, mysql
4.0.13, openssl 0.9.7b
c) redhat 9: php 4.2.2, apache 2.0.40, openssl 0.9.7a, mysql-4.0.10
alessandro
Previous Comments:
------------------------------------------------------------------------
[2003-06-14 08:02:41] alextxm at tin dot it
i'm doing some more tests... an interesting thing: on Redhat 9.0 it
works fine (openssl 0.9.7a, php 4.2.2, apache 2.0.40 - both stock
versions) . I'm trying to figure out where the problem is. I'll let you
know, probaly there is something in my setup which causes php or apache
to behave strangely.
alessandro
------------------------------------------------------------------------
[2003-06-11 11:28:03] [EMAIL PROTECTED]
Try reduce the configure options to the bare minimum
first. Then if you don't get any segfaults, try every
excluded option one by one to see which one is causing
this.
And for the backtrace you just need to keep pressing
'enter' until it gets there..the first couple of screens
gdb is loading the symbols from every linked library, you
can ignore it..
------------------------------------------------------------------------
[2003-06-02 13:21:38] [EMAIL PROTECTED]
No, don't change the MPM.
And yes, you will get a backtrace always, it's not really
PHP related thing.
# gdb httpd
(gdb) run -X -DSSL
..then access the page causing the crash..
(gdb) bt
------------------------------------------------------------------------
[2003-06-02 13:00:59] alextxm at tin dot it
I did some more tests:
- enabling your suggested configure cleanups didn't help (=the problem
is still there)...thanks anyway (i was using them since previous 4.2.x
release)
- tested the same setup with apache 1.3.27+mod_ssl : it works fine
with php both enabled and disabled... so it seems to be only confined
to apache2+ssl+php
- MPM used for apache2 is "prefork" ... should I change it?
- php 4.3.1 and 4.3.2 both show the issue
i'm going to try to obtain a backtrace using httpd -X with php in debug
mode. btw, will this work (=will it produce a backtrace) even if the
site is not using any php script at all ?
------------------------------------------------------------------------
[2003-06-02 05:51:35] [EMAIL PROTECTED]
Your configure line contains couple of options that are
really unnecessary, for example these:
-with-db (use --enable-dba)
--enable-versioning (Only needed if you have php3 installed too and
that doesn't support Apache2, so..)
--enable-track-vars (doesn't exist), --enable-inline-optimization
(might cause problems)
--without-readline (not enabled by default anyway)
--disable-posix-threads (why?)
--enable-force-cgi-redirect (Only used for CGI build)
--enable-discard-path (Only used for CGI builds)
And what MPM is used for Apache2?
Remove those options mentioned above + --enable-debug and try again.
("rm -f config.cache" first!)
If it still crashes, provide the backtrace.
------------------------------------------------------------------------
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/23942
--
Edit this bug report at http://bugs.php.net/?id=23942&edit=1