From: arpad Operating system: Linux PHP version: 5.5.0alpha2 Package: Reproducible crash Bug Type: Bug Bug description:Generators segfault
Description: ------------ Can't provide a reproduce script yet I'm afraid, but I have a tree of objects, some of which are generators. I think this segfault is happening when destroying the tree. The generators are likely to not have finished iterating at this point. Program received signal SIGSEGV, Segmentation fault. _zval_ptr_dtor (zval_ptr=0x7ffff8e08f38) at /home/arpad/w/php/php-src/Zend/zend_execute_API.c:428 428 i_zval_ptr_dtor(*zval_ptr ZEND_FILE_LINE_RELAY_CC); (gdb) bt #0 _zval_ptr_dtor (zval_ptr=0x7ffff8e08f38) at /home/arpad/w/php/php-src/Zend/zend_execute_API.c:428 #1 0x00007ffff417f674 in zend_generator_close (generator=0x7ffff8e084c8, finished_execution=<value optimised out>) at /home/arpad/w/php/php-src/Zend/zend_generators.c:132 #2 0x00007ffff417f7cb in zend_generator_free_storage (generator=0x7ffff8e084c8) at /home/arpad/w/php/php-src/Zend/zend_generators.c:180 #3 0x00007ffff4185823 in zend_objects_store_free_object_storage (objects=0x7ffff485bf20) at /home/arpad/w/php/php-src/Zend/zend_objects_API.c:92 #4 0x00007ffff414e983 in shutdown_executor () at /home/arpad/w/php/php-src/Zend/zend_execute_API.c:295 #5 0x00007ffff415d8f5 in zend_deactivate () at /home/arpad/w/php/php-src/Zend/zend.c:938 #6 0x00007ffff40fe3ec in php_request_shutdown (dummy=<value optimised out>) at /home/arpad/w/php/php-src/main/main.c:1799 #7 0x00007ffff420c2f7 in php_apache_request_dtor (r=0x7ffff8a087f0) at /home/arpad/w/php/php-src/sapi/apache2handler/sapi_apache2.c:507 #8 php_handler (r=0x7ffff8a087f0) at /home/arpad/w/php/php-src/sapi/apache2handler/sapi_apache2.c:679 #9 0x00007ffff7fd5478 in ap_run_handler (r=0x7ffff8a087f0) at /build/buildd/apache2-2.2.17/server/config.c:159 #10 0x00007ffff7fd58dc in ap_invoke_handler (r=0x7ffff8a087f0) at /build/buildd/apache2-2.2.17/server/config.c:377 #11 0x00007ffff7fe4cfc in ap_internal_redirect (new_uri=<value optimised out>, r=<value optimised out>) at /build/buildd/apache2-2.2.17/modules/http/http_request.c:549 #12 0x00007fffefdc612d in ?? () from /usr/lib/apache2/modules/mod_rewrite.so #13 0x00007ffff7fd5478 in ap_run_handler (r=0x7ffff8830270) at /build/buildd/apache2-2.2.17/server/config.c:159 ---Type <return> to continue, or q <return> to quit--- #14 0x00007ffff7fd58dc in ap_invoke_handler (r=0x7ffff8830270) at /build/buildd/apache2-2.2.17/server/config.c:377 #15 0x00007ffff7fe56c0 in ap_process_request (r=0x7ffff8830270) at /build/buildd/apache2-2.2.17/modules/http/http_request.c:282 #16 0x00007ffff7fe2698 in ap_process_http_connection (c=0x7ffff865bab0) at /build/buildd/apache2-2.2.17/modules/http/http_core.c:190 #17 0x00007ffff7fdc058 in ap_run_process_connection (c=0x7ffff865bab0) at /build/buildd/apache2-2.2.17/server/connection.c:43 #18 0x00007ffff7fea6c0 in child_main (child_num_arg=<value optimised out>) at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:662 #19 0x00007ffff7fea986 in make_child (s=0x7ffff8214938, slot=0) at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:707 #20 0x00007ffff7feb163 in ap_mpm_run (_pconf=<value optimised out>, plog=<value optimised out>, s=<value optimised out>) at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:983 #21 0x00007ffff7fc03aa in main (argc=2, argv=0x7fffffffe5f8) at /build/buildd/apache2-2.2.17/server/main.c:741 -- Edit bug report at https://bugs.php.net/bug.php?id=63984&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63984&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63984&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63984&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63984&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63984&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63984&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63984&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63984&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63984&r=support Expected behavior: https://bugs.php.net/fix.php?id=63984&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63984&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63984&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63984&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63984&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63984&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63984&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63984&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63984&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63984&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63984&r=mysqlcfg