#23126 [Opn]: MySQL v4.x crashes PHP in CGI/Apache mode

From: Date: Thu, 10 Apr 2003 03:35:13 +0000
Subject: #23126 [Opn]: MySQL v4.x crashes PHP in CGI/Apache mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37511@lists.php.net to get a copy of this message
ID: 23126 User updated by: cmouse at quakenet dot org Reported By: cmouse at quakenet dot org Status: Open Bug Type: MySQL related Operating System: linux-2.4.19-grsec PHP Version: 4.3.2RC1 New Comment: Forgot. I used gcc-3.2.2 to compile both of them. Previous Comments: ------------------------------------------------------------------------ [2003-04-09 22:34:13] cmouse at quakenet dot org PHP: ./configure --prefix=/usr --with-apxs=/usr/bin/apxs --enable-inline-optimization --with-mysql=/usr --enable-bcmath --enable-calendar --enable-dba --enable-dbase --enable-dbx --enable-dio --enable-exif --enable-ftp --enable-gd-native-ttf --enable-mime-magic --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-config-file-path=/etc/php4/apache --with-zlib --with-bz2 --with-dom --with-gd=/usr --with-jpeg --with-png-dir=/usr --with-zlib-dir=/usr --with-t1lib=/usr --with-iconv=/usr --with-java=/opt/j2sdk1.4.1_01 --with-ldap=/usr --with-mcal=/usr --with-mcrypt=/usr --with-mhash=/usr --with-recode=/usr --with-mm=/usr --with-gdbm=/usr --with-imap=/usr/src/pine4.53/c-client -with-imap-ssl=/usr/ssl MySQL: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --enable-thread-safe-client --enable-assembler --with-pthread --with-libwrap=/usr --with-openssl ------------------------------------------------------------------------ [2003-04-09 05:43:04] sniper@php.net What was the used configure lines for both mysql and php ? ------------------------------------------------------------------------ [2003-04-09 04:23:12] cmouse at quakenet dot org Apparently for some reason, using the new MySQL v4.x libmysqlclient crashes PHP in both CGI and Apache mode. The problem is fixed by using the bundled library that comes with PHP or using a libmysqlclient prior v4. I haven't been able to establish what exactly causes the crash, since it only happens in phpMyAdmin in sql.php and only when doing 'SELECT' queries. Anything else succeeds. I am unable to provide any gdb backtraces or such since I haven't been able to get a usable backtrace, despite my best efforts, but my best guess is that it fails on dlopen() on the mysql library. For some odd reason. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23126&edit=1

« previous php.bugs (#37511) next »