MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000173XdebugUsage problems (Wrong Results)public2006-04-14 06:252006-04-14 12:07
Reporterjudas_iscariote 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000173: xdebug segfaults using SPL
DescriptionXdebug segfaults using SPL ArrayIterator.

Unloading xdebug make things work as expected.

reproduce code :

After a while , I found the shortest way to reproduce it ;-)

php -d xdebug.auto_trace=1 -d xdebug.collect_return=1 -d xdebug.collect_params=1 -r 'new ArrayIterator(NULL);'

Im using loastest PHP 5.1 cvs and latest xdebug CVS.
                                                                                         
Additional Information(gdb) bt full
#0 0x00002aaaab838600 in strlen () from /lib64/tls/libc.so.6
No symbol table info available.
#1 0x00002aaaabb29bf4 in xdebug_str_add (xs=0x7fffffee26b0, str=0x0, f=1) at /home/cristian/xdebug/xdebug_str.c:32
        l = 0
0000002 0x00002aaaabb1798d in return_trace_stack_retval (i=0x973070, retval=0x0) at /home/cristian/xdebug/xdebug.c:1668
        j = 2
        str = {l = 31, a = 1044, d = 0x9743b0 ' ' <repeats 27 times>, ">=> "}
        tmp_value = 0x0
0000003 0x00002aaaabb16eef in xdebug_execute_internal (current_execute_data=0x7fffffee2890, return_value_used=0)
    at /home/cristian/xdebug/xdebug.c:1440
        ret = (zval *) 0x0
        t = 0x7a7160 "\030*�\177"
        edata = (zend_execute_data *) 0x7fffffee2890
        fse = (function_stack_entry *) 0x973070
        cur_opcode = (zend_op *) 0x971c50
        do_return = 1
        function_nr = 1
0000004 0x000000000055a067 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffee2890) at zend_vm_execute.h:202
        i = <value optimized out>
        p = <value optimized out>
        arg_count = 1
        return_reference = 0 '\0'
        opline = (zend_op *) 0x971b60
        original_return_value = <value optimized out>
        current_scope = (zend_class_entry *) 0x0
        current_this = (zval *) 0x0
        return_value_used = <value optimized out>
TagsNo tags attached.
Operating System64 bit Linux
PHP Version5.1-dev
Attached Files

- Relationships

-  Notes
(0000385)
derick (administrator)
2006-04-14 12:07

Fixed in CVS. Thanks for the report and backtrace.

- Issue History
Date Modified Username Field Change
2006-04-14 06:25 judas_iscariote New Issue
2006-04-14 12:07 derick Status new => closed
2006-04-14 12:07 derick Note Added: 0000385
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker