Bug #80730 [Opn->Fbk]: Random segfault PDO fetch_value

From: Date: Wed, 10 Feb 2021 20:56:11 +0000
Subject: Bug #80730 [Opn->Fbk]: Random segfault PDO fetch_value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232044@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80730&edit=1 ID: 80730 Updated by: dharman@php.net Reported by: ricardo dot branco at covermg dot com Summary: Random segfault PDO fetch_value -Status: Open +Status: Feedback Type: Bug Package: PDO MySQL Operating System: Centos 7 PHP Version: 7.4.15 Block user comment: N Private report: N New Comment: There doesn't seem to be a lot of information in this bug report that could help us reproduce the issue. Could you provide any more information, please? Can you at least identify minimal reproducible code example? Which MySQL version are you running? The error comes from emalloc so can you let us know your memory limit settings in INI and your system memory (total/free). How large is the result that you are expecting? Previous Comments: ------------------------------------------------------------------------ [2021-02-10 18:23:06] ricardo dot branco at covermg dot com 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 this bug report at https://bugs.php.net/bug.php?id=80730&edit=1

« previous php.bugs (#232044) next »