Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 523 forks source link

perlbug@perl.com #5135

Closed p5pRT closed 20 years ago

p5pRT commented 22 years ago

Migrated from rt.perl.org#8670 (status was 'resolved')

Searchable as RT8670$

p5pRT commented 22 years ago

From marcelgr@chello.at

Created by marcel.gruenauer@chello.at

Problem compiling perl@​14833 on OS X 10.1.3 on a Powerbook G4.

$ ./Configure -des -Dusedevel -Dprefix=/usr/local/devperl; make all test

ext/POSIX/t/posix...................FAILED at test 10

lib/File/Temp/t/security............uid=3023 topuid=10 $\<=501 path='/' at ../lib/File/Temp.pm line 659   File​::Temp​::_is_safe('/'\,'SCALAR(0x2c00b0)') called at ../lib/File/Temp.pm line 757   File​::Temp​::_is_verysafe('/tmp/'\,'SCALAR(0x2c00b0)') called at ../lib/File/Temp.pm line 430   File​::Temp​::_gettemp('/tmp/tmpXXXXX'\,'open'\,1\,'mkdir'\,0\,'unlink_on_close'\,0\,'suffixlen'\,0\,...) called at ../lib/File/Temp.pm line 1057   File​::Temp​::tempfile('tmpXXXXX'\,'DIR'\,'/tmp'\,'UNLINK'\,1) called at ../lib/File/Temp/t/security.t line 100   eval {...} called at ../lib/File/Temp/t/security.t line 100   main​::test_security(0) called at ../lib/File/Temp/t/security.t line 72 uid=3023 topuid=10 $\<=501 path='/' at ../lib/File/Temp.pm line 659   File​::Temp​::_is_safe('/'\,'SCALAR(0x2fa30c)') called at ../lib/File/Temp.pm line 757   File​::Temp​::_is_verysafe(.\,'SCALAR(0x2fa30c)') called at ../lib/File/Temp.pm line 430   File​::Temp​::_gettemp('tmpXXXXX'\,'open'\,1\,'mkdir'\,0\,'unlink_on_close'\,0\,'suffixlen'\,0\,...) called at ../lib/File/Temp.pm line 1057   File​::Temp​::tempfile('tmpXXXXX'\,'UNLINK'\,1) called at ../lib/File/Temp/t/security.t line 125   eval {...} called at ../lib/File/Temp/t/security.t line 125   main​::test_security(0) called at ../lib/File/Temp/t/security.t line 72 ok

So the File​::Temp test gives a warning but is 'ok'\, but the POSIX test definitely fails.

Perl Info ``` Flags: category=core severity=low Site configuration information for perl v5.6.0: Configured by root at Sun Sep 2 17:20:42 PDT 2001. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=darwin, osvers=1.4, archname=darwin uname='darwin law 1.4 darwin kernel version 1.3: sun jul 22 16:20:35 pdt 2001; aramesh:buildobjrelease_ppc power macintosh powerpc ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='cc', optimize='-O3', gccversion=Apple devkit-based CPP 6.0 cppflags='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing' ccflags ='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing' stdchar='char', d_stdstdio=undef, usevfork=true intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='' libpth=/usr/lib libs=-lm -lc libc=/System/Library/Frameworks/System.framework/System, so=dylib, useshrplib=true, libperl=libperl.dylib Dynamic Linking: dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-bundle -flat_namespace -undefined suppress' Locally applied patches: @INC for perl v5.6.0: /sw/lib/perl5/darwin /sw/lib/perl5 /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl . Environment for perl v5.6.0: DYLD_LIBRARY_PATH (unset) HOME=/Users/marcelgr LANG (unset) LANGUAGE (unset) LC_ALL=C LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/sw/bin:/sw/sbin:/Users/marcelgr/bin:/usr/local/bin:/usr/local/pgsql/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin PERL5LIB=/sw/lib/perl5 PERL_BADLANG (unset) SHELL=/usr/bin/bash ```
p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

On Monday\, February 25\, 2002\, at 04​:44 PM\, Marcel Grunauer wrote​:

$ ./Configure -des -Dusedevel -Dprefix=/usr/local/devperl; make all test

ext/POSIX/t/posix...................FAILED at test 10

Hi!

This is a known deficiency of MacOS X. There's unfortunately nothing we can do about it.

Sorry.

Regards\,

Kay

p5pRT commented 22 years ago

From @schwern

On Mon\, Feb 25\, 2002 at 05​:31​:26PM +0100\, Kay Röpke wrote​:

On Monday\, February 25\, 2002\, at 04​:44 PM\, Marcel Grunauer wrote​:

$ ./Configure -des -Dusedevel -Dprefix=/usr/local/devperl; make all test

ext/POSIX/t/posix...................FAILED at test 10

Hi!

This is a known deficiency of MacOS X. There's unfortunately nothing we can do about it.

There is\, we can declare the test TODO on MacOS X so we don't keep getting bug reports. We'll only hear about it when OS X fixes its POSIX signal handling.

Marcel\, if I could see the full posix.t output I'll rig up a proper skip.

--

Michael G. Schwern \schwern@&#8203;pobox\.com http​://www.pobox.com/~schwern/ Perl Quality Assurance \perl\-qa@&#8203;perl\.org Kwalitee Is Job One I'm exploring my nipples.

p5pRT commented 22 years ago

From @timj

On Mon\, 25 Feb 2002\, Marcel Grunauer wrote​:

~s perl@​14833 fails tests on OS X 10.1.3 on Powerbook G4 This is a bug report for perl from marcel.gruenauer@​chello.at\, generated with the help of perlbug 1.28 running under perl v5.6.0.

----------------------------------------------------------------- [Please enter your report here]

Problem compiling perl@​14833 on OS X 10.1.3 on a Powerbook G4.

$ ./Configure -des -Dusedevel -Dprefix=/usr/local/devperl; make all test

ext/POSIX/t/posix...................FAILED at test 10

lib/File/Temp/t/security............uid=3023 topuid=10 $\<=501 path='/' at ../lib/File/Temp.pm line 659 File​::Temp​::_is_safe('/'\,'SCALAR(0x2c00b0)') called at ../lib/File/Temp.pm line 757 File​::Temp​::_is_verysafe('/tmp/'\,'SCALAR(0x2c00b0)') called at ../lib/File/Temp.pm line 430 File​::Temp​::_gettemp('/tmp/tmpXXXXX'\,'open'\,1\,'mkdir'\,0\,'unlink_on_close'\,0\,'suffixlen'\,0\,...) called at ../lib/File/Temp.pm line 1057 File​::Temp​::tempfile('tmpXXXXX'\,'DIR'\,'/tmp'\,'UNLINK'\,1) called at ../lib/File/Temp/t/security.t line 100 eval {...} called at ../lib/File/Temp/t/security.t line 100 main​::test_security(0) called at ../lib/File/Temp/t/security.t line 72 uid=3023 topuid=10 $\<=501 path='/' at ../lib/File/Temp.pm line 659 File​::Temp​::_is_safe('/'\,'SCALAR(0x2fa30c)') called at ../lib/File/Temp.pm line 757 File​::Temp​::_is_verysafe(.\,'SCALAR(0x2fa30c)') called at ../lib/File/Temp.pm line 430 File​::Temp​::_gettemp('tmpXXXXX'\,'open'\,1\,'mkdir'\,0\,'unlink_on_close'\,0\,'suffixlen'\,0\,...) called at ../lib/File/Temp.pm line 1057 File​::Temp​::tempfile('tmpXXXXX'\,'UNLINK'\,1) called at ../lib/File/Temp/t/security.t line 125 eval {...} called at ../lib/File/Temp/t/security.t line 125 main​::test_security(0) called at ../lib/File/Temp/t/security.t line 72 ok

So the File​::Temp test gives a warning but is 'ok'\, but the POSIX test definitely fails.

Sorry for the long delay in replying.

File​::Temp is complaining that your root directory is not owned by a user that it deems to have root privilige. Your root is owned by uid 3023. Is uid 3023 a root-type user on OS X? If so we need to tweak the way that topuid is determined (currently uid\<10 is the clause).

There is a related problem in that the test should fail rather than pass and I'm not sure why it doesn't (since the directory is unsafe after all). I'll take a look at that and try to come up with a fix.

-- Tim Jenness JAC software http​://www.jach.hawaii.edu/~timj