Subject: | Segfaults/aborts in t/fail.t |
On some of my smoker systems t/fail.t fails either with a segmentation fault or a SIGABRT. I don't see a pattern regarding perl versions or operating systems.
In a debugging perl it looks like this:
$
perl5.24.0d -Mblib t/fail.t
1..19
...
ok 10 - Right message
perl5.24.0d: sv.c:6438: Perl_sv_clear: Assertion `((svtype)((sv)->sv_flags & 0xff)) != (svtype)0xff' failed.
[3] 25448 abort (core dumped) perl5.24.0d -Mblib t/fail.t
And a backtrace:
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fed8b17c067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007fed8b17c067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007fed8b17d448 in __GI_abort () at abort.c:89
#2 0x00007fed8b175266 in __assert_fail_base (fmt=0x7fed8b2adf18 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x68da58 "((svtype)((sv)->sv_flags & 0xff)) != (svtype)0xff", file=file@entry=0x68c580 "sv.c", line=line@entry=6438,
function=function@entry=0x6a2ca0 <__PRETTY_FUNCTION__.18898> "Perl_sv_clear") at assert.c:92
#3 0x00007fed8b175312 in __GI___assert_fail (assertion=0x68da58 "((svtype)((sv)->sv_flags & 0xff)) != (svtype)0xff", file=0x68c580 "sv.c", line=6438, function=0x6a2ca0 <__PRETTY_FUNCTION__.18898> "Perl_sv_clear") at assert.c:101
#4 0x000000000051360f in Perl_sv_clear (orig_sv=0xf665e8) at sv.c:6438
#5 0x0000000000514277 in Perl_sv_free2 (sv=0xf665e8, rc=<optimized out>) at sv.c:6954
#6 0x00000000004fc9ef in S_SvREFCNT_dec (sv=<optimized out>) at inline.h:166
#7 Perl_av_clear (av=av@entry=0xefcfb8) at av.c:492
#8 0x0000000000449828 in Perl_init_dbargs () at perl.c:4037
#9 0x0000000000579746 in Perl_pp_caller () at pp_ctl.c:1917
#10 0x00000000004d5ce2 in Perl_runops_debug () at dump.c:2239
#11 0x0000000000451a00 in S_run_body (oldscope=1) at perl.c:2478
#12 perl_run (my_perl=<optimized out>) at perl.c:2406
#13 0x0000000000421205 in main (argc=3, argv=0x7ffe249dbaa8, env=0x7ffe249dbac8) at perlmain.c:116
HTH, Slaven