#27734 [NEW]: Segmentation fault (11)

From: Date: Sat, 27 Mar 2004 18:11:48 +0000
Subject: #27734 [NEW]: Segmentation fault (11)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56954@lists.php.net to get a copy of this message
From: kevenden at peak dot org Operating system: Linux 2.6.4 PHP version: 5.0.0RC1 PHP Bug Type: MySQL related Bug description: Segmentation fault (11) 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 bug report at http://bugs.php.net/?id=27734&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27734&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27734&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27734&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27734&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27734&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27734&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27734&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27734&r=support Expected behavior: http://bugs.php.net/fix.php?id=27734&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27734&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27734&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27734&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27734&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27734&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27734&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27734&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27734&r=float

« previous php.bugs (#56954) next »