View Issue Details

IDProjectCategoryView StatusLast Update
0000853XdebugUncategorizedpublic2012-06-25 18:00
Reporterfidian Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformLinuxOSUbuntuOS VersionVarious
Product Version2.2.0 
Summary0000853: Segmentation fault when running phpunit
Description

I have tried versions 2.1.0 and 2.2.0. The newer version gives either a "Segmentation fault" or "Illegal instruction" when running a set of tests for my software, which is closed source. Running just that test or the suite of tests doesn't create the problem; only when I run all of the tests in the directory at once, so I know that there's something more complex going on here.

Currently I am seeing the problems in our Amazon instances - c1.medium amd64 Ubuntu natty. They use PHP 5.3.6 (Ubuntu's package) as well as 5.3.13 (team-mayhem/ppa - my updated version). The xdebug from Ubuntu (2.1.0) works and team-mayhem/ppa's (2.2.0) fails. Without changing anything else on the system, just switching xdebug packages caused the problem to happen or to go away.

I've bisected your git repository and narrowed this down to commit 72e60fdc5960cf89e2e4fd5c6477b83600d5b8b2 (SVN Rev: 3391) where you fix bug 0000654 by bringing back three lines of code.

I can't really give you our codebase for you to diagnose the problem. I also don't have the problem narrowed down to a simple, repeatable test script that I could hand over. The ickiest solution for me would be to replicate everything we do, chopping out parts, and then hopefully whittling down the code to whatever combination triggers the problem. A far better solution would be to seek your assistance and add debugging information in the right spots so you can find out why things are breaking.

Would you have any idea why those three lines of code would force segmentation faults?

TagsNo tags attached.
Attached Files
gdb.txt (15,315 bytes)   
Program received signal SIGSEGV, Segmentation fault.
0x00000000006b54da in ?? ()
(gdb) bt full
#0  0x00000000006b54da in ?? ()
No symbol table info available.
#1  0x00000000006b54cd in ?? ()
No symbol table info available.
#2  0x00000000006b54cd in ?? ()
No symbol table info available.
#3  0x00000000006b54cd in ?? ()
No symbol table info available.
#4  0x00000000006b54cd in ?? ()
No symbol table info available.
#5  0x00000000006b54cd in ?? ()
No symbol table info available.
#6  0x00000000006b54cd in ?? ()
No symbol table info available.
#7  0x00000000006b54cd in ?? ()
No symbol table info available.
#8  0x00000000006b54cd in ?? ()
No symbol table info available.
#9  0x00000000006b54cd in ?? ()
No symbol table info available.
#10 0x00000000006b5c29 in gc_collect_cycles ()
No symbol table info available.
#11 0x00000000006b62a4 in gc_zval_possible_root ()
No symbol table info available.
#12 0x000000000071c7cf in ?? ()
No symbol table info available.
#13 0x00000000006bee14 in execute ()
No symbol table info available.
#14 0x00007ffff420034d in xdebug_execute (op_array=0x1e38ae0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffffff8488
        edata = 0x7fffeef57510
        fse = 0xb5e31e0
        xfse = 0x0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26098188

        le = 0x5c96f00
        eval_id = 0
        clear = 1
        return_val = 0x0
#15 0x00000000006e5214 in ?? ()
No symbol table info available.
#16 0x00000000006bee14 in execute ()
No symbol table info available.
#17 0x00007ffff420034d in xdebug_execute (op_array=0x739da10)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xaaf65b0
        edata = 0x7fffeef572b8
        fse = 0xbff4880
        xfse = 0xaaf65b0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26098187
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#18 0x00000000006e5214 in ?? ()
No symbol table info available.
#19 0x00000000006bee14 in execute ()
No symbol table info available.
#20 0x00007ffff420034d in xdebug_execute (op_array=0x5b374a0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xae9e040
        edata = 0x7fffeef57018
        fse = 0xb72e580
        xfse = 0xae9e040
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26092738
        le = 0x1
        eval_id = 0
        clear = 1

        return_val = 0x0
#21 0x00000000006e5214 in ?? ()
No symbol table info available.
#22 0x00000000006bee14 in execute ()
No symbol table info available.
#23 0x00007ffff420034d in xdebug_execute (op_array=0x5cdced0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef56bf0
        fse = 0xa99fe30
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26092735
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#24 0x00000000006e5214 in ?? ()
No symbol table info available.
#25 0x00000000006bee14 in execute ()
No symbol table info available.
#26 0x00007ffff420034d in xdebug_execute (op_array=0x5d92a90)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef56940
        fse = 0xb72ed20
        xfse = 0x9bb5a60
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26092588
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#27 0x00000000006e5214 in ?? ()
No symbol table info available.

#28 0x00000000006bee14 in execute ()
No symbol table info available.
#29 0x00007ffff420034d in xdebug_execute (op_array=0x5d92030)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef56698
        fse = 0xa815dd0
        xfse = 0xa9fdb40
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26091861
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#30 0x00000000006e5214 in ?? ()
No symbol table info available.
#31 0x00000000006bee14 in execute ()
No symbol table info available.
#32 0x00007ffff420034d in xdebug_execute (op_array=0x5d86670)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xa98f200
        edata = 0x7fffeef56358
        fse = 0xaaf5c90
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26089149
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#33 0x00000000006e5214 in ?? ()
No symbol table info available.
#34 0x00000000006bee14 in execute ()
No symbol table info available.
#35 0x00007ffff420034d in xdebug_execute (op_array=0x742d050)

    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef55978
        fse = 0xbf3b700
        xfse = 0xad8fe60
        magic_cookie = 0x0
        do_return = 0
        function_nr = 26027703
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#36 0x00000000006e5214 in ?? ()
No symbol table info available.
#37 0x00000000006bee14 in execute ()
No symbol table info available.
#38 0x00007ffff420034d in xdebug_execute (op_array=0x743ba30)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xa034d20
        edata = 0x7fffeef55720
        fse = 0xad22290
        xfse = 0xa034d20
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25996211
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#39 0x00000000006e5214 in ?? ()
No symbol table info available.
#40 0x00000000006bee14 in execute ()
No symbol table info available.
#41 0x00007ffff420034d in xdebug_execute (op_array=0x1d51e30)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef528f0

        fse = 0x9f17900
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25988308
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#42 0x00000000006e5214 in ?? ()
No symbol table info available.
#43 0x00000000006bee14 in execute ()
No symbol table info available.
#44 0x00007ffff420034d in xdebug_execute (op_array=0xa0c00e0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x4
        edata = 0x7fffeef52078
        fse = 0xb3e3e20
        xfse = 0x642150
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25987239
        le = 0x0
        eval_id = 0
        clear = 1
        return_val = 0x0
#45 0x00000000006c3cfa in ?? ()
No symbol table info available.
#46 0x00000000006bee14 in execute ()
No symbol table info available.
#47 0x00007ffff420034d in xdebug_execute (op_array=0x4645f80)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef51000
        fse = 0xa09f050
        xfse = 0x5
        magic_cookie = 0x0

        do_return = 0
        function_nr = 25987215
        le = 0x7ffff525d1c0
        eval_id = 0
        clear = 1
        return_val = 0x0
#48 0x00000000006e5214 in ?? ()
No symbol table info available.
#49 0x00000000006bee14 in execute ()
No symbol table info available.
#50 0x00007ffff420034d in xdebug_execute (op_array=0x45de340)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xbb2ff70
        edata = 0x7fffffff9ba0
        fse = 0xadc0930
        xfse = 0x2
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25338892
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#51 0x000000000068b908 in zend_call_function ()
No symbol table info available.
#52 0x000000000053f8f6 in ?? ()
No symbol table info available.
#53 0x00007ffff420072d in xdebug_execute_internal (
    current_execute_data=0x7fffeef50448, return_value_used=1)
    at /home/fidian/xdebug/xdebug.c:1387
        edata = 0x7fffeef50448
        fse = 0xa7290d0
        cur_opcode = 0xa7372b0
        do_return = 0
        function_nr = 25338891
#54 0x00000000006e552c in ?? ()
No symbol table info available.

#55 0x00000000006bee14 in execute ()
No symbol table info available.
#56 0x00007ffff420034d in xdebug_execute (op_array=0x18a1060)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4ffa0
        fse = 0xb8a4ef0
        xfse = 0x7
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25338885
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#57 0x00000000006e5214 in ?? ()
No symbol table info available.
#58 0x00000000006bee14 in execute ()
No symbol table info available.
#59 0x00007ffff420034d in xdebug_execute (op_array=0x466dac0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffeef4ecd8
        edata = 0x7fffeef4e8e8
        fse = 0x95e00e0
        xfse = 0xaae7c60
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25338883
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#60 0x00000000006e5214 in ?? ()
No symbol table info available.
#61 0x00000000006bee14 in execute ()
No symbol table info available.
#62 0x00007ffff420034d in xdebug_execute (op_array=0x4670b30)

    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1215e10
        edata = 0x7fffeef4cf38
        fse = 0xae60890
        xfse = 0x5
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25337953
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#63 0x00000000006e5214 in ?? ()
No symbol table info available.
#64 0x00000000006bee14 in execute ()
No symbol table info available.
#65 0x00007ffff420034d in xdebug_execute (op_array=0x53784f0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1896810
        edata = 0x7fffeef4bd98
        fse = 0xb9c0430
        xfse = 0x1
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25337941
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#66 0x00000000006e5214 in ?? ()
No symbol table info available.
#67 0x00000000006bee14 in execute ()
No symbol table info available.
#68 0x00007ffff420034d in xdebug_execute (op_array=0x1896370)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4ba40

        fse = 0xa117d80
        xfse = 0x3
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25337928
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#69 0x00000000006e5214 in ?? ()
No symbol table info available.
#70 0x00000000006bee14 in execute ()
No symbol table info available.
#71 0x00007ffff420034d in xdebug_execute (op_array=0x466d970)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4b928
        fse = 0xb1b8a30
        xfse = 0x124d240
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25337924
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#72 0x00000000006e5214 in ?? ()
No symbol table info available.
#73 0x00000000006bee14 in execute ()
No symbol table info available.
#74 0x00007ffff420034d in xdebug_execute (op_array=0x21a8cf0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121ca20
        edata = 0x7fffeef4a1b8
        fse = 0xb0d0330
        xfse = 0x8
        magic_cookie = 0x0

        do_return = 0
        function_nr = 25337923
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#75 0x00000000006e5214 in ?? ()
No symbol table info available.
#76 0x00000000006bee14 in execute ()
No symbol table info available.
#77 0x00007ffff420034d in xdebug_execute (op_array=0x21a8ba0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfa0
        edata = 0x7fffeef48a30
        fse = 0x9be9fb0
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21578181
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#78 0x00000000006e5214 in ?? ()
No symbol table info available.
#79 0x00000000006bee14 in execute ()
No symbol table info available.
#80 0x00007ffff420034d in xdebug_execute (op_array=0x121b6e0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfa0
        edata = 0x7fffeef472a8
        fse = 0xa0803a0
        xfse = 0xe5b9c0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21578166
        le = 0x69518e

        eval_id = 0
        clear = 1
        return_val = 0x0
#81 0x00000000006e5214 in ?? ()
No symbol table info available.
#82 0x00000000006bee14 in execute ()
No symbol table info available.
#83 0x00007ffff420034d in xdebug_execute (op_array=0x121b6e0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x8
        edata = 0x7fffeef444c0
        fse = 0x53fee60
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624653
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#84 0x00000000006e5214 in ?? ()
No symbol table info available.
#85 0x00000000006bee14 in execute ()
No symbol table info available.
#86 0x00007ffff420034d in xdebug_execute (op_array=0x11232a0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef43538
        fse = 0x1123d60
        xfse = 0x1161088
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624544
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0

#87 0x00000000006e5214 in ?? ()
No symbol table info available.
#88 0x00000000006bee14 in execute ()
No symbol table info available.
#89 0x00007ffff420034d in xdebug_execute (op_array=0x115ad90)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1150f80
        edata = 0x7fffeef43328
        fse = 0x11159c0
        xfse = 0x1150f80
        magic_cookie = 0x0
        do_return = 0
        function_nr = 77
        le = 0x115c770
        eval_id = 0
        clear = 0
        return_val = 0x0
#90 0x00000000006e5214 in ?? ()
No symbol table info available.
#91 0x00000000006bee14 in execute ()
No symbol table info available.
#92 0x00007ffff420034d in xdebug_execute (op_array=0x115c220)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffffffba00
        edata = 0x7fffeef43030
        fse = 0x114a5e0
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 76
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#93 0x00000000006e5214 in ?? ()
No symbol table info available.
#94 0x00000000006bee14 in execute ()

No symbol table info available.
#95 0x00007ffff420034d in xdebug_execute (op_array=0x1114240)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x0
        fse = 0x10fd7a0
        xfse = 0x1114550
        magic_cookie = 0x0
        do_return = 0
        function_nr = 0
        le = 0x7fffffffe2b0
        eval_id = 0
        clear = 1
        return_val = 0x0
#96 0x0000000000699939 in zend_execute_scripts ()
No symbol table info available.
#97 0x0000000000644ea3 in php_execute_script ()
No symbol table info available.
#98 0x0000000000733b0f in ?? ()
No symbol table info available.
#99 0x00007ffff4eebeff in __libc_start_main ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#100 0x0000000000428a09 in _start ()
No symbol table info available.
(gdb)
gdb.txt (15,315 bytes)   
log.txt (38,596 bytes)   
echo "$USE_ZEND_ALLOC"

$ gdb --args php `which phpunit` .
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/php /usr/bin/phpunit .
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffef9d9700 (LWP 1518)]
[Thread 0x7fffef9d9700 (LWP 1518) exited]
PHPUnit 3.6.11 by Sebastian Bergmann.

.SSSSSS......................................................   61 / 1148 (  5%)
.............................................................  122 / 1148 ( 10%)
.............................................................  183 / 1148 ( 15%)
........................F...............E..E.................  244 / 1148 ( 21%)
...E.I..............................IIIIII.IIIIIIIIIII.......  305 / 1148 ( 26%)
...............................III...........................  366 / 1148 ( 31%)
........................................................I....  427 / 1148 ( 37%)
.............................................................  488 / 1148 ( 42%)
.............................................................  549 / 1148 ( 47%)
.............................................................  610 / 1148 ( 53%)
.............................................................  671 / 1148 ( 58%)
.................................................FFFFFFFFFFFF  732 / 1148 ( 63%)
FF.......................IIIIIIII............................  793 / 1148 ( 69%)
.....................................I.......................  854 / 1148 ( 74%)
.............................................................  915 / 1148 ( 79%)
.........................................IIIII...............  976 / 1148 ( 85%)
............................................................. 1037 / 1148 ( 90%)
............................................................. 1098 / 1148 ( 95%)
..................................................

Time: 07:49, Memory: 233.50Mb

There were 3 errors:

(...censored...)

FAILURES!
Tests: 1148, Assertions: 4665, Failures: 15, Errors: 3, Incomplete: 36, Skipped: 6.

Program exited with code 01.
(gdb) quit

-----------------------------------------------------------------------------

$ export USE_ZEND_ALLOC=0
$ echo "$USE_ZEND_ALLOC"
0
$ gdb --args php `which phpunit` .
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/php /usr/bin/phpunit .
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffef9d9700 (LWP 2084)]
[Thread 0x7fffef9d9700 (LWP 2084) exited]
PHPUnit 3.6.11 by Sebastian Bergmann.

.SSSSSS......................................................   61 / 1148 (  5%)
.............................................................  122 / 1148 ( 10%)
.............................................................  183 / 1148 ( 15%)
........................F...............E..
Program received signal SIGILL, Illegal instruction.
0x00000000006b55f0 in ?? ()
(gdb) bt full
#0  0x00000000006b55f0 in ?? ()
No symbol table info available.
#1  0x00000000006b55f2 in ?? ()
No symbol table info available.
#2  0x00000000006b55f2 in ?? ()
No symbol table info available.
#3  0x00000000006b55f2 in ?? ()
No symbol table info available.
#4  0x00000000006b55f2 in ?? ()
No symbol table info available.
#5  0x00000000006b55f2 in ?? ()
No symbol table info available.
#6  0x00000000006b55f2 in ?? ()
No symbol table info available.
#7  0x00000000006b55f2 in ?? ()
No symbol table info available.
#8  0x00000000006b55f2 in ?? ()
No symbol table info available.
#9  0x00000000006b55f2 in ?? ()
No symbol table info available.
#10 0x00000000006b5845 in ?? ()
No symbol table info available.
#11 0x00000000006b5e0c in gc_collect_cycles ()
No symbol table info available.
#12 0x00000000006b6182 in gc_zobj_possible_root ()
No symbol table info available.
#13 0x00000000006e50cf in ?? ()
No symbol table info available.
#14 0x00000000006bee14 in execute ()
No symbol table info available.
#15 0x00007ffff420034d in xdebug_execute (op_array=0x1e38c60)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fff0000000d
        edata = 0x7fffeef58718
        fse = 0xaa15880
        xfse = 0x0
        magic_cookie = 0x0
        do_return = 0
---Type <return> to continue, or q <return> to quit---
        function_nr = 29123151
        le = 0x74027e8
        eval_id = 0
        clear = 1
        return_val = 0x0
#16 0x00000000006e5214 in ?? ()
No symbol table info available.
#17 0x00000000006bee14 in execute ()
No symbol table info available.
#18 0x00007ffff420034d in xdebug_execute (op_array=0x73877f0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xaa14ed0
        edata = 0x7fffeef585a0
        fse = 0xaa15760
        xfse = 0xaa14ed0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29123150
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#19 0x00000000006e5214 in ?? ()
No symbol table info available.
#20 0x00000000006bee14 in execute ()
No symbol table info available.
#21 0x00007ffff420034d in xdebug_execute (op_array=0x73ffb20)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x5
        edata = 0x7fffeef57848
        fse = 0xb000260
        xfse = 0xc3b67a0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29123147
        le = 0x7fffffff8090
        eval_id = 0
        clear = 1
---Type <return> to continue, or q <return> to quit---
        return_val = 0x0
#22 0x00000000006e5214 in ?? ()
No symbol table info available.
#23 0x00000000006bee14 in execute ()
No symbol table info available.
#24 0x00007ffff420034d in xdebug_execute (op_array=0x1e38c60)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fff0000000d
        edata = 0x7fffeef576b8
        fse = 0xaa745f0
        xfse = 0x0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29123029
        le = 0x73ef210
        eval_id = 0
        clear = 1
        return_val = 0x0
#25 0x00000000006e5214 in ?? ()
No symbol table info available.
#26 0x00000000006bee14 in execute ()
No symbol table info available.
#27 0x00007ffff420034d in xdebug_execute (op_array=0x74012f0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xc54ca20
        edata = 0x7fffeef573e8
        fse = 0xaa74ac0
        xfse = 0xc54ca20
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29123028
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#28 0x00000000006e5214 in ?? ()
No symbol table info available.
#29 0x00000000006bee14 in execute ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#30 0x00007ffff420034d in xdebug_execute (op_array=0x73ed750)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xc018300
        edata = 0x7fffeef56ff8
        fse = 0xb36acb0
        xfse = 0xc018300
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29121870
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#31 0x00000000006e5214 in ?? ()
No symbol table info available.
#32 0x00000000006bee14 in execute ()
No symbol table info available.
#33 0x00007ffff420034d in xdebug_execute (op_array=0x1de7e10)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xd
        edata = 0x7fffeef56360
        fse = 0xaa743d0
        xfse = 0x10
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29120621
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#34 0x00000000006e5214 in ?? ()
No symbol table info available.
#35 0x00000000006bee14 in execute ()
No symbol table info available.
#36 0x00007ffff420034d in xdebug_execute (op_array=0x74e58f0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffeef56210
---Type <return> to continue, or q <return> to quit---
        edata = 0x7fffeef55978
        fse = 0xadd9b80
        xfse = 0xb8b5b50
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29116666
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#37 0x00000000006e5214 in ?? ()
No symbol table info available.
#38 0x00000000006bee14 in execute ()
No symbol table info available.
#39 0x00007ffff420034d in xdebug_execute (op_array=0x7791230)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xba3f700
        edata = 0x7fffeef55720
        fse = 0xb411ac0
        xfse = 0xba3f700
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29040461
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#40 0x00000000006e5214 in ?? ()
No symbol table info available.
#41 0x00000000006bee14 in execute ()
No symbol table info available.
#42 0x00007ffff420034d in xdebug_execute (op_array=0x1d51fb0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef528f0
        fse = 0xaabb180
        xfse = 0x4
        magic_cookie = 0x0
---Type <return> to continue, or q <return> to quit---
        do_return = 0
        function_nr = 29032558
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#43 0x00000000006e5214 in ?? ()
No symbol table info available.
#44 0x00000000006bee14 in execute ()
No symbol table info available.
#45 0x00007ffff420034d in xdebug_execute (op_array=0xc0094d0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x4
        edata = 0x7fffeef52078
        fse = 0xb35a440
        xfse = 0x642150
        magic_cookie = 0x0
        do_return = 0
        function_nr = 28457488
        le = 0x0
        eval_id = 0
        clear = 1
        return_val = 0x0
#46 0x00000000006c3cfa in ?? ()
No symbol table info available.
#47 0x00000000006bee14 in execute ()
No symbol table info available.
#48 0x00007ffff420034d in xdebug_execute (op_array=0x4665640)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef51000
        fse = 0xbe6f800
        xfse = 0x5
        magic_cookie = 0x0
        do_return = 0
        function_nr = 28457464
        le = 0x7ffff525d1c0
        eval_id = 0
---Type <return> to continue, or q <return> to quit---
        clear = 1
        return_val = 0x0
#49 0x00000000006e5214 in ?? ()
No symbol table info available.
#50 0x00000000006bee14 in execute ()
No symbol table info available.
#51 0x00007ffff420034d in xdebug_execute (op_array=0x45d4800)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xb447b90
        edata = 0x7fffffff9670
        fse = 0xb2951c0
        xfse = 0x2
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27809128
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#52 0x000000000068b908 in zend_call_function ()
No symbol table info available.
#53 0x000000000053f8f6 in ?? ()
No symbol table info available.
#54 0x00007ffff420072d in xdebug_execute_internal (
    current_execute_data=0x7fffeef50448, return_value_used=1)
    at /home/fidian/xdebug/xdebug.c:1387
        edata = 0x7fffeef50448
        fse = 0xb241bc0
        cur_opcode = 0xa7c1140
        do_return = 0
        function_nr = 27809127
#55 0x00000000006e552c in ?? ()
No symbol table info available.
#56 0x00000000006bee14 in execute ()
No symbol table info available.
#57 0x00007ffff420034d in xdebug_execute (op_array=0x18a10b0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
---Type <return> to continue, or q <return> to quit---
        edata = 0x7fffeef4ffa0
        fse = 0xb0a8110
        xfse = 0x7
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27809121
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#58 0x00000000006e5214 in ?? ()
No symbol table info available.
#59 0x00000000006bee14 in execute ()
No symbol table info available.
#60 0x00007ffff420034d in xdebug_execute (op_array=0x466b780)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffeef4ecd8
        edata = 0x7fffeef4e8e8
        fse = 0xaf5a6b0
        xfse = 0xb0fb570
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27809119
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#61 0x00000000006e5214 in ?? ()
No symbol table info available.
#62 0x00000000006bee14 in execute ()
No symbol table info available.
#63 0x00007ffff420034d in xdebug_execute (op_array=0x466e930)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x53fc110
        edata = 0x7fffeef4cf38
        fse = 0x9c34310
        xfse = 0x5
        magic_cookie = 0x0
---Type <return> to continue, or q <return> to quit---
        do_return = 0
        function_nr = 27808186
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#64 0x00000000006e5214 in ?? ()
No symbol table info available.
#65 0x00000000006bee14 in execute ()
No symbol table info available.
#66 0x00007ffff420034d in xdebug_execute (op_array=0x5357b40)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1896860
        edata = 0x7fffeef4bd98
        fse = 0xa8f7960
        xfse = 0x1
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27808174
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#67 0x00000000006e5214 in ?? ()
No symbol table info available.
#68 0x00000000006bee14 in execute ()
No symbol table info available.
#69 0x00007ffff420034d in xdebug_execute (op_array=0x18963c0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4ba40
        fse = 0xac0ed30
        xfse = 0x3
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27808161
        le = 0x7ffff4f49e1e
        eval_id = 0
---Type <return> to continue, or q <return> to quit---
        clear = 0
        return_val = 0x0
#70 0x00000000006e5214 in ?? ()
No symbol table info available.
#71 0x00000000006bee14 in execute ()
No symbol table info available.
#72 0x00007ffff420034d in xdebug_execute (op_array=0x466b630)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4b928
        fse = 0xb7470a0
        xfse = 0x124d280
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27808157
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#73 0x00000000006e5214 in ?? ()
No symbol table info available.
#74 0x00000000006bee14 in execute ()
No symbol table info available.
#75 0x00007ffff420034d in xdebug_execute (op_array=0x21a8f20)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121ca60
        edata = 0x7fffeef4a1b8
        fse = 0x94e1ce0
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27808156
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#76 0x00000000006e5214 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#77 0x00000000006bee14 in execute ()
No symbol table info available.
#78 0x00007ffff420034d in xdebug_execute (op_array=0x21a8dd0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfe0
        edata = 0x7fffeef48a30
        fse = 0x95fb050
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21296302
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#79 0x00000000006e5214 in ?? ()
No symbol table info available.
#80 0x00000000006bee14 in execute ()
No symbol table info available.
#81 0x00007ffff420034d in xdebug_execute (op_array=0x121b720)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfe0
        edata = 0x7fffeef472a8
        fse = 0x9f4b8b0
        xfse = 0xe5b9c0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21296287
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#82 0x00000000006e5214 in ?? ()
No symbol table info available.
#83 0x00000000006bee14 in execute ()
No symbol table info available.
#84 0x00007ffff420034d in xdebug_execute (op_array=0x121b720)
    at /home/fidian/xdebug/xdebug.c:1316
---Type <return> to continue, or q <return> to quit---
        dummy = 0x8
        edata = 0x7fffeef444c0
        fse = 0x53b7a40
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624284
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#85 0x00000000006e5214 in ?? ()
No symbol table info available.
#86 0x00000000006bee14 in execute ()
No symbol table info available.
#87 0x00007ffff420034d in xdebug_execute (op_array=0x11232e0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef43538
        fse = 0x1123da0
        xfse = 0x11610c8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624175
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#88 0x00000000006e5214 in ?? ()
No symbol table info available.
#89 0x00000000006bee14 in execute ()
No symbol table info available.
#90 0x00007ffff420034d in xdebug_execute (op_array=0x115add0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1150fc0
        edata = 0x7fffeef43328
        fse = 0x1115a00
        xfse = 0x1150fc0
---Type <return> to continue, or q <return> to quit---
        magic_cookie = 0x0
        do_return = 0
        function_nr = 77
        le = 0x115c7b0
        eval_id = 0
        clear = 0
        return_val = 0x0
#91 0x00000000006e5214 in ?? ()
No symbol table info available.
#92 0x00000000006bee14 in execute ()
No symbol table info available.
#93 0x00007ffff420034d in xdebug_execute (op_array=0x115c260)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffffffb4d0
        edata = 0x7fffeef43030
        fse = 0x114a620
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 76
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#94 0x00000000006e5214 in ?? ()
No symbol table info available.
#95 0x00000000006bee14 in execute ()
No symbol table info available.
#96 0x00007ffff420034d in xdebug_execute (op_array=0x1114280)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x0
        fse = 0x10fd0e0
        xfse = 0x1114590
        magic_cookie = 0x0
        do_return = 0
        function_nr = 0
        le = 0x7fffffffdd80
---Type <return> to continue, or q <return> to quit---
        eval_id = 0
        clear = 1
        return_val = 0x0
#97 0x0000000000699939 in zend_execute_scripts ()
No symbol table info available.
#98 0x0000000000644ea3 in php_execute_script ()
No symbol table info available.
#99 0x0000000000733b0f in ?? ()
No symbol table info available.
#100 0x00007ffff4eebeff in __libc_start_main ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#101 0x0000000000428a09 in _start ()
No symbol table info available.
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2081] will be killed.

Quit anyway? (y or n) y

-----------------------------------------------------------------------------

$ export USE_ZEND_ALLOC=
$ echo "$USE_ZEND_ALLOC"

$ gdb --args php `which phpunit` .
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/php /usr/bin/phpunit .
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffef9d9700 (LWP 2585)]
[Thread 0x7fffef9d9700 (LWP 2585) exited]
PHPUnit 3.6.11 by Sebastian Bergmann.

.SSSSSS......................................................   61 / 1148 (  5%)
.............................................................  122 / 1148 ( 10%)
.............................................................  183 / 1148 ( 15%)
........................F...............E..
Program received signal SIGILL, Illegal instruction.
0x00000000006b55f0 in ?? ()
(gdb) bt full
#0  0x00000000006b55f0 in ?? ()
No symbol table info available.
#1  0x00000000006b55f2 in ?? ()
No symbol table info available.
#2  0x00000000006b55f2 in ?? ()
No symbol table info available.
#3  0x00000000006b55f2 in ?? ()
No symbol table info available.
#4  0x00000000006b55f2 in ?? ()
No symbol table info available.
#5  0x00000000006b55f2 in ?? ()
No symbol table info available.
#6  0x00000000006b55f2 in ?? ()
No symbol table info available.
#7  0x00000000006b55f2 in ?? ()
No symbol table info available.
#8  0x00000000006b55f2 in ?? ()
No symbol table info available.
#9  0x00000000006b55f2 in ?? ()
No symbol table info available.
#10 0x00000000006b5845 in ?? ()
No symbol table info available.
#11 0x00000000006b5e0c in gc_collect_cycles ()
No symbol table info available.
#12 0x00000000006b6182 in gc_zobj_possible_root ()
No symbol table info available.
#13 0x00000000006e50cf in ?? ()
No symbol table info available.
#14 0x00000000006bee14 in execute ()
No symbol table info available.
#15 0x00007ffff420034d in xdebug_execute (op_array=0x1e38c60)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fff0000000d
        edata = 0x7fffeef58718
        fse = 0xc411880
        xfse = 0x0
        magic_cookie = 0x0
        do_return = 0
---Type <return> to continue, or q <return> to quit---
        function_nr = 29185709
        le = 0x7403b68
        eval_id = 0
        clear = 1
        return_val = 0x0
#16 0x00000000006e5214 in ?? ()
No symbol table info available.
#17 0x00000000006bee14 in execute ()
No symbol table info available.
#18 0x00007ffff420034d in xdebug_execute (op_array=0x7368080)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xc410ed0
        edata = 0x7fffeef585a0
        fse = 0xc411760
        xfse = 0xc410ed0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29185708
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#19 0x00000000006e5214 in ?? ()
No symbol table info available.
#20 0x00000000006bee14 in execute ()
No symbol table info available.
#21 0x00007ffff420034d in xdebug_execute (op_array=0x7400ea0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x5
        edata = 0x7fffeef57848
        fse = 0xa80bc80
        xfse = 0xc0514d0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29185705
        le = 0x7fffffff8090
        eval_id = 0
        clear = 1
---Type <return> to continue, or q <return> to quit---
        return_val = 0x0
#22 0x00000000006e5214 in ?? ()
No symbol table info available.
#23 0x00000000006bee14 in execute ()
No symbol table info available.
#24 0x00007ffff420034d in xdebug_execute (op_array=0x1e38c60)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fff0000000d
        edata = 0x7fffeef576b8
        fse = 0xb6cb830
        xfse = 0x0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29185587
        le = 0x73f0900
        eval_id = 0
        clear = 1
        return_val = 0x0
#25 0x00000000006e5214 in ?? ()
No symbol table info available.
#26 0x00000000006bee14 in execute ()
No symbol table info available.
#27 0x00007ffff420034d in xdebug_execute (op_array=0x7402670)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xbfc05d0
        edata = 0x7fffeef573e8
        fse = 0xabb03b0
        xfse = 0xbfc05d0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29185586
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#28 0x00000000006e5214 in ?? ()
No symbol table info available.
#29 0x00000000006bee14 in execute ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#30 0x00007ffff420034d in xdebug_execute (op_array=0x73eee40)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xadb9ce0
        edata = 0x7fffeef56ff8
        fse = 0xa976b00
        xfse = 0xadb9ce0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29184428
        le = 0x1
        eval_id = 0
        clear = 1
        return_val = 0x0
#31 0x00000000006e5214 in ?? ()
No symbol table info available.
#32 0x00000000006bee14 in execute ()
No symbol table info available.
#33 0x00007ffff420034d in xdebug_execute (op_array=0x1de7e10)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xd
        edata = 0x7fffeef56360
        fse = 0xb6cb610
        xfse = 0x10
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29183179
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#34 0x00000000006e5214 in ?? ()
No symbol table info available.
#35 0x00000000006bee14 in execute ()
No symbol table info available.
#36 0x00007ffff420034d in xdebug_execute (op_array=0x7490120)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffeef56210
---Type <return> to continue, or q <return> to quit---
        edata = 0x7fffeef55978
        fse = 0xb9dcbd0
        xfse = 0xbb78570
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29179224
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#37 0x00000000006e5214 in ?? ()
No symbol table info available.
#38 0x00000000006bee14 in execute ()
No symbol table info available.
#39 0x00007ffff420034d in xdebug_execute (op_array=0x7413ca0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0xb3e11a0
        edata = 0x7fffeef55720
        fse = 0xbb607a0
        xfse = 0xb3e11a0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 29103019
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#40 0x00000000006e5214 in ?? ()
No symbol table info available.
#41 0x00000000006bee14 in execute ()
No symbol table info available.
#42 0x00007ffff420034d in xdebug_execute (op_array=0x1d51fb0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef528f0
        fse = 0xb14a420
        xfse = 0x4
        magic_cookie = 0x0
---Type <return> to continue, or q <return> to quit---
        do_return = 0
        function_nr = 29095116
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#43 0x00000000006e5214 in ?? ()
No symbol table info available.
#44 0x00000000006bee14 in execute ()
No symbol table info available.
#45 0x00007ffff420034d in xdebug_execute (op_array=0xb6c7330)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x4
        edata = 0x7fffeef52078
        fse = 0xbc331a0
        xfse = 0x642150
        magic_cookie = 0x0
        do_return = 0
        function_nr = 28520046
        le = 0x0
        eval_id = 0
        clear = 1
        return_val = 0x0
#46 0x00000000006c3cfa in ?? ()
No symbol table info available.
#47 0x00000000006bee14 in execute ()
No symbol table info available.
#48 0x00007ffff420034d in xdebug_execute (op_array=0x4665f20)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x7fffeef51000
        fse = 0xad09a70
        xfse = 0x5
        magic_cookie = 0x0
        do_return = 0
        function_nr = 28520022
        le = 0x7ffff525d1c0
        eval_id = 0
---Type <return> to continue, or q <return> to quit---
        clear = 1
        return_val = 0x0
#49 0x00000000006e5214 in ?? ()
No symbol table info available.
#50 0x00000000006bee14 in execute ()
No symbol table info available.
#51 0x00007ffff420034d in xdebug_execute (op_array=0x459a890)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x8c96b90
        edata = 0x7fffffff9670
        fse = 0x9bd13e0
        xfse = 0x2
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27871686
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 0
        return_val = 0x0
#52 0x000000000068b908 in zend_call_function ()
No symbol table info available.
#53 0x000000000053f8f6 in ?? ()
No symbol table info available.
#54 0x00007ffff420072d in xdebug_execute_internal (
    current_execute_data=0x7fffeef50448, return_value_used=1)
    at /home/fidian/xdebug/xdebug.c:1387
        edata = 0x7fffeef50448
        fse = 0xae8e8b0
        cur_opcode = 0xb2d9dd0
        do_return = 0
        function_nr = 27871685
#55 0x00000000006e552c in ?? ()
No symbol table info available.
#56 0x00000000006bee14 in execute ()
No symbol table info available.
#57 0x00007ffff420034d in xdebug_execute (op_array=0x18a10b0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
---Type <return> to continue, or q <return> to quit---
        edata = 0x7fffeef4ffa0
        fse = 0xb0c45e0
        xfse = 0x7
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27871679
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#58 0x00000000006e5214 in ?? ()
No symbol table info available.
#59 0x00000000006bee14 in execute ()
No symbol table info available.
#60 0x00007ffff420034d in xdebug_execute (op_array=0x466b520)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffeef4ecd8
        edata = 0x7fffeef4e8e8
        fse = 0x9e3ee00
        xfse = 0x8e75ff0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27871677
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#61 0x00000000006e5214 in ?? ()
No symbol table info available.
#62 0x00000000006bee14 in execute ()
No symbol table info available.
#63 0x00007ffff420034d in xdebug_execute (op_array=0x466e6d0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x124e890
        edata = 0x7fffeef4cf38
        fse = 0xaadaa30
        xfse = 0x5
        magic_cookie = 0x0
---Type <return> to continue, or q <return> to quit---
        do_return = 0
        function_nr = 27870744
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#64 0x00000000006e5214 in ?? ()
No symbol table info available.
#65 0x00000000006bee14 in execute ()
No symbol table info available.
#66 0x00007ffff420034d in xdebug_execute (op_array=0x53f0e90)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1896860
        edata = 0x7fffeef4bd98
        fse = 0xa1d8c40
        xfse = 0x1
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27870732
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#67 0x00000000006e5214 in ?? ()
No symbol table info available.
#68 0x00000000006bee14 in execute ()
No symbol table info available.
#69 0x00007ffff420034d in xdebug_execute (op_array=0x18963c0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4ba40
        fse = 0xbf81f60
        xfse = 0x3
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27870719
        le = 0x7ffff4f49e1e
        eval_id = 0
---Type <return> to continue, or q <return> to quit---
        clear = 0
        return_val = 0x0
#70 0x00000000006e5214 in ?? ()
No symbol table info available.
#71 0x00000000006bee14 in execute ()
No symbol table info available.
#72 0x00007ffff420034d in xdebug_execute (op_array=0x466b3d0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef4b928
        fse = 0x98d2b80
        xfse = 0x124d280
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27870715
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#73 0x00000000006e5214 in ?? ()
No symbol table info available.
#74 0x00000000006bee14 in execute ()
No symbol table info available.
#75 0x00007ffff420034d in xdebug_execute (op_array=0x21a8f90)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121ca60
        edata = 0x7fffeef4a1b8
        fse = 0xa8cfe40
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 27870714
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#76 0x00000000006e5214 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#77 0x00000000006bee14 in execute ()
No symbol table info available.
#78 0x00007ffff420034d in xdebug_execute (op_array=0x21a8e40)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfe0
        edata = 0x7fffeef48a30
        fse = 0x956cda0
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21358860
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#79 0x00000000006e5214 in ?? ()
No symbol table info available.
#80 0x00000000006bee14 in execute ()
No symbol table info available.
#81 0x00007ffff420034d in xdebug_execute (op_array=0x121b720)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x121bfe0
        edata = 0x7fffeef472a8
        fse = 0x9fa2830
        xfse = 0xe5b9c0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 21358845
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#82 0x00000000006e5214 in ?? ()
No symbol table info available.
#83 0x00000000006bee14 in execute ()
No symbol table info available.
#84 0x00007ffff420034d in xdebug_execute (op_array=0x121b720)
    at /home/fidian/xdebug/xdebug.c:1316
---Type <return> to continue, or q <return> to quit---
        dummy = 0x8
        edata = 0x7fffeef444c0
        fse = 0x53f2650
        xfse = 0x8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624653
        le = 0x69518e
        eval_id = 0
        clear = 1
        return_val = 0x0
#85 0x00000000006e5214 in ?? ()
No symbol table info available.
#86 0x00000000006bee14 in execute ()
No symbol table info available.
#87 0x00007ffff420034d in xdebug_execute (op_array=0x11232e0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1
        edata = 0x7fffeef43538
        fse = 0x1123da0
        xfse = 0x11610c8
        magic_cookie = 0x0
        do_return = 0
        function_nr = 624544
        le = 0x69518e
        eval_id = 0
        clear = 0
        return_val = 0x0
#88 0x00000000006e5214 in ?? ()
No symbol table info available.
#89 0x00000000006bee14 in execute ()
No symbol table info available.
#90 0x00007ffff420034d in xdebug_execute (op_array=0x115add0)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x1150fc0
        edata = 0x7fffeef43328
        fse = 0x1115a00
        xfse = 0x1150fc0
---Type <return> to continue, or q <return> to quit---
        magic_cookie = 0x0
        do_return = 0
        function_nr = 77
        le = 0x115c7b0
        eval_id = 0
        clear = 0
        return_val = 0x0
#91 0x00000000006e5214 in ?? ()
No symbol table info available.
#92 0x00000000006bee14 in execute ()
No symbol table info available.
#93 0x00007ffff420034d in xdebug_execute (op_array=0x115c260)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x7fffffffb4d0
        edata = 0x7fffeef43030
        fse = 0x114a620
        xfse = 0x4
        magic_cookie = 0x0
        do_return = 0
        function_nr = 76
        le = 0x7ffff4f49e1e
        eval_id = 0
        clear = 1
        return_val = 0x0
#94 0x00000000006e5214 in ?? ()
No symbol table info available.
#95 0x00000000006bee14 in execute ()
No symbol table info available.
#96 0x00007ffff420034d in xdebug_execute (op_array=0x1114280)
    at /home/fidian/xdebug/xdebug.c:1316
        dummy = 0x0
        edata = 0x0
        fse = 0x10fd0e0
        xfse = 0x1114590
        magic_cookie = 0x0
        do_return = 0
        function_nr = 0
        le = 0x7fffffffdd80
---Type <return> to continue, or q <return> to quit---
        eval_id = 0
        clear = 1
        return_val = 0x0
#97 0x0000000000699939 in zend_execute_scripts ()
No symbol table info available.
#98 0x0000000000644ea3 in php_execute_script ()
No symbol table info available.
#99 0x0000000000733b0f in ?? ()
No symbol table info available.
#100 0x00007ffff4eebeff in __libc_start_main ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#101 0x0000000000428a09 in _start ()
No symbol table info available.
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2582] will be killed.

Quit anyway? (y or n) y
log.txt (38,596 bytes)   
Operating SystemUbuntu
PHP Version5.3.13

Activities

derick

2012-06-16 07:12

administrator   ~0002259

Can you run phpunit through GDB?

You run that with:

export USE_ZEND_ALLOC=0
gdb --args php which phppunit ...your other php unit options...

On the GDB prompt:
run
and when it crashes:
bt full

fidian

2012-06-16 14:46

reporter   ~0002260

Last edited: 2012-06-16 14:47

This is with xdebug compiled at commit 72e60fdc5960cf89e2e4fd5c6477b83600d5b8b2. If you need it at master's HEAD, let me know.

See attachment gdb.txt

derick

2012-06-16 14:54

administrator   ~0002261

This trace shows it is not actually crashing in Xdebug st all, but in normal PHP. I would think that if you would disable Xdebug with the USE_ZEND_ALLOC=0 still active or will crash as well. Perhaps you can try running it without Xdebug like that?

fidian

2012-06-18 00:19

reporter   ~0002262

I rebooted the machine, then ran the following commands:

echo "$USE_ZEND_ALLOC"
gdb --args php which phpunit .

Pass

export USE_ZEND_ALLOC=0
echo "$USE_ZEND_ALLOC"
gdb --args php which phpunit .

Fail

export USE_ZEND_ALLOC=
echo "$USE_ZEND_ALLOC"
gdb --args php which phpunit .

Fail

See log.txt for further information. Again, the weird part is that one line of code in xdebug - if I comment it out, no more segmentation faults.

I'll work on whittling down the tests to see exactly what's causing it. It might take a while. Do you have any other ideas for things I can try?

fidian

2012-06-22 13:44

reporter   ~0002267

I'm running tests again and am unable to get consistent results. I am no longer certain that changing xdebug really affects anything. I suspect that the combination of PHP and xdebug do trigger an effect sometimes, but until I can nail this down I won't waste your time.

Please close this bug. If I can narrow things down and figure out where the breakage starts, I may open another bug (but it is really looking like PHP at the moment). Sorry to waste your time.

derick

2012-06-25 18:00

administrator   ~0002275

No worries, and feel free to reopen this if you have more info and/or can reproduce it.

Issue History

Date Modified Username Field Change
2012-06-15 21:54 fidian New Issue
2012-06-16 07:12 derick Note Added: 0002259
2012-06-16 07:12 derick Assigned To => derick
2012-06-16 07:12 derick Status new => feedback
2012-06-16 14:46 fidian Note Added: 0002260
2012-06-16 14:46 fidian Status feedback => assigned
2012-06-16 14:47 fidian Note Edited: 0002260
2012-06-16 14:47 fidian File Added: gdb.txt
2012-06-16 14:54 derick Note Added: 0002261
2012-06-16 14:54 derick Status assigned => feedback
2012-06-18 00:16 fidian File Added: log.txt
2012-06-18 00:19 fidian Note Added: 0002262
2012-06-18 00:19 fidian Status feedback => assigned
2012-06-22 13:44 fidian Note Added: 0002267
2012-06-25 18:00 derick Note Added: 0002275
2012-06-25 18:00 derick Status assigned => resolved
2012-06-25 18:00 derick Resolution open => unable to reproduce
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)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized