Bug #80730 [NEW]: Random segfault PDO fetch_value
| From: | ricardo dot branco at covermg dot com | Date: | Wed, 10 Feb 2021 18:23:07 +0000 |
| Subject: | Bug #80730 [NEW]: Random segfault PDO fetch_value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-232042@lists.php.net to get a copy of this message | ||
From: ricardo dot branco at covermg dot com
Operating system: Centos 7
PHP version: 7.4.15
Package: PDO MySQL
Bug Type: Bug
Bug description:Random segfault PDO fetch_value
Description:
------------
We are seeing random segfaults in PDO module when running script and not
able to diagnose what the issue is. Looking at where the script crashes.
If we restart the script it goes does the same process again without
issue.
Could this be unhandled loss of DB connection in the PDO driver?
```
(gdb) bt
#0 0x0000563eb45950d1 in _emalloc ()
#1 0x00007fb0b0318c5e in fetch_value () from
/opt/remi/php74/root/usr/lib64/php/modules/pdo.so
#2 0x00007fb0b031b2df in do_fetch.constprop.9 () from
/opt/remi/php74/root/usr/lib64/php/modules/pdo.so
#3 0x00007fb0b031c673 in zim_PDOStatement_fetchAll () from
/opt/remi/php74/root/usr/lib64/php/modules/pdo.so
#4 0x0000563eb4640e5c in execute_ex ()
#5 0x0000563eb45ac016 in zend_call_function ()
#6 0x0000563eb45ac215 in _call_user_function_ex ()
#7 0x00007fb0acc32b52 in _php_worker_function_callback () from
/opt/remi/php74/root/usr/lib64/php/modules/gearman.so
#8 0x00007fb0aca09167 in FunctionV1::callback(gearman_job_st*, void*)
() from /lib64/libgearman.so.8
#9 0x00007fb0aca11ffc in gearman_worker_work () from
/lib64/libgearman.so.8
#10 0x00007fb0acc33e9d in zif_gearman_worker_work () from
/opt/remi/php74/root/usr/lib64/php/modules/gearman.so
#11 0x0000563eb4640e5c in execute_ex ()
#12 0x0000563eb4641961 in zend_execute ()
#13 0x0000563eb45ba9b3 in zend_execute_scripts ()
#14 0x0000563eb4559170 in php_execute_script ()
#15 0x0000563eb4643adc in do_cli ()
#16 0x0000563eb43bf7cb in main ()
```
--
Edit bug report at https://bugs.php.net/bug.php?id=80730&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80730&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80730&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80730&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80730&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80730&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80730&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80730&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80730&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80730&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80730&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80730&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80730&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80730&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80730&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80730&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80730&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80730&r=mysqlcfg