Bug #75669 [NEW]: Segmentation Fault

From: Date: Tue, 12 Dec 2017 04:27:41 +0000
Subject: Bug #75669 [NEW]: Segmentation Fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213065@lists.php.net to get a copy of this message
From: humairm at gmail dot com Operating system: Linux PHP version: 7.1.12 Package: MySQLi related Bug Type: Bug Bug description:Segmentation Fault Description: ------------ running php 7 using php-fpm on lighttpd with mysqli on mariadb causes segmentation fault at mysqli_stmt_bind_result as reported in php-fpm.log: [pool www] child 24047 exited on signal 11 (SIGSEGV) after 6.518082 seconds from start lighttpd logs report the following error: mod_fastcgi.c.2424 unexpected end-of-file (perhaps the fastcgi process died) 2 key observations: 1. commenting out the bind_result line eliminates the error - so something triggers the segmentation fault when bind_result is called under php 7 (7.1.2) 2. running php 5 (5.5.9) instead of php 7 (7.1.2) does not have the same issue - so it seems there is something in php version 7.1.2 that is triggering the sigsegv Test script: --------------- $stmt = $db->prepare($sql); $stmt->execute(); $stmt->bind_result($id, $name); //This is where segmentation fault occurs - if this line is commented out then the error goes away but so does the logic! Same line does not cause any issue with php 5 and works as desired returning the result set successfully. -- Edit bug report at https://bugs.php.net/bug.php?id=75669&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75669&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75669&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75669&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75669&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75669&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75669&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75669&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75669&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75669&r=support Expected behavior: https://bugs.php.net/fix.php?id=75669&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75669&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75669&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75669&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75669&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75669&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75669&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75669&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75669&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75669&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75669&r=mysqlcfg

« previous php.bugs (#213065) next »