Bug #75669 [Opn->Fbk]: mysqli_stmt_bind_result causes Segmentation Fault with lighttpd

From: Date: Thu, 30 Sep 2021 13:03:02 +0000
Subject: Bug #75669 [Opn->Fbk]: mysqli_stmt_bind_result causes Segmentation Fault with lighttpd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236937@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75669&edit=1 ID: 75669 Updated by: cmb@php.net Reported by: humairm at gmail dot com Summary: mysqli_stmt_bind_result causes Segmentation Fault with lighttpd -Status: Open +Status: Feedback Type: Bug Package: MySQLi related Operating System: Linux PHP Version: 7.1.12 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: That doesn't look particularly related to lighttpd. But regardless, we need a stack backtrace[1] to proceed on this issue. [1] <https://bugs.php.net/bugs-generating-backtrace.php> Previous Comments: ------------------------------------------------------------------------ [2020-10-08 15:55:10] josh at servebyte dot com I'm seeing the same issue with PHP 7.4.11, except no SIGSEGV with 7.3.23 ------------------------------------------------------------------------ [2017-12-12 04:27:38] humairm at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=75669&edit=1

« previous php.bugs (#236937) next »