#27734 [Opn->Fbk]: Segmentation fault (11)

From: Date: Sun, 28 Mar 2004 06:49:20 +0000
Subject: #27734 [Opn->Fbk]: Segmentation fault (11)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56968@lists.php.net to get a copy of this message
ID: 27734 Updated by: magnus@php.net Reported By: kevenden at peak dot org -Status: Open +Status: Feedback Bug Type: MySQL related -Operating System: Linux 2.6.4 +Operating System: Redhat 7.3 PHP Version: 5.0.0RC1 New Comment: Remove --with-regex=system and add --enable-debug and regenerate the backtrace. Previous Comments: ------------------------------------------------------------------------ [2004-03-27 13:11:48] kevenden at peak dot org Description: ------------ When runing the sample PHP/MySQL connection script from the documentation the error.log file displays : [Sat Mar 27 10:11:47 2004] [notice] child pid 17417 exit signal Segmentation fault (11) The same script run from the command line produces a simple: Segmentation fault I upgraded my MySQL database to 4.0.18 from a 3.0 release. My configure options for php: './configure' \ '--with-mysql=/usr/local/mysql/' \ '--with-apxs2=/var/lib/apache/sbin/apxs' \ '--disable-debug' \ '--enable-pic' \ '--enable-inline-optimization' \ '--with-zlib=shared' \ '--with-zlib-dir=/usr' \ '--enable-magic-quotes' \ '--enable-track-vars' \ '--with-regex=system' \ '--with-mod_charset' \ '--enable-force-cgi-redirect' \ '--with-openssl=/usr/local/ssl/' \ '--with-bz2=/usr' \ '--with-jpeg-dir=/usr' \ '--with-inifile' \ '--with-tidy' \ '--with-curl=/usr/local' \ '--with-flatfile' \ '--with-png-dir=/usr' \ '--with-gd' \ '--with-ttf' \ '--enable-gd-native-ttf' \ '--with-freetype-dir=/usr' \ '--with-gmp' \ '--with-mhash' \ '--enable-dba' \ '--with-db4=/usr/local/BerkeleyDB.4.2/' \ '--with-mcrypt' My MySQL configure options: CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \ -fno-exceptions -fno-rtti" ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static Reproduce code: --------------- <?php $link = mysql_connect("localhost", "kevenden", "some_password") or die("Could not connect: " . mysql_error()); echo "Connected successfully"; mysql_close($link); ?> Expected result: ---------------- Connected successfully Actual result: -------------- Segmentation fault (11) Core was generated by `php mysqltest.php'. Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0x40059dd8. #0 0x0 in ?? () (gdb) bt #0 0x0 in ?? () #1 0x4078e1fc in ?? () from /lib/libnss_db.so.2 #2 0x4078e2bc in ?? () from /lib/libnss_db.so.2 #3 0x4078d8fd in ?? () from /lib/libnss_db.so.2 #4 0x4078dc09 in ?? () from /lib/libnss_db.so.2 #5 0x406f4bb0 in ?? () from /lib/libc.so.6 #6 0x406f49f5 in ?? () from /lib/libc.so.6 #7 0x40061d40 in ?? () from /usr/local/mysql/lib/mysql/libmysqlclient.so.12 #8 0x40061be2 in ?? () from /usr/local/mysql/lib/mysql/libmysqlclient.so.12 #9 0x80d9421 in ?? () #10 0x80da5cc in ?? () #11 0x82129bb in ?? () #12 0x8212b4e in ?? () #13 0x820ede8 in ?? () #14 0x81f0b7f in ?? () #15 0x81b770f in ?? () #16 0x821a5ae in ?? () #17 0x406199b3 in ?? () from /lib/libc.so.6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27734&edit=1

« previous php.bugs (#56968) next »