Closed p5pRT closed 4 years ago
The tests for IO::Die fail on 5.24 in El Capitan. The failure is in test_chown().
The issue is NOT in IO::Die; I tried the Perl built-in at that point in the tests and found the same failure.
On Sat\, Nov 12\, 2016 at 05:54:18PM -0800\, felipe@felipegasper.com (via RT) wrote:
[Please describe your issue here]
The tests for IO::Die fail on 5.24 in El Capitan. The failure is in test_chown().
The issue is NOT in IO::Die; I tried the Perl built-in at that point in the tests and found the same failure.
What was that failure in the built-in?
Tony
The RT System itself - Status changed from 'new' to 'open'
On Sun\, 13 Nov 2016 01:54:18 GMT\, felipe@felipegasper.com wrote:
This is a bug report for perl from felipe@felipegasper.com\, generated with the help of perlbug 1.39 running under perl 5.10.1.
----------------------------------------------------------------- [Please describe your issue here]
The tests for IO::Die fail on 5.24 in El Capitan. The failure is in test_chown().
The issue is NOT in IO::Die; I tried the Perl built-in at that point in the tests and found the same failure.
Could you supply the output of 'perl -V' for that machine?
Thank you very much.
-- James E Keenan (jkeenan@cpan.org)
On Nov 12\, 2016\, at 10:27 PM\, James E Keenan via RT \perlbug\-followup@​perl\.org wrote:
Could you supply the output of 'perl -V' for that machine?
Thank you very much.
perl -V Summary of my perl5 (revision 5 version 24 subversion 0) configuration:
Platform: osname=darwin\, osvers=15.4.0\, archname=darwin-thread-multi-2level uname='darwin teneleven-slave.macports.org 15.4.0 darwin kernel version 15.4.0: fri feb 26 22:08:05 pst 2016; root:xnu-3248.40.184~3release_x86_64 x86_64 ' config_args='-des -Dprefix=/opt/local -Dscriptdir=/opt/local/bin -Dvendorprefix=/opt/local -Dusemultiplicity=y -Dusethreads -Duseshrplib -Dcc=/usr/bin/clang -Dman1ext=1pm -Dman3ext=3pm -Dman1dir=/opt/local/share/man/man1p -Dman3dir=/opt/local/share/man/man3p -Dsitebin=/opt/local/libexec/perl5.24/sitebin -Dsiteman1dir=/opt/local/share/perl5.24/siteman/man1 -Dsiteman3dir=/opt/local/share/perl5.24/siteman/man3 -Dvendorbin=/opt/local/libexec/perl5.24 -Dvendorman1dir=/opt/local/share/perl5.24/man/man1 -Dvendorman3dir=/opt/local/share/perl5.24/man/man3 -Dpager=/usr/bin/less -sR -Dperlpath=/opt/local/bin/perl5.24 -Dstartperl=#!/opt/local/bin/perl5.24 -Acppflags=-I/opt/local/include -Accflags=-pipe -Os -Aldflags=-L/opt/local/lib -Wl\,-headerpad_max_install_names ' hint=recommended\, useposix=true\, d_sigaction=define useithreads=define\, usemultiplicity=define use64bitint=define\, use64bitall=define\, uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler: cc='/usr/bin/clang'\, ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.11 -pipe -Os -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV'\, optimize='-O3'\, cppflags='-I/opt/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=10.11 -pipe -Os -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include' ccversion=''\, gccversion='4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)'\, 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='/usr/bin/clang'\, ldflags =' -mmacosx-version-min=10.11 -L/opt/local/lib -Wl\,-headerpad_max_install_names -fstack-protector-strong' libpth=/opt/local/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib libs=-lpthread -lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-lpthread -ldl -lm -lutil -lc libc=\, so=dylib\, useshrplib=true\, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs\, dlext=bundle\, d_dlsymun=undef\, ccdlflags=' ' cccdlflags=' '\, lddlflags=' -mmacosx-version-min=10.11 -bundle -undefined dynamic_lookup -L/opt/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under darwin Compiled at May 12 2016 00:02:54 @INC: /opt/local/lib/perl5/site_perl/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.24 /opt/local/lib/perl5/vendor_perl/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.24 /opt/local/lib/perl5/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/5.24 .
On Nov 12\, 2016\, at 10:06 PM\, Tony Cook via RT \perlbug\-followup@​perl\.org wrote:
On Sat\, Nov 12\, 2016 at 05:54:18PM -0800\, felipe@felipegasper.com (via RT) wrote:
[Please describe your issue here]
The tests for IO::Die fail on 5.24 in El Capitan. The failure is in test_chown().
The issue is NOT in IO::Die; I tried the Perl built-in at that point in the tests and found the same failure.
What was that failure in the built-in?
Invalid argument
(To get the test to run you have to be running as root\, of course.)
-FG
On Sat\, 12 Nov 2016 20:24:35 -0800\, felipe@felipegasper.com wrote:
On Nov 12\, 2016\, at 10:06 PM\, Tony Cook via RT \<perlbug- followup@perl.org> wrote:
On Sat\, Nov 12\, 2016 at 05:54:18PM -0800\, felipe@felipegasper.com (via RT) wrote:
[Please describe your issue here]
The tests for IO::Die fail on 5.24 in El Capitan. The failure is in test_chown().
The issue is NOT in IO::Die; I tried the Perl built-in at that point in the tests and found the same failure.
What was that failure in the built-in?
Invalid argument
(To get the test to run you have to be running as root\, of course.)
chown works fine for me on OS X El Capitan:
neptune:perl tony$ ls -lnd . drwxr-xr-x 303 501 20 10302 14 Nov 10:20 . neptune:perl tony$ ls -ld foo -rw-r--r-- 1 root staff 0 14 Nov 10:20 foo neptune:perl tony$ sudo ~/perl/5.24.0/bin/perl -e 'chown(501\, -1\, "foo") or die "chown: $!"' neptune:perl tony$ ls -ln foo -rw-r--r-- 1 501 20 0 14 Nov 10:20 foo neptune:perl tony$ ~/perl/5.24.0/bin/perl -v
This is perl 5\, version 24\, subversion 0 (v5.24.0) built for darwin-2level
Copyright 1987-2016\, Larry Wall
... neptune:perl tony$ ls -l foo -rw-r--r-- 1 tony staff 0 14 Nov 10:20 foo neptune:perl tony$ uname -a Darwin neptune.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Sep 1 15:01:16 PDT 2016; root:xnu-3248.60.11~2/RELEASE_X86_64 x86_64
You've apparently debugged this enough to find out what the parameters to chown() are\, but haven't provided that information.
Please provide a simple self-contained sample that demonstrates the problem.
Tony
On Nov 13\, 2016\, at 6:27 PM\, Tony Cook via RT \perlbug\-followup@​perl\.org wrote:
You've apparently debugged this enough to find out what the parameters to chown() are\, but haven't provided that information.
Please provide a simple self-contained sample that demonstrates the problem.
=============== use File::Temp;
my $dummy = 'nobody';
my $nobody_gid = ( getgrnam $dummy )[2]; print "GID: [$nobody_gid]\n";
my ( $fh\, $file ) = File::Temp::tempfile( CLEANUP => 1 );
It works in 5.22 but is broken in 5.24:
=============== root@Macintosh-4 20:14:38 ~/code/io-die
perl5.22 ../test_chown_rt_130080.pl GID: [4294967294] -rw------- 1 root nobody 0 13 Nov 20:14 /tmp/5lCGpVMKOS sh: pretty_exit_status: command not found
root@Macintosh-4 20:14:57 ~/code/io-die
perl5.24 ../test_chown_rt_130080.pl GID: [4294967294] -rw------- 1 root wheel 0 13 Nov 20:15 /tmp/AHvWxrjLZn chown fh: Invalid argument at ../test_chown_rt_130080.pl line 11. ...propagated at ../test_chown_rt_130080.pl line 14. sh: pretty_exit_status: command not found
Looks like fchown() underneath isnāt happy?
-FG
On Sun\, 13 Nov 2016 17:16:17 -0800\, felipe@felipegasper.com wrote:
Looks like fchown() underneath isnāt happy?
It turns out this is a duplicate of #128967
This has been fixed in blead\, but not in maint-5.24.
The fix is listed in the 5.24 votes file\, but I'm not sure whether maint-5.24 is considered frozen.
Tony
On 11/14/2016 11:15 PM\, Tony Cook via RT wrote:
On Sun\, 13 Nov 2016 17:16:17 -0800\, felipe@felipegasper.com wrote:
Looks like fchown() underneath isnāt happy? It turns out this is a duplicate of #128967
This has been fixed in blead\, but not in maint-5.24.
The fix is listed in the 5.24 votes file\, but I'm not sure whether maint-5.24 is considered frozen.
5.24.1 is frozen to include just security fixes. 5.24.2 has yet to be voted fully on.
Tony
--- via perlbug: queue: perl5 status: open https://rt-archive.perl.org/perl5/Ticket/Display.html?id=130080
This works in 5.26. Closing.
Oops I canāt close. @toddr, this can be closed.
Migrated from rt.perl.org#130080 (status was 'open')
Searchable as RT130080$