-
Notifications
You must be signed in to change notification settings - Fork 580
BBC: Blead Breaks IO::All #18019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see both passing and failing reports from your systems under 5.33.1. What was the difference between those perl builds? For example, knowing what commits you built each of those from would be helpful as a starting point for bisection. |
Bisection points to this commit:
Here is the tail of the bisection output:
@khwilliamson @simcop2387 Can you take a look? Thank you very much. |
That doesn't make sense, IO::All isn't using Safe. |
all the most this change was reverted |
It looks like the build failed at that commit, so the bisection script decided that this was the significant commit. Instead, that commit should be skipped during the bisection so it can resume and continue testing against IO::All. |
This is triggered by:
|
A reproducer:
It seems the patch breaks IO::Handle error() method for regular files. |
89341f8 fix for GH Perl#6799 introduced a regression when calling error() on an IO::Handle object that was opened for reading a regular file: $ perl -e 'open my $f, q{<}, q{/etc/hosts} or die; print qq{error\n} if $f->error' error In case of a regular file opened for reading, IoOFP() returns NULL and PerlIO_error(NULL) reports -1. Compare to the case of a file opened for writing when both IoIFP() and IoOFP() return non-NULL, equaled pointer. This patch fixes handling the case of the NULL output stream. GH Perl#18019
89341f8 fix for GH #6799 introduced a regression when calling error() on an IO::Handle object that was opened for reading a regular file: $ perl -e 'open my $f, q{<}, q{/etc/hosts} or die; print qq{error\n} if $f->error' error In case of a regular file opened for reading, IoOFP() returns NULL and PerlIO_error(NULL) reports -1. Compare to the case of a file opened for writing when both IoIFP() and IoOFP() return non-NULL, equaled pointer. This patch fixes handling the case of the NULL output stream. GH #18019
http://fast-matrix.cpantesters.org/?dist=IO-All;perl=5.33.2;reports=1 is showing all GREEN for IO::All. Closing this ticket. Thank you very much. |
This is a bug report for perl from "Carlos Guevara" [email protected],
generated with the help of perlbug 1.42 running under perl 5.33.1.
[Please describe your issue here]
BBC: Blead Breaks IO::All
Please see http://fast-matrix.cpantesters.org/?dist=IO-All
[Please do not change anything below this line]
Flags:
category=core
severity=low
Site configuration information for perl 5.33.1:
Configured by cpan at Fri Jul 31 09:52:26 EDT 2020.
Summary of my perl5 (revision 5 version 33 subversion 1) configuration:
Commit id: b22e6ad
Platform:
osname=openbsd
osvers=6.7
archname=OpenBSD.amd64-openbsd-thread-multi
uname='openbsd cjg-openbsd6 6.7 generic#5 amd64 '
config_args='-des -Dprefix=
/bin/perl-blead -Dscriptdir=/bin/perl-blead/bin -Dusedevel -Duse64bitall -Duseithreads'hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-pthread -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2'
optimize='-O2'
cppflags='-pthread -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='4.2.1 Compatible OpenBSD Clang 8.0.1 (tags/RELEASE_801/final)'
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 ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lpthread -lm -lutil -lc
perllibs=-lpthread -lm -lutil -lc
libc=/usr/lib/libc.so.96.0
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags=' '
cccdlflags='-DPIC -fPIC '
lddlflags='-shared -fPIC -L/usr/local/lib -fstack-protector-strong'
@inc for perl 5.33.1:
/home/cpan/bin/perl-blead/lib/site_perl/5.33.1/OpenBSD.amd64-openbsd-thread-multi
/home/cpan/bin/perl-blead/lib/site_perl/5.33.1
/home/cpan/bin/perl-blead/lib/5.33.1/OpenBSD.amd64-openbsd-thread-multi
/home/cpan/bin/perl-blead/lib/5.33.1
Environment for perl 5.33.1:
HOME=/home/cpan
LANG (unset)
LANGUAGE (unset)
LC_ALL=C
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/cpan/bin/perl-blead/bin:/home/cpan/bin:/home/cpan/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
PERL_BADLANG (unset)
SHELL=/usr/local/bin/bash
The text was updated successfully, but these errors were encountered: