Failing test t/80ssltest.t with recent Debian sid and stretch

Andreas Koenig andreas.koenig.7os6VVqR at franz.ak.mind.de
Sun Mar 5 12:22:17 CET 2017


Hi Marc,

both Debian sid and stretch come with a libssl (1.1.0e-1) that triggers
SEGV in the t/80_ssltest.t test. I've seen the SEGV with many different
perl versions, but to keep focus on the libssl issue, I limit my
observations here on 5.20.3. If more evidence is needed, let me know.

AnyEvent source is from CPAN: MLEHMANN/AnyEvent-7.13.tar.gz

Maybe interesting: my sid smoker produced the first fail report on
2016-11-03, the libssl that was installed the day before was 1.1.0b-2.

Stretch Test:

 : % make test TEST_FILES=t/80_ssltest.t 
 : PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/host/k93stretch/v5.20.3/d123/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/80_ssltest.t
 : t/80_ssltest.t .. Failed 412/415 subtests 
 : 
 : Test Summary Report
 : -------------------
 : t/80_ssltest.t (Wstat: 139 Tests: 3 Failed: 0)
 :   Non-zero wait status: 139
 :   Parse errors: Bad plan.  You planned 415 tests but ran 3.
 : Files=1, Tests=3,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.08 cusr  0.02 csys =  0.13 CPU)
 : Result: FAIL

Stretch Stacktrace:

 : % gdb /home/sand/src/perl/repoperls/installed-perls/host/k93stretch/v5.20.3/d123/bin/perl core
 : GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
 : Copyright (C) 2016 Free Software Foundation, Inc.
 : License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 : This is free software: you are free to change and redistribute it.
 : There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 : and "show warranty" for details.
 : This GDB was configured as "x86_64-linux-gnu".
 : Type "show configuration" for configuration details.
 : For bug reporting instructions, please see:
 : <http://www.gnu.org/software/gdb/bugs/>.
 : Find the GDB manual and other documentation resources online at:
 : <http://www.gnu.org/software/gdb/documentation/>.
 : For help, type "help".
 : Type "apropos word" to search for commands related to "word"...
 : Reading symbols from /home/sand/src/perl/repoperls/installed-perls/host/k93stretch/v5.20.3/d123/bin/perl...done.
 : [New LWP 24413]
 : [Thread debugging using libthread_db enabled]
 : Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
 : Core was generated by `/home/sand/src/perl/repoperls/installed-perls/host/k93stretch/v5.20.3/d123/bin/'.
 : Program terminated with signal SIGSEGV, Segmentation fault.
 : #0  0x00007f93f5887ca4 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
 : (gdb) bt
 : #0  0x00007f93f5887ca4 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
 : #1  0x00007f93f5b972f2 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #2  0x00007f93f5b9515f in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #3  0x00007f93f5b7b48a in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #4  0x00007f93f5b8ba89 in SSL_write ()
 :    from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #5  0x00007f93f5e0f437 in XS_Net__SSLeay_write (my_perl=<optimized out>, 
 :     cv=<optimized out>) at SSLeay.xs:1827
 : #6  0x000055e5533478db in Perl_pp_entersub (my_perl=0x55e553f2f010)
 :     at pp_hot.c:2794
 : #7  0x000055e553340316 in Perl_runops_standard (my_perl=0x55e553f2f010)
 :     at run.c:42
 : #8  0x000055e5532c96d6 in Perl_call_sv (my_perl=<optimized out>, 
 :     sv=sv at entry=0x55e5545980c8, flags=flags at entry=13) at perl.c:2775
 : #9  0x00007f93f4c7b371 in e_cb (loop=<optimized out>, w=0x55e554596df0, 
 :     revents=<optimized out>) at EV.xs:235
 : #10 0x00007f93f4c76fb6 in ev_invoke_pending (
 :     loop=0x7f93f4e99d00 <default_loop_struct>) at libev/ev.c:3288
 : #11 0x00007f93f4c8da0d in ev_run (loop=0x7f93f4e99d00 <default_loop_struct>, 
 :     flags=2) at libev/ev.c:3688
 : #12 0x00007f93f4c8eb85 in XS_EV_run (my_perl=<optimized out>, 
 :     cv=<optimized out>) at EV.c:856
 : #13 0x000055e5533478db in Perl_pp_entersub (my_perl=0x55e553f2f010)
 :     at pp_hot.c:2794
 : #14 0x000055e553340316 in Perl_runops_standard (my_perl=0x55e553f2f010)
 :     at run.c:42
 : #15 0x000055e5532d0a9e in S_run_body (oldscope=1, my_perl=0x55e553f2f010)
 :     at perl.c:2460
 : #16 perl_run (my_perl=0x55e553f2f010) at perl.c:2376
 : #17 0x000055e5532ae5ad in main (argc=<optimized out>, argv=<optimized out>, 
 :     env=<optimized out>) at perlmain.c:114

Stretch Aptitude:

 : % aptitude show libssl1.1                     Package: libssl1.1                                          
 : Version: 1.1.0e-1
 : State: installed
 : Automatically installed: no
 : Multi-Arch: same
 : Priority: important
 : Section: libs
 : Maintainer: Debian OpenSSL Team <pkg-openssl-devel at lists.alioth.debian.org>
 : Architecture: amd64
 : Uncompressed Size: 3609 k
 : Depends: libc6 (>= 2.14), debconf (>= 0.5) | debconf-2.0
 : Breaks: salt-common (<= 2016.3.3+ds-3)
 : Description: Secure Sockets Layer toolkit - shared libraries
 :  This package is part of the OpenSSL project's implementation of the SSL and TLS
 :  cryptographic protocols for secure communication over the Internet. 
 :  
 :  It provides the libssl and libcrypto shared libraries.
 : Homepage: https://www.openssl.org/
 : Tags: role::shared-lib

Sid Testrun:

 : % make test TEST_FILES=t/80_ssltest.t
 : PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.20.3/ea6c/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/80_ssltest.t
 : t/80_ssltest.t .. Failed 412/415 subtests 
 : 
 : Test Summary Report
 : -------------------
 : t/80_ssltest.t (Wstat: 139 Tests: 3 Failed: 0)
 :   Non-zero wait status: 139
 :   Parse errors: Bad plan.  You planned 415 tests but ran 3.
 : Files=1, Tests=3,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.08 cusr  0.02 csys =  0.13 CPU)
 : Result: FAIL

Sid Stacktrace:

 : % gdb /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.20.3/ea6c/bin/perl core
 : GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
 : Copyright (C) 2016 Free Software Foundation, Inc.
 : License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 : This is free software: you are free to change and redistribute it.
 : There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 : and "show warranty" for details.
 : This GDB was configured as "x86_64-linux-gnu".
 : Type "show configuration" for configuration details.
 : For bug reporting instructions, please see:
 : <http://www.gnu.org/software/gdb/bugs/>.
 : Find the GDB manual and other documentation resources online at:
 : <http://www.gnu.org/software/gdb/documentation/>.
 : For help, type "help".
 : Type "apropos word" to search for commands related to "word"...
 : Reading symbols from /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.20.3/ea6c/bin/perl...done.
 : [New LWP 5200]
 : [Thread debugging using libthread_db enabled]
 : Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
 : Core was generated by `/home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.20.3/ea6c/bin/p'.
 : Program terminated with signal SIGSEGV, Segmentation fault.
 : #0  0x00007fef4c39dca4 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
 : (gdb) bt
 : #0  0x00007fef4c39dca4 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
 : #1  0x00007fef4c6ad2f2 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #2  0x00007fef4c6ab15f in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #3  0x00007fef4c69148a in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #4  0x00007fef4c6a1a89 in SSL_write ()
 :    from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
 : #5  0x00007fef4c92b6a1 in XS_Net__SSLeay_write (cv=<optimized out>)
 :     at SSLeay.xs:1801
 : #6  0x000055752d9d0f94 in Perl_pp_entersub () at pp_hot.c:2794
 : #7  0x000055752d99dc2a in Perl_runops_debug () at dump.c:2427
 : #8  0x000055752d917e4e in Perl_call_sv (sv=0x55752f98d760, 
 :     flags=flags at entry=13) at perl.c:2775
 : #9  0x00007fef4b77628e in e_cb (loop=<optimized out>, w=<optimized out>, 
 :     revents=<optimized out>) at EV.xs:235
 : #10 0x00007fef4b76d416 in ev_invoke_pending (
 :     loop=0x7fef4b9a5d20 <default_loop_struct>) at libev/ev.c:3288
 : #11 0x00007fef4b79778d in ev_run (loop=0x7fef4b9a5d20 <default_loop_struct>, 
 :     flags=2) at libev/ev.c:3688
 : #12 0x00007fef4b798e03 in XS_EV_run (cv=<optimized out>) at EV.c:856
 : #13 0x000055752d9d0f94 in Perl_pp_entersub () at pp_hot.c:2794
 : #14 0x000055752d99dc2a in Perl_runops_debug () at dump.c:2427
 : #15 0x000055752d921259 in S_run_body (oldscope=1) at perl.c:2460
 : #16 perl_run (my_perl=<optimized out>) at perl.c:2376
 : #17 0x000055752d8f5b8f in main (argc=<optimized out>, argv=<optimized out>, 
 :     env=<optimized out>) at perlmain.c:114

Sid Aptitude:

 : % aptitude show libssl1.1  
 : Package: libssl1.1                       
 : Version: 1.1.0e-1
 : New: yes
 : State: installed
 : Automatically installed: yes
 : Multi-Arch: same
 : Priority: important
 : Section: libs
 : Maintainer: Debian OpenSSL Team <pkg-openssl-devel at lists.alioth.debian.org>
 : Architecture: amd64
 : Uncompressed Size: 3,609 k
 : Depends: libc6 (>= 2.14), debconf (>= 0.5) | debconf-2.0
 : Breaks: salt-common (<= 2016.3.3+ds-3)
 : Description: Secure Sockets Layer toolkit - shared libraries
 :  This package is part of the OpenSSL project's implementation of the SSL and TLS
 :  cryptographic protocols for secure communication over the Internet. 
 :  
 :  It provides the libssl and libcrypto shared libraries.
 : Homepage: https://www.openssl.org/
 : Tags: role::shared-lib

Thanks && Regards,
-- 
andreas



More information about the anyevent mailing list