Bug #14569 Updated: Apache crashes with "Illegal instruction"

From: Date: Mon, 17 Dec 2001 23:57:08 +0000
Subject: Bug #14569 Updated: Apache crashes with "Illegal instruction"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74209@lists.php.net to get a copy of this message
ID: 14569
User updated by: xalkina@otenet.gr
Reported By: xalkina@otenet.gr
Status: Bogus
Bug Type: Apache related
Operating System: linux
PHP Version: 4.1.0
New Comment:

Mind you, but this has nothing to do with it!

First of all, the server crashes even when the only module using MySQL loaded is php4. mod_roaming
isn't using MySQL, mod_dav isn't using MySQL, and none of the default Apache modules is
using MySQL.

Second, it was never compiled with the bundled MySQL files, it was always, repeat: ALWAYS, compiled
--with-mysql=/usr.

Third, the notice does not suggest using the --enable-WHATEVER way :-)

BTW, the change I notice in the new module, is this: it does not link with libmysqlclient.so &
libpthread.so anymore. (Same thing happens with PHP/3 that worked correctly). I originally though it
had something to do with threads, that's why I added the --without-tsrm-whatever options to
configure.

Previous Comments:
------------------------------------------------------------------------

[2001-12-17 18:42:15] derick@php.net

After ./configure has finished it prints this:

+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server      |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
| instead build it with your local MySQL support files, by adding    |
| --with-mysql=/path/to/mysql to your configure line.                |
+--------------------------------------------------------------------+

I think that's clear enough :)

Derick

------------------------------------------------------------------------

[2001-12-17 18:34:41] xalkina@otenet.gr

Solves the problem, but should I notice that it happened even without php3...

Is there any documentation on this kind of problems? Even now that I know the solution, I cannot
find anything in the search.

------------------------------------------------------------------------

[2001-12-17 17:56:09] derick@php.net

You need to compile MySQL support in with this switch:
--enable-mysql=/path/to/mysql

The bundled libraries conflict with the libraries mod_php3 uses.

Not a bug > bogus

------------------------------------------------------------------------

[2001-12-17 17:52:03] xalkina@otenet.gr

These are all the options used to configure PHP/4.1.0. It's an excerpt from a script used in an
RPM build.

./configure \
	--prefix=/usr \
\
	--with-apxs="rpm -ql xalkina-apache | grep bin/apxs" \
\
	--with-exec-dir=/usr/local/lib/php \
	--with-config-file-path=/etc/httpd \
\
	--with-system-regex \
	--enable-versioning \
	--enable-sysvsem \
	--enable-sysvshm \
	--disable-maintainer-mode \
	--disable-dmalloc \
\
	--without-tsrm-pthreads \
	--without-gd \
	--without-gettext \
	--with-ldap=/usr \
	--without-recode \
	--without-ttf \
	--without-xml \
	--without-gdbm \
	--without-ndbm \
	--without-db2 \
	--without-dbm \
	--without-cdb \
	--without-mcrypt \
	--without-mhash \
	--without-yp \
	--without-imap \
	--without-imsp \
	--without-imagick \
	--without-mck \
	--without-openssl \
	--without-snmp \
	--without-hyperwave \
	--without-zlib \
	--without-pdflib \
	--without-cpdflib \
	--without-fdftk \
\
	--without-adabas \
	--without-msql \
	--without-mysql \
	--without-oracle \
	--without-oci8 \
	--without-iodbc \
	--without-openlink \
	--without-sybase \
	--without-sybase-ct \
	--without-pgsql \
	--without-ibm-db2 \
	--without-solid \
	--without-empress \
	--without-velocis \
	--without-informix \
	--without-interbase \
	--without-custom-odbc \
	--without-dbase \
	--without-filepro \
	--without-ovrimos \
\
	--enable-safe-mode \
	--enable-track-vars \
	--enable-memory-limit \
	--disable-display-source \
	--disable-url-fopen-wrapper


------------------------------------------------------------------------

[2001-12-17 17:42:38] derick@php.net

What is your full configur eline fro PHP 4 ?

------------------------------------------------------------------------

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/?id=14569


Edit this bug report at http://bugs.php.net/?id=14569&edit=1



Thread (8 messages)

« previous php.dev (#74209) next »