perl5
perl5 copied to clipboard
BBC: Blead Breaks Test::Strict
This is a bug report for perl from "Carlos Guevara" [email protected], generated with the help of perlbug 1.42 running under perl 5.37.4.
[Please describe your issue here]
BBC: Blead Breaks Test::Strict
Please see http://matrix.cpantesters.org/?dist=Test::Strict
[Please do not change anything below this line]
Flags: category=core severity=low
Site configuration information for perl 5.37.4:
Configured by cpan at Sun Sep 4 21:56:55 EDT 2022.
Summary of my perl5 (revision 5 version 37 subversion 4) configuration: Commit id: 202773ee0ae3fd435fdebeb23c3db2e48a2b0972 Platform: osname=linux osvers=5.15.63-0-lts archname=x86_64-linux uname='linux cjg-alpine3 5.15.63-0-lts #1-alpine smp mon, 29 aug 2022 07:17:28 +0000 x86_64 linux ' config_args='-des -Dprefix=~/bin/perl-blead -Dscriptdir=~/bin/perl-blead/bin -Dusedevel -Duse64bitall' hint=recommended useposix=true d_sigaction=define useithreads=undef usemultiplicity=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define Compiler: cc='cc' ccflags ='-D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' optimize='-O2' cppflags='-D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong' ccversion='' gccversion='11.2.1 20220219' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags =' -fstack-protector-strong -L/usr/local/lib' libpth=/usr/lib /usr/local/lib /lib libs=-lpthread -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc libc=/usr/lib/libc.a so=so useshrplib=false libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags='-Wl,-E' cccdlflags='-fPIC' lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
@INC for perl 5.37.4: /home/cpan/bin/perl-blead/lib/site_perl/5.37.4/x86_64-linux /home/cpan/bin/perl-blead/lib/site_perl/5.37.4 /home/cpan/bin/perl-blead/lib/5.37.4/x86_64-linux /home/cpan/bin/perl-blead/lib/5.37.4
Environment for perl 5.37.4: HOME=/home/cpan LANG=C.UTF-8 LANGUAGE (unset) LC_COLLATE=C LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/home/cpan/bin/perl-blead/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PERL_BADLANG (unset) SHELL=/bin/bash
Pretty sure this is related to fixing up the rules for what happens with exit in BEGIN.
The module is testing what happens if it compiles with -c a program like this:
#!/usr/bin/perl -vw
use strict;
print "Hello world";
in previous perls we would fire INIT blocks even though we had done an exit() in the begin that implements -v. This no longer happens, and this program no longer does a compile test. This is not a bug. The test should be changed to remove the -v.
Bisection points to this commit:
197bb3f4412b47e2f91dcf54c64d12d9fd05967b is the first bad commit
commit 197bb3f4412b47e2f91dcf54c64d12d9fd05967b
Author: Yves Orton <[email protected]>
Date: Mon Aug 29 13:25:56 2022 +0200
Commit: Yves Orton <[email protected]>
CommitDate: Sat Sep 3 10:05:54 2022 +0200
Revert "postpone perl_parse() exit(0) bugfix"
This reverts commit 857320cbf85e762add18885ae8a197b5e0c21b69.
Also reported upstream as https://github.com/manwar/Test-Strict/issues/32.
Pull request submitted upstream at https://github.com/manwar/Test-Strict/pull/33.