#34012 [Opn]: PHP segfaults when connecting to MySQL

From: Date: Sat, 06 Aug 2005 18:51:03 +0000
Subject: #34012 [Opn]: PHP segfaults when connecting to MySQL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83102@lists.php.net to get a copy of this message
ID: 34012 User updated by: bjorn dot malmberg at gmail dot com Reported By: bjorn dot malmberg at gmail dot com Status: Open Bug Type: MySQL related Operating System: Debian Sarge 3.1 PHP Version: 4.4.0 New Comment: Wrong by me. Sorry about that, I forgot to do a make clean before recompiling, this time it worked! No segfault, seems like Debian should upgrade gcc when doing a dist-upgrade to a newer version with newer versions of gcc. Thanks a lot! It's now working and you can close this ticket! Previous Comments: ------------------------------------------------------------------------ [2005-08-06 20:41:25] bjorn dot malmberg at gmail dot com Upgraded to version 3.3.5 (seems to be the latest in apt), recompiled Apache and PHP and Apache still segfaults when I try to connect to MySQL... qnlidev01:/usr/src/php/php-4.4.0# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) ------------------------------------------------------------------------ [2005-08-06 20:10:34] sniper@php.net Try upgrading your GCC to something up-to-date.. ------------------------------------------------------------------------ [2005-08-06 14:45:43] bjorn dot malmberg at gmail dot com Compiler: qnlidev01:~# gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4 20011002 (Debian prerelease) I downloaded MySQL from the mysql.com site, it isn't from the Debian apt system. I have the MySQL header files in /usr/local/mysql/include as shown in the configline of PHP (--with-mysql=/usr/local/mysql) ------------------------------------------------------------------------ [2005-08-06 12:34:25] derick@php.net If you're using Debian's mysql package, try upgrading it. I had strange segfaults with some older versions that were solved by upgrading to the latest package. ------------------------------------------------------------------------ [2005-08-06 00:07:12] sniper@php.net 1) What compiler are you using? 2) Where did you get MySQL? ------------------------------------------------------------------------ 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/34012 -- Edit this bug report at http://bugs.php.net/?id=34012&edit=1

« previous php.bugs (#83102) next »