Subject: | Memory corruption in t/02copy.t |
On debian/stretch systems t/02copy.t fails with a stacktrace and SIGBART (various perl versions):
$ make test
...
t/02copy.t .... 1/10 *** Error in `/opt/perl-5.27.2/bin/perl5.27.2': double free or corruption (!prev): 0x000055a0c2628fd0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f2a51c2fbcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f2a51c35f96]
/lib/x86_64-linux-gnu/libc.so.6(+0x777de)[0x7f2a51c367de]
/usr/lib/x86_64-linux-gnu/libsndfile.so.1(+0x6a40)[0x7f2a51125a40]
/home/cpansand/.cpan/build/2017072909/Audio-SndFile-0.09-0/blib/arch/auto/Audio/SndFile/SndFile.so(+0x9fb6)[0x7f2a513a0fb6]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_pp_entersub+0x468)[0x55a0c0a67ce8]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_runops_standard+0x13)[0x55a0c0a5fdf3]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_call_sv+0x4c6)[0x55a0c09e5df6]
/opt/perl-5.27.2/bin/perl5.27.2(+0xd2486)[0x55a0c0a6c486]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_sv_clear+0x68d)[0x55a0c0a6ce6d]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_sv_free2+0x5e)[0x55a0c0a6d16e]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_leave_scope+0xe18)[0x55a0c0a97bc8]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_pp_leave+0x66)[0x55a0c0aa3556]
/opt/perl-5.27.2/bin/perl5.27.2(Perl_runops_standard+0x13)[0x55a0c0a5fdf3]
/opt/perl-5.27.2/bin/perl5.27.2(perl_run+0x2b6)[0x55a0c09ece96]
/opt/perl-5.27.2/bin/perl5.27.2(main+0x10f)[0x55a0c09c8aef]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f2a51bdf2b1]
/opt/perl-5.27.2/bin/perl5.27.2(_start+0x2a)[0x55a0c09c8b2a]
======= Memory map: ========
55a0c099a000-55a0c0b72000 r-xp 00000000 ca:01 1897426 /opt/perl-5.27.2/bin/perl5.27.2
...
7f2a52efb000-7f2a52efc000 rw-p 00000000 00:00 0
7fffe0fb5000-7fffe0fd6000 rw-p 00000000 00:00 0 [stack]
7fffe0fec000-7fffe0fee000 r--p 00000000 00:00 0 [vvar]
7fffe0fee000-7fffe0ff0000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]