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

From: Date: Wed, 13 Mar 2019 09:27:27 +0000
Subject: Bug #77734 [NEW]: Seg Fault caused by php_mysqlnd_free_field_metadata
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219941@lists.php.net to get a copy of this message
From:             scott at exussum dot co dot uk
Operating system: Ubuntu 18.04
PHP version:      7.3.3
Package:          PDO MySQL
Bug Type:         Bug
Bug description:Seg Fault caused by php_mysqlnd_free_field_metadata

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 bug report at https://bugs.php.net/bug.php?id=77734&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=77734&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=77734&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=77734&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77734&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77734&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77734&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77734&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77734&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77734&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77734&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=77734&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=77734&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77734&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77734&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77734&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77734&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77734&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77734&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77734&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77734&r=mysqlcfg



Thread (8 messages)

« previous php.bugs (#219941) next »