View Issue Details

IDProjectCategoryView StatusLast Update
0001209XdebugUsage problems (Wrong Results)public2015-11-18 22:31
ReporterremiAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSFedoraOS Version21
Product Version2.4.0beta1 
Target Version2.4.0rc1Fixed in Version2.4.0rc1 
Summary0001209: Segfault with building a function name for create_function
DescriptionTested with git snapshot (34a1c70)

Steps To ReproduceWith Horde_Db test suite.

phpunit .
Additional Informationgdb backtrace attached
TagsNo tags attached.
Operating System
PHP Version7.0.0rc7

Activities

remi

2015-11-18 09:12

reporter  

bt.txt (11,737 bytes)
(gdb) bt
#0  0x00007f3ed7c3dcc8 in xdebug_add_stack_frame (edata=0x7f3ede61a1a0, tmp=0x55e91b20abc0)
    at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug_stack.c:1143
#1  0x00007f3ed7c3dcc8 in xdebug_add_stack_frame (zdata=0x7f3ede61a1a0,
    zdata@entry=0x7f3ede61a120, op_array=op_array@entry=0x7f3ead2df9a0, type=type@entry=2)
    at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug_stack.c:1359
#2  0x00007f3ed7c2a359 in xdebug_execute_ex (execute_data=0x7f3ede61a1a0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1788
#3  0x000055e9193a5047 in zend_execute (op_array=op_array@entry=0x7f3ead2df9a0, return_value=return_value@entry=0x7ffea7dc9710)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:458
#4  0x000055e919304ef7 in zend_eval_stringl (str=str@entry=0x7f3ead244b98 "function __lambda_func($c){return $c->getName();}", str_len=str_len@entry=49, retval_ptr=retval_ptr@entry=0x0, string_name=string_name@entry=0x7f3ead2dfa80 "/dev/shm/BUILD/php-horde-Horde-Db-2.3.0/Horde_Db-2.3.0/lib/Horde/Db/Adapter/Sqlite/Schema.php(650) : runtime-created function") at /usr/src/debug/php-7.0.0RC7/Zend/zend_execute_API.c:1125
#5  0x000055e919328dad in zif_create_function (execute_data=<optimized out>, return_value=0x7f3ede619c90)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_builtin_functions.c:1991
#6  0x000055e91930285a in dtrace_execute_internal (execute_data=<optimized out>, return_value=<optimized out>)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:107
#7  0x00007f3ed7c2aec1 in xdebug_execute_internal (current_execute_data=0x7f3ede61a120, return_value=0x7f3ede619c90)
    at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:2011
#8  0x000055e919395910 in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:844
#9  0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ead285ba0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#10 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ead285ba0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#11 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede619760) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#12 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#13 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ead69db80) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#14 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ead69db80) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#15 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede6196a0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#16 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#17 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ead239820) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#18 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ead239820) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#19 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede619590) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#20 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#21 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ead272200) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#22 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ead272200) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#23 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede619220) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#24 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#25 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ead8c3dc0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#26 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ead8c3dc0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#27 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede618ee0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#28 0x000055e91939e071 in ZEND_CALL_TRAMPOLINE_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:1771
#29 0x000055e9193515eb in execute_ex (ex=ex@entry=0x55e919704788 <executor_globals+1480>) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#30 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x55e919704788 <executor_globals+1480>)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#31 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede618ee0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#32 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#33 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3eadfee420) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#34 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3eadfee420) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#35 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede618ca0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#36 0x000055e919304353 in zend_call_function (fci=fci@entry=0x7ffea7dca370, fci_cache=fci_cache@entry=0x7ffea7dca340)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_execute_API.c:854
#37 0x000055e919205b41 in zim_reflection_method_invokeArgs (execute_data=<optimized out>, return_value=0x7f3ede6188f0)
    at /usr/src/debug/php-7.0.0RC7/ext/reflection/php_reflection.c:3370
#38 0x000055e91930285a in dtrace_execute_internal (execute_data=<optimized out>, return_value=<optimized out>)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:107
#39 0x00007f3ed7c2aec1 in xdebug_execute_internal (current_execute_data=0x7f3ede618c20, return_value=0x7f3ede6188f0)
    at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:2011
#40 0x000055e919395910 in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:844
#41 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede7c07c0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#42 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede7c07c0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#43 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede6186f0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#44 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#45 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede7c3aa0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#46 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede7c3aa0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#47 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede617f40) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#48 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#49 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3eadcac660) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#50 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3eadcac660) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#51 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede6173a0) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#52 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#53 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede7bf220) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#54 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede7bf220) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#55 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede616940) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#56 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#57 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede76a040) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#58 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede76a040) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#59 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede616360) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#60 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#61 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede76a040) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#62 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede76a040) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#63 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede615d80) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#64 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#65 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede733420) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#66 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede733420) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#67 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede614750) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#68 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#69 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede6e4c80) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#70 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede6e4c80) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#71 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede614330) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#72 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#73 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede693500) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#74 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede693500) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#75 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede614240) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#76 0x000055e919395a4d in ZEND_DO_FCALL_SPEC_HANDLER () at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:800
#77 0x000055e9193515eb in execute_ex (ex=ex@entry=0x7f3ede691fa0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:414
#78 0x000055e9193026e8 in dtrace_execute_ex (execute_data=0x7f3ede691fa0) at /usr/src/debug/php-7.0.0RC7/Zend/zend_dtrace.c:83
#79 0x00007f3ed7c2a53f in xdebug_execute_ex (execute_data=0x7f3ede614030) at /usr/src/debug/php70-php-pecl-xdebug-2.4.0/NTS/xdebug.c:1866
#80 0x000055e9193a5047 in zend_execute (op_array=op_array@entry=0x7f3ede68a000, return_value=return_value@entry=0x0)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend_vm_execute.h:458
#81 0x000055e919312b33 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3)
    at /usr/src/debug/php-7.0.0RC7/Zend/zend.c:1428
#82 0x000055e9192b3980 in php_execute_script (primary_file=0x7ffea7dcd6d0) at /usr/src/debug/php-7.0.0RC7/main/main.c:2471
#83 0x000055e9193a6d08 in do_cli (argc=3, argv=0x55e91ad17880) at /usr/src/debug/php-7.0.0RC7/sapi/cli/php_cli.c:974
#84 0x000055e919197892 in main (argc=3, argv=0x55e91ad17880) at /usr/src/debug/php-7.0.0RC7/sapi/cli/php_cli.c:1345
bt.txt (11,737 bytes)

derick

2015-11-18 10:07

administrator   ~0003230

Happy to have a look at this, but could you provide (exact) information as to how to obtain this "Horde_Db" package, and how to set it up if necessary?

remi

2015-11-18 10:14

reporter   ~0003231

Last edited: 2015-11-18 10:19

View 3 revisions

I think simple way is

pear channel-discover pear.horde.org
pear install horde/Horde_Db horde/Horde_Test horde/Horde_Cache horde/Horde_Autoloader
cd $(pear config-get test_dir)/Horde_Db/Horde/Db
phpunit .

derick

2015-11-18 22:31

administrator   ~0003232

I've committed a fix for this. Thanks for the report!

Issue History

Date Modified Username Field Change
2015-11-18 09:12 remi New Issue
2015-11-18 09:12 remi File Added: bt.txt
2015-11-18 10:07 derick Note Added: 0003230
2015-11-18 10:07 derick Assigned To => derick
2015-11-18 10:07 derick Status new => feedback
2015-11-18 10:14 remi Note Added: 0003231
2015-11-18 10:14 remi Status feedback => assigned
2015-11-18 10:18 remi Note Edited: 0003231 View Revisions
2015-11-18 10:19 remi Note Edited: 0003231 View Revisions
2015-11-18 22:24 derick Target Version => 2.4.0rc1
2015-11-18 22:24 derick Summary Segfault during PHPUnit => Segfault with building a function name for create_function
2015-11-18 22:31 derick Note Added: 0003232
2015-11-18 22:31 derick Status assigned => closed
2015-11-18 22:31 derick Resolution open => fixed
2015-11-18 22:31 derick Fixed in Version => 2.4.0rc1
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)