| Steps To Reproduce |
- built PHP 5.3.5 with --enable-debug
- installed Xdebug and PHPUnit via pear / pecl
- ran my unit tests using gdb, specifically a particular test that uses the Rediska redis client:
https://github.com/Shumkov/Rediska
PHP always segfaults, the backtrace from gdb seems to implicate xdebug code:
#0 0x00007ffff611c5c3 in xdebug_set_in_ex (set=0x1f52a60, position=1189155543, noisy=1) at /tmp/pear/temp/xdebug/xdebug_set.c:72
#1 0x00007ffff610abbe in xdebug_analyse_branch (opa=0x1f37638, position=1189155543, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:390
0000002 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=133, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000003 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=131, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000004 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=129, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000005 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=119, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000006 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=114, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000007 0x00007ffff610ac5d in xdebug_analyse_branch (opa=0x1f37638, position=111, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:410
0000008 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=101, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000009 0x00007ffff610ac5d in xdebug_analyse_branch (opa=0x1f37638, position=88, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:410
0000010 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=85, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000011 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=79, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000012 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=78, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000013 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=74, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000014 0x00007ffff610ac5d in xdebug_analyse_branch (opa=0x1f37638, position=44, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:410
0000015 0x00007ffff610ac5d in xdebug_analyse_branch (opa=0x1f37638, position=35, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:410
0000016 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=31, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000017 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=27, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000018 0x00007ffff610ac21 in xdebug_analyse_branch (opa=0x1f37638, position=18, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:408
0000019 0x00007ffff610ac5d in xdebug_analyse_branch (opa=0x1f37638, position=6, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:410
0000020 0x00007ffff610ad5a in xdebug_analyse_oparray (opa=0x1f37638, set=0x1f52a60) at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:444
0000021 0x00007ffff610ae92 in prefill_from_oparray (fn=0x1dd1428 "/data/redis/Rediska/library/Rediska/KeyDistributor/ConsistentHashing.php", opa=0x1f37638)
at /tmp/pear/temp/xdebug/xdebug_code_coverage.c:473
( more lines after this, see file attachement ) |
|---|