Subject: | Assertion failure in t/01slurp.t |
t/01slurp.t may fail with an assertion failure:
Assertion failed: (ptr[len] == '\0'), function Perl_sv_usepvn_flags, file sv.c, line 5089.
t/01slurp.t ...........
Failed 4/6 subtests
I've seen this on a freebsd 9.2 system with perl 5.22.1
This can happen also on linux systems. Here's a report with perl 5.24.1-RC3:
http://www.cpantesters.org/cpan/report/08f896fa-69f8-11e6-b997-d5a958b9f28c
Both perls are configured with -DDEBUGGING --- probably a prerequisite to get assertion failures at all.
The gdb backtrace on the freebsd system:
#0 0x000000080138c23c in thr_kill () from /lib/libc.so.7
#1 0x000000080143063b in abort () from /lib/libc.so.7
#2 0x0000000801413d35 in __assert () from /lib/libc.so.7
#3 0x00000000005236d9 in Perl_sv_usepvn_flags (sv=0x801b31fd8,
ptr=0x8018e9600 "<html>\n <head>\n <title>This is the title of the test.html doc</title>\n <meta name=\"foo\" content=\"metaname foo\" />\n <meta name=\"bar\" content=\"metaname bar\" />\n </head>\n <body>\n <p>some words</p>\n "..., len=236, flags=384)
at sv.c:5089
#4 0x000000080241e92a in XS_SWISH__3_slurp (cv=<value optimized out>) at 3.xs:186
#5 0x0000000000509e26 in Perl_pp_entersub () at pp_hot.c:3270
#6 0x00000000004d4e52 in Perl_runops_debug () at dump.c:2234
#7 0x00000000004500c6 in perl_run (my_perl=<value optimized out>) at perl.c:2448
#8 0x0000000000422f05 in main (argc=3, argv=0x7fffffffd268, env=0x7fffffffd288) at perlmain.c:116