|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-07-26 15:09 UTC] webmaster at mailz dot de
Description: ------------ We are running php 5.5.0 from dotdeb with the newest xhprof 0.9.3 build from pecl. After activating the xhprof extension and calling xhprof_enable() we get a segfault right away. Expected result: ---------------- should not crash Actual result: -------------- hp_execute_internal (execute_data=0x7fff4786eda0, fci=0x7fff4786ef60, ret=1) at /tmp/pear/temp/xhprof/extension/xhprof.c:1708 1708 /tmp/pear/temp/xhprof/extension/xhprof.c: No such file or directory. (gdb) bt #0 hp_execute_internal (execute_data=0x7fff4786eda0, fci=0x7fff4786ef60, ret=1) at /tmp/pear/temp/xhprof/extension/xhprof.c:1708 #1 0x00000000006c05ce in zend_call_function () #2 0x00000000006c0ccb in zend_lookup_class_ex () #3 0x00000000006c1249 in zend_fetch_class () #4 0x0000000000716238 in ?? () #5 0x000000000073cbe8 in execute_ex () #6 0x00007f20e3e3750d in hp_execute_ex (execute_data=0x7f20ee0ef7a8) at /tmp/pear/temp/xhprof/extension/xhprof.c:1664 #7 0x000000000077d2d6 in ?? () #8 0x000000000073cbe8 in execute_ex () #9 0x00000000006cfa29 in zend_execute_scripts () #10 0x000000000066deac in php_execute_script () #11 0x00000000004324c0 in ?? () #12 0x00007f20eb65cead in __libc_start_main () from /lib/x86_64-linux- gnu/libc.so.6 #13 0x0000000000433c19 in _start () (gdb) quit A debugging session is active. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 17:00:02 2025 UTC |
Can confirm, here's my backtrace: hp_execute_internal (execute_data=0x7fffaf107340, fci=0x7fffaf1074d0, ret=1) at /home/berdir/tools/xhprof/extension/xhprof.c:1708 1708 temp_variable *retvar = &EX_T(opline->result.var); (gdb) backtrace #0 hp_execute_internal (execute_data=0x7fffaf107340, fci=0x7fffaf1074d0, ret=1) at /home/berdir/tools/xhprof/extension/xhprof.c:1708 #1 0x00007fadd698dcce in zend_call_function (fci=fci@entry=0x7fffaf1074d0, fci_cache=fci_cache@entry=0x7fffaf1074a0) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:959 #2 0x00007fadd698e3c3 in zend_lookup_class_ex (name=name@entry=0x7fadbc12d340 "Drupal\\Component\\Utility\\Timer", name_length=30, key=0x7fadbc563750, use_autoload=use_autoload@entry=1, ce=ce@entry=0x7fffaf107568) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:1107 #3 0x00007fadd698eb1d in zend_fetch_class_by_name (class_name=0x7fadbc12d340 "Drupal\\Component\\Utility\\Timer", class_name_len=<optimized out>, key= <optimized out>, fetch_type=0) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:1587 #4 0x00007fadd69e2bd4 in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER (execute_data=0x7faddad736f8) at /build/buildd/php5- 5.5.1+dfsg/Zend/zend_vm_execute.h:3540 #5 0x00007fadd6a0a448 in execute_ex (execute_data=0x7faddad736f8) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_vm_execute.h:356 #6 0x00007fadd699d0f9 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /build/buildd/php5- 5.5.1+dfsg/Zend/zend.c:1316 #7 0x00007fadd693be0c in php_execute_script (primary_file=primary_file@entry=0x7fffaf1099e0) at /build/buildd/php5- 5.5.1+dfsg/main/main.c:2484 #8 0x00007fadd6a4d8a2 in php_handler (r=0x7faddacf10a0) at /build/buildd/php5- 5.5.1+dfsg/sapi/apache2handler/sapi_apache2.c:667 #9 0x00007faddaee3b90 in ap_run_handler () #10 0x00007faddaee3feb in ap_invoke_handler () #11 0x00007faddaef9d7a in ap_process_async_request () #12 0x00007faddaefa04f in ap_process_request () #13 0x00007faddaef63f5 in ?? () #14 0x00007faddaeecef0 in ap_run_process_connection () #15 0x00007fadd7316738 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so #16 0x00007fadd731697c in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so #17 0x00007fadd73177be in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so #18 0x00007faddaec9e9e in ap_run_mpm () #19 0x00007faddaec329a in main () This is on Drupal 8, default installation with this in settings.php: include_once $path . '/xhprof_lib/utils/xhprof_lib.php'; include_once $path . '/xhprof_lib/utils/xhprof_runs.php'; xhprof_enable(XHPROF_FLAGS_MEMORY); Looks like it doesn't like the Timer class, you can see the source code at https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Ti mer.php/8 full backtrace of the last few calls: #0 hp_execute_internal (execute_data=0x7fffaf107340, fci=0x7fffaf1074d0, ret=1) at /home/berdir/tools/xhprof/extension/xhprof.c:1708 opline = 0x0 retvar = <optimized out> func = 0x7faddd1e3a38 "spl_autoload_call" hp_profile_flag = 1 #1 0x00007fadd698dcce in zend_call_function (fci=fci@entry=0x7fffaf1074d0, fci_cache=fci_cache@entry=0x7fffaf1074a0) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:959 call_via_handler = 0 i = <optimized out> original_return_value = <optimized out> calling_symbol_table = <optimized out> original_op_array = <optimized out> original_opline_ptr = <optimized out> current_scope = 0x0 current_called_scope = 0x0 calling_scope = 0x0 called_scope = 0x0 current_this = 0x0 execute_data = {opline = 0x0, function_state = {function = 0x7faddccb7900, arguments = 0x7faddad737a0}, op_array = 0x0, object = 0x0, symbol_table = 0x0, prev_execute_data = 0x7faddad736f8, old_error_reporting = 0x0, nested = 1 '\001', original_return_value = 0x0, current_scope = 0x0, current_called_scope = 0x0, current_this = 0x0, fast_ret = 0x0, call_slots = 0x7faddad73778, call = 0x7faddad73758} fci_cache_local = {initialized = 1 '\001', function_handler = 0x7faddad73928, calling_scope = 0x7fadd7108fe0 <executor_globals>, called_scope = 0x7faddd1ee700, object_ptr = 0x1} #2 0x00007fadd698e3c3 in zend_lookup_class_ex (name=name@entry=0x7fadbc12d340 "Drupal\\Component\\Utility\\Timer", name_length=30, key=0x7fadbc563750, use_autoload=use_autoload@entry=1, ce=ce@entry=0x7fffaf107568) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:1107 args = {0x7fffaf107470} autoload_function = {value = {lval = 140384610727696, dval = 6.9359213365351112e-310, str = {val = 0x7fadd6dab710 "__autoload", len = 10}, ht = 0x7fadd6dab710, obj = { handle = 3604657936, handlers = 0x7fad0000000a}}, refcount__gc = 3709789200, type = 6 '\006', is_ref__gc = 127 '\177'} class_name_ptr = 0x7faddd1ee678 retval_ptr = 0x7faddd1ee1d8 retval = <optimized out> lc_length = <optimized out> lc_name = 0x7fadbc12d3a8 "drupal\\component\\utility\\timer" lc_free = <optimized out> fcall_info = {size = 72, function_table = 0x7faddcc8eb60, function_name = 0x7fffaf107480, symbol_table = 0x0, retval_ptr_ptr = 0x7fffaf107478, param_count = 1, params = 0x7fffaf107460, object_ptr = 0x0, no_separation = 1 '\001'} fcall_cache = {initialized = 1 '\001', function_handler = 0x7faddccb7900, calling_scope = 0x0, called_scope = 0x0, object_ptr = 0x0} dummy = 1 '\001' hash = 7423250403100187561 use_heap = <optimized out> #3 0x00007fadd698eb1d in zend_fetch_class_by_name (class_name=0x7fadbc12d340 "Drupal\\Component\\Utility\\Timer", class_name_len=<optimized out>, key= <optimized out>, fetch_type=0) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_execute_API.c:1587 pce = <optimized out> use_autoload = 1 #4 0x00007fadd69e2bd4 in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER (execute_data=0x7faddad736f8) at /build/buildd/php5- 5.5.1+dfsg/Zend/zend_vm_execute.h:3540 opline = 0x7fadbc563c20 ce = <optimized out> call = 0x7faddad73778 #5 0x00007fadd6a0a448 in execute_ex (execute_data=0x7faddad736f8) at /build/buildd/php5-5.5.1+dfsg/Zend/zend_vm_execute.h:356 ret = <optimized out> original_in_execution = 0 '\000' #6 0x00007fadd699d0f9 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /build/buildd/php5- 5.5.1+dfsg/Zend/zend.c:1316 Anything else I can provide that would help?Same issue here. Description: ------------ We are running php5.5.6 and ran into this problem with xhprof-0.9.3 and xhprof-0.9.4 in pecl. Actual result: -------------- (gdb) bt #0 hp_execute_internal (execute_data=0x7fff0777dc40, fci=0x7fff0777dd80, ret=1) at /home/dennis/code/xhprof-0.9.4/extension/xhprof.c:1708 #1 0x00000000007bef19 in zend_call_function (fci=0x7fff0777dd80, fci_cache=0x7fff0777ddd0) at /home/dennis/software/php-5.5.6/Zend/zend_execute_API.c:959 #2 0x00000000006c6505 in zif_array_map (ht=<optimized out>, return_value=0x7fb0632bd8f0, return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>) at /home/dennis/software/php-5.5.6/ext/standard/array.c:4371 #3 0x00007fb06b57605f in hp_execute_internal (execute_data=0x7fb0734bfa78, fci=0x0, ret=1) at /home/dennis/code/xhprof-0.9.4/extension/xhprof.c:1709 #4 0x00000000008770ae in zend_do_fcall_common_helper_SPEC (execute_data=0x7fb0734bfa78) at /home/dennis/software/php-5.5.6/Zend/zend_vm_execute.h:552 #5 0x000000000083b778 in execute_ex (execute_data=0x7fb0734bfa78) at /home/dennis/software/php-5.5.6/Zend/zend_vm_execute.h:363 #6 0x00007fb06b5761b9 in hp_execute_ex (execute_data=0x7fb0734bfa78) at /home/dennis/code/xhprof-0.9.4/extension/xhprof.c:1664 #7 0x0000000000878a66 in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x7fb0734bf968) at /home/dennis/software/php-5.5.6/Zend/zend_vm_execute.h:8077 #8 0x000000000083b778 in execute_ex (execute_data=0x7fb0734bf968) at /home/dennis/software/php-5.5.6/Zend/zend_vm_execute.h:363 #9 0x00007fb06b5761b9 in hp_execute_ex (execute_data=0x7fb0734bf968) at /home/dennis/code/xhprof-0.9.4/extension/xhprof.c:1664 #10 0x00000000007ce5c3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/dennis/software/php-5.5.6/Zend/zend.c:1320 #11 0x000000000076c82c in php_execute_script (primary_file=0x7fff07780860) at /home/dennis/software/php-5.5.6/main/main.c:2489 #12 0x00000000004353bd in main (argc=<optimized out>, argv=<optimized out>) at /home/dennis/software/php-5.5.6/sapi/fpm/fpm/fpm_main.c:1933 (gdb)