Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 21:50:55 +0800
From:      Iblis Lin <iblis@hs.ntnu.edu.tw>
To:        Mark Martinec <Mark.Martinec+freebsd@ijs.si>
Cc:        freebsd-current@freebsd.org
Subject:   Re: r313494 make perl File::Temp broken
Message-ID:  <20170210135054.GB70284@abeing>
In-Reply-To: <e35b9aa96fa8cb62335101df00d3678e@ijs.si>
References:  <20170210130952.GA70284@abeing> <e35b9aa96fa8cb62335101df00d3678e@ijs.si>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 10, 2017 at 02:37:05PM +0100, Mark Martinec wrote:
> 2017-02-10 14:09, Iblis Lin wrote:
> > as not a perl programmer myself. I have no idea what is going on.
> > I found this issue while compiling math/openblas.
> > 
> > [iblis@ns]% uname -a
> > FreeBSD ns 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r313500: Fri Feb 10 
> > 16:39:21
> > CST 2017     root@ns:/usr/obj/usr/src/sys/GENERIC  amd64
> > 
> > [iblis@ns]% cat test.pl
> > use File::Temp qw(tempfile);
> > $tmpf = new File::Temp( UNLINK => 1 );
> > 
> > [iblis@ns]% perl test.pl
> > Error in tempfile() using template /tmp/XXXXXXXXXX: Could not create 
> > temp file
> > /tmp/dI5uhUsijR: Bad file descriptor at test.pl line 2.
> 
> [...]
> 
> > stat("/tmp/",{ mode=drwxrwxrwt 
> > ,inode=24317568,size=1024,blksize=32768}) = 0 (0x0)
> > stat("/tmp/",{ mode=drwxrwxrwt 
> > ,inode=24317568,size=1024,blksize=32768}) = 0 (0x0)
> > openat(AT_FDCWD,"/tmp/Nn0Epra5ff",O_RDWR|O_EXLOCK|O_NOFOLLOW|O_CREAT|O_EXCL,0600) 
> > ERR#9 'Bad file descriptor'
> 
> 
> Perhaps your /tmp is a logical link, and O_NOFOLLOW does not allow that.
> 
>    Mark

hmm... no, it's no a logical link.

I just reverted the file changed in r313494 (sys/kern/vfs_vnops.c), and
perl is happy again.

-- 
Iblis Lin
林峻頤



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170210135054.GB70284>