r313495 make perl File::Temp broken

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Fri Feb 10 18:39:03 UTC 2017


> On Feb 10, 2017, at 05:55, Iblis Lin <iblis at hs.ntnu.edu.tw> wrote:
> 
> I just found i miss-typed the revision number in subject.
> It's r313495.
> 
> (https://svnweb.freebsd.org/base/head/sys/kern/vfs_vnops.c?r1=313495&r2=313494&pathrev=313495)
> 
> On Fri, Feb 10, 2017 at 09:09:52PM +0800, Iblis Lin wrote:
>> Hi,
>> 
>> as not a perl programmer myself. I have no idea what is going on.
>> I found this issue while compiling math/openblas.
>> 
>> [iblis at ns]% uname -a
>> FreeBSD ns 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r313500: Fri Feb 10 16:39:21
>> CST 2017     root at ns:/usr/obj/usr/src/sys/GENERIC  amd64
>> 
>> [iblis at ns]% cat test.pl
>> use File::Temp qw(tempfile);
>> $tmpf = new File::Temp( UNLINK => 1 );
>> 
>> [iblis at 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.
>> 
>> 
>> And part of truss's output:
>> 
>> close(3)                                         = 0 (0x0)
>> 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'
>> stat("/usr/share/nls/C/libc.cat",0x7fffffffdcf8) ERR#2 'No such file or directory'
>> stat("/usr/share/nls/libc/C",0x7fffffffdcf8)     ERR#2 'No such file or directory'
>> stat("/usr/local/share/nls/C/libc.cat",0x7fffffffdcf8) ERR#2 'No such file or directory'
>> stat("/usr/local/share/nls/libc/C",0x7fffffffdcf8) ERR#2 'No such file or directory'
>> Error in tempfile() using template /tmp/XXXXXXXXXX: Could not create temp file /tmp/Nn0Epra5ff: Bad file descriptor at test.pl line 2.
>> write(2,"Error in tempfile() using templa"...,135) = 135 (0x87)

Hi,
	kib@ has a patch out for another related issue that was reported with dhclient — please give his patch a shot: https://lists.freebsd.org/pipermail/freebsd-current/2017-February/064780.html .
Cheers,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20170210/b621f822/attachment.sig>


More information about the freebsd-current mailing list