Subject: | Test failure with debugging perl |
Debian et al ship with a "debugperl", which is an alternate version of perl built with debugging symbols. Running the Coro tests with this version of Perl fail on my system:
PERL_DL_NONLAZY=1 /usr/bin/debugperl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_basic.......ok
t/01_process.....ok
t/02_channel.....ok
t/03_cont........ok
t/04_rwlock......ok
t/05_specific....ok
t/06_prio........dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 6-10
Failed 5/10 tests, 50.00% okay
t/07_eval........Bad realloc() ignored at t/07_eval.t line 7.
t/07_eval........dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 2-5
Failed 4/5 tests, 20.00% okay
t/08_join........dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 6-10
Failed 5/10 tests, 50.00% okay
t/09_timer.......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/06_prio.t 0 11 10 10 100.00% 6-10
t/07_eval.t 0 11 5 8 160.00% 2-5
t/08_join.t 0 11 10 10 100.00% 6-10
Failed 3/10 test scripts, 70.00% okay. 14/102 subtests failed, 86.27% okay.
make: *** [test_dynamic] Error 255
This makes debugging other problems with "gdb" problematic...
Verbose versions of test output:
wilber:~/.cpan/build/Coro-1.5$ PERL_DL_NONLAZY=1 perl -Mlib=blib/{arch,lib} t/06_prio.t
1..10
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
wilber:~/.cpan/build/Coro-1.5$ PERL_DL_NONLAZY=1 debugperl -Mlib=blib/{arch,lib} t/06_prio.t
1..10
ok 1
ok 2
ok 3
ok 4
ok 5
Segmentation fault
wilber:~/.cpan/build/Coro-1.5$ PERL_DL_NONLAZY=1 debugperl -Mlib=blib/{arch,lib} t/07_eval.t
1..5
ok 1
Bad realloc() ignored at t/07_eval.t line 7.
Segmentation fault
wilber:~/.cpan/build/Coro-1.5$ PERL_DL_NONLAZY=1 debugperl -Mlib=blib/{arch,lib} t/08_join.t
1..10
ok 1
ok 2
ok 3
ok 4
ok 5
Segmentation fault
wilber:~/.cpan/build/Coro-1.5$