Bug #79194 [NEW]: Segmentation fault

From: Date: Wed, 29 Jan 2020 22:54:05 +0000
Subject: Bug #79194 [NEW]: Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225232@lists.php.net to get a copy of this message
From: benjamin dot morel at gmail dot com Operating system: Fedora 31 PHP version: 7.4.2 Package: Reproducible crash Bug Type: Bug Bug description:Segmentation fault Description: ------------ I'm experiencing a segfault occurring during the rendering of a Twig template in a Symfony app. I pinpointed it to the blackfire extension: php-fpm[4131]: segfault at 7ffd4502efd8 ip 00007f7ea5fdc6d1 sp 00007ffd4502efe0 error 6 in blackfire-20190902.so[7f7ea5fc4000+5f000] I originally thought I'd report the bug with Blackfire, but I think there's more to it: when I disable the blackfire extension, I get no segfault anymore, but I receive a white page (Symfony in prod mode) or a partial HTML page (dev mode) after 10 seconds, without any error in the PHP-FPM logs. gdb output for the segfault: (only showing the first 10 entries, it goes on and on for more than 20000 entries—there may be many more, I gave up after that) Reading symbols from /usr/sbin/php-fpm... Reading symbols from /usr/lib/debug/usr/sbin/php-fpm-7.4.2-1.fc31.remi.x86_64.debug... [New LWP 4132] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `php-fpm: pool www '. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f7ea5fdc6d1 in bf_zend_execute () from /usr/lib64/php/modules/blackfire.so (gdb) bt #0 0x00007f7ea5fdc6d1 in bf_zend_execute () from /usr/lib64/php/modules/blackfire.so #1 0x0000560bec0b20c0 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:1714 #2 execute_ex (ex=0x7f7e99d6b2c0) at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:53821 #3 0x00007f7ea5fdc6f8 in bf_zend_execute () from /usr/lib64/php/modules/blackfire.so #4 0x0000560bec0b20c0 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:1714 #5 execute_ex (ex=0x7f7e99d6b2c0) at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:53821 #6 0x00007f7ea5fdc6f8 in bf_zend_execute () from /usr/lib64/php/modules/blackfire.so #7 0x0000560bec0b20c0 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:1714 #8 execute_ex (ex=0x7f7e99d6b2c0) at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:53821 #9 0x00007f7ea5fdc6f8 in bf_zend_execute () from /usr/lib64/php/modules/blackfire.so #10 0x0000560bec0b20c0 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.2-1.fc31.remi.x86_64/Zend/zend_vm_execute.h:1714 Not sure how I can further detail the bug, please let me know what you need! -- Edit bug report at https://bugs.php.net/bug.php?id=79194&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79194&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79194&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79194&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79194&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79194&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79194&r=support Expected behavior: https://bugs.php.net/fix.php?id=79194&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79194&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79194&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79194&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79194&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79194&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79194&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79194&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79194&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79194&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79194&r=mysqlcfg

« previous php.bugs (#225232) next »