Bug #77734 [Com]: Seg Fault caused by php_mysqlnd_free_field_metadata

From: Date: Mon, 15 Apr 2019 08:13:59 +0000
Subject: Bug #77734 [Com]: Seg Fault caused by php_mysqlnd_free_field_metadata
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220449@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77734&edit=1 ID: 77734 Comment by: panychek at gmail dot com Reported by: scott at exussum dot co dot uk Summary: Seg Fault caused by php_mysqlnd_free_field_metadata Status: Open Type: Bug Package: PDO MySQL Operating System: Ubuntu 18.04 PHP Version: 7.3.3 Block user comment: N Private report: N New Comment: We got the same thing. We have a long running CLI script too (Debian 9), and it works fine with PHP 7.2. The only difference is that we are using the MySQLi extension, not PDO. Our trace: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000055ae4184fd16 in php_mysqlnd_free_field_metadata (meta=0x7fd4ba201018) at /usr/src/php-src/ext/mysqlnd/mysqlnd_result_meta.c:36 #1 0x000055ae41850801 in mysqlnd_mysqlnd_res_meta_free_pub (meta=0x7fd4ba585e60) at /usr/src/php-src/ext/mysqlnd/mysqlnd_result_meta.c:106 #2 0x000055ae418458ce in mysqlnd_mysqlnd_res_free_result_contents_internal_pub (result=0x7fd4ba585048) at /usr/src/php-src/ext/mysqlnd/mysqlnd_result.c:300 #3 0x000055ae41845a6d in mysqlnd_mysqlnd_res_free_result_internal_pub (result=0x7fd4ba585048) at /usr/src/php-src/ext/mysqlnd/mysqlnd_result.c:316 #4 0x000055ae4184d136 in mysqlnd_mysqlnd_res_free_result_pub (result=0x7fd4ba585048, implicit=0 '\000') at /usr/src/php-src/ext/mysqlnd/mysqlnd_result.c:1507 #5 0x000055ae4164d122 in mysqli_result_free_storage (object=0x7fd4ba47e310) at /usr/src/php-src/ext/mysqli/mysqli.c:262 #6 0x000055ae41955f6e in zend_objects_store_del (object=0x7fd4ba47e310) at /usr/src/php-src/Zend/zend_objects_API.c:194 Previous Comments: ------------------------------------------------------------------------ [2019-03-13 09:27:27] scott at exussum dot co dot uk Description: ------------ Stack trace below. This appears to happen randomly. Its generated by a long running script running lots of SQL. happens at a differnt point each time so hard to debug the actual cause. Backtrace generated below. I can get more info from gdb if needed. The same script runs fine with php7.2 with no issues. Actual result: -------------- Program terminated with signal SIGSEGV, Segmentation fault. #0 php_mysqlnd_free_field_metadata (meta=0x7f9d7f401018) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/mysqlnd/mysqlnd_result_meta.c:38 #1 mysqlnd_mysqlnd_res_meta_free_pub (meta=0x7f9d7f7fb8e0) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/mysqlnd/mysqlnd_result_meta.c:106 #2 0x00007f9d8495b5ea in mysqlnd_mysqlnd_res_free_result_contents_internal_pub (result=0x7f9d7f7fb048) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/mysqlnd/mysqlnd_result.c:300 #3 0x00007f9d8495bfe0 in mysqlnd_mysqlnd_res_free_result_internal_pub (result=0x7f9d7f7fb048) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/mysqlnd/mysqlnd_result.c:316 #4 0x00007f9d8495bcf8 in mysqlnd_mysqlnd_res_free_result_pub (result=0x7f9d7f7fb048, implicit=<optimized out>) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/mysqlnd/mysqlnd_result.c:1498 #5 0x00007f9d82d86811 in pdo_mysql_stmt_dtor (stmt=0x7f9d7f6c7300) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/pdo_mysql/mysql_statement.c:53 #6 0x00007f9d84732f52 in php_pdo_free_statement (stmt=0x7f9d7f6c7300) at /build/php7.3-u8qUgX/php7.3-7.3.3/ext/pdo/pdo_stmt.c:2333 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77734&edit=1

« previous php.bugs (#220449) next »