develooper Front page | perl.perl5.porters | Postings from March 2017

[perl #131054] Perl 5.24 makes nama FTBFS due to segfault

Thread Previous
From:
Balint Reczey via RT
Date:
March 25, 2017 21:07
Subject:
[perl #131054] Perl 5.24 makes nama FTBFS due to segfault
Message ID:
rt-4.0.24-29941-1490370632-1283.131054-15-0@perl.org
Apparently my original report was too detailed, pasting the interesting parts:

When building nama Perl crashes in tests.

Originally reported to Debian BTS:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839218


This looks like a problem in Perl itself possibly causing random crashes
elsewhere, too.

Reproduction with the perl-debug package shows the internal assertion:

sudo apt-get install perl-debug
sudo apt-get build-dep nama
apt source nama
cd nama-*
dpkg-buildpackage
...
ok 57 - set JACK client as input
sax: JACK source port is sax_in. Make connections manually.

Track sax: source set to JACK manual port sax_in
Failed 69/126 subtests
t/13_io.t .......
1..1
ok 1 - use Audio::Nama::IO;
ok
..

PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/debugperl" \
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" " test_harness(1, \
'inc', 'blib/lib', 'blib/arch')" t/12_nama.t

...

ok 57 - set JACK client as input
sax: JACK source port is sax_in. Make connections manually.
Track sax: source set to JACK manual port sax_in
debugperl: sv.c:6438: Perl_sv_clear: Assertion `SvTYPE(sv) !=
(svtype)SVTYPEMASK' failed.
Failed 69/126 subtests
...

Address Sanitizer shows the crash with non-debug perl:

LD_PRELOAD=libasan.so.3 PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 \
"/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "
test_harness(1, 'inc', 'blib/lib', 'blib/arch')" t/12_nama.t
...
sax: JACK source port is sax_in. Make connections manually.
Track sax: source set to JACK manual port sax_in
ASAN:DEADLYSIGNAL
=================================================================
==13877==ERROR: AddressSanitizer: SEGV on unknown address 0x00ff00000012
(pc 0x559191b15fd8 bp 0x62100013f578 sp 0x7fffaa838b00 T0)
    #0 0x559191b15fd7  (/usr/bin/perl+0xd9fd7)
    #1 0x559191b1616d in Perl_sv_unmagic (/usr/bin/perl+0xda16d)
    #2 0x559191b1513a in Perl_sv_clear (/usr/bin/perl+0xd913a)
    #3 0x559191b15a8f in Perl_sv_free2 (/usr/bin/perl+0xd9a8f)
    #4 0x559191b4624e in Perl_leave_scope (/usr/bin/perl+0x10a24e)
    #5 0x559191b49707  (/usr/bin/perl+0x10d707)
    #6 0x559191b4ebab in Perl_die_unwind (/usr/bin/perl+0x112bab)
    #7 0x559191aea518 in Perl_vcroak (/usr/bin/perl+0xae518)
    #8 0x559191aeafb3 in Perl_croak (/usr/bin/perl+0xaefb3)
    #9 0x559191b1d592 in Perl_sv_setsv_flags (/usr/bin/perl+0xe1592)
    #10 0x559191b08ca9 in Perl_pp_sassign (/usr/bin/perl+0xccca9)
    #11 0x559191b08605 in Perl_runops_standard (/usr/bin/perl+0xcc605)
    #12 0x559191a8e6c8 in perl_run (/usr/bin/perl+0x526c8)
    #13 0x559191a6787c in main (/usr/bin/perl+0x2b87c)
    #14 0x7fa31be502b0 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
    #15 0x559191a678b9 in _start (/usr/bin/perl+0x2b8b9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/bin/perl+0xd9fd7)
==13877==ABORTING
Dubious, test returned 1 (wstat 256, 0x100)
Failed 69/126 subtests



---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=131054

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About