Edit report at https://bugs.php.net/bug.php?id=65628&edit=1
ID: 65628 Updated by: johan...@php.net Reported by: imprec at gmail dot com Summary: pcntl_signal may produce segfault -Status: Open +Status: Feedback Type: Bug Package: PCNTL related Operating System: OSX PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. It is really hard to figure out what is causing this. Please try to reduce the code as much as possible (throw out other tests, run test code manually outside the test framework etc) Previous Comments: ------------------------------------------------------------------------ [2013-09-06 11:34:06] imprec at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=65628&edit=1