From: imprec at gmail dot com Operating system: OSX PHP version: 5.5.3 Package: PCNTL related Bug Type: Bug Bug description:pcntl_signal may produce segfault
Description: ------------ Hello, In a unit test suite, when I call pcntl_signal, I got a segfault : Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x000000179788b729 0x00000001003ec3b2 in zend_objects_store_del_ref () (gdb) #0 0x00000001003ec3b2 in zend_objects_store_del_ref () No symbol table info available. #1 0x00000001003b9c7e in _zval_ptr_dtor () No symbol table info available. #2 0x00000001003e5cae in zend_closure_free_storage () No symbol table info available. #3 0x00000001003ec554 in zend_objects_store_del_ref_by_handle_ex () No symbol table info available. #4 0x00000001003ec396 in zend_objects_store_del_ref () No symbol table info available. #5 0x00000001003b9c7e in _zval_ptr_dtor () No symbol table info available. #6 0x00000001003d40b0 in _zend_hash_index_update_or_next_insert () No symbol table info available. #7 0x00000001001c8bfe in zif_pcntl_signal () No symbol table info available. #8 0x00000001003b9524 in dtrace_execute_internal () No symbol table info available. #9 0x000000010043d0c2 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #10 0x00000001003ed10a in execute_ex () No symbol table info available. #11 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #12 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #13 0x00000001003ed10a in execute_ex () No symbol table info available. #14 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #15 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #16 0x00000001003ed10a in execute_ex () No symbol table info available. #17 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #18 0x00000001003bb57a in zend_call_function () No symbol table info available. #19 0x0000000100212268 in zim_reflection_method_invokeArgs () No symbol table info available. #20 0x00000001003b9524 in dtrace_execute_internal () No symbol table info available. #21 0x000000010043d0c2 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #22 0x00000001003ed10a in execute_ex () No symbol table info available. #23 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #24 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #25 0x00000001003ed10a in execute_ex () No symbol table info available. #26 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #27 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #28 0x00000001003ed10a in execute_ex () No symbol table info available. #29 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #30 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #31 0x00000001003ed10a in execute_ex () No symbol table info available. #32 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #33 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #34 0x00000001003ed10a in execute_ex () No symbol table info available. #35 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #36 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #37 0x00000001003ed10a in execute_ex () No symbol table info available. #38 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #39 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #40 0x00000001003ed10a in execute_ex () No symbol table info available. #41 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #42 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #43 0x00000001003ed10a in execute_ex () No symbol table info available. #44 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #45 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #46 0x00000001003ed10a in execute_ex () No symbol table info available. #47 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #48 0x000000010043d036 in zend_do_fcall_common_helper_SPEC () No symbol table info available. #49 0x00000001003ed10a in execute_ex () No symbol table info available. #50 0x00000001003b9458 in dtrace_execute_ex () No symbol table info available. #51 0x00000001003c87ac in zend_execute_scripts () No symbol table info available. #52 0x000000010036e602 in php_execute_script () No symbol table info available. #53 0x0000000100461075 in do_cli () No symbol table info available. #54 0x000000010045fe3d in main () No symbol table info available. (gdb) % The symbol seems not available whereas I compiled my PHP with the enable-debug option : php --version PHP 5.5.3 (cli) (built: Aug 26 2013 15:34:46) (DEBUG) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies Expected result: ---------------- No seg fault -- Edit bug report at https://bugs.php.net/bug.php?id=65628&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65628&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65628&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65628&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65628&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65628&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65628&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65628&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65628&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65628&r=support Expected behavior: https://bugs.php.net/fix.php?id=65628&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65628&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65628&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65628&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65628&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65628&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65628&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65628&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65628&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65628&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65628&r=mysqlcfg