fetch is waiting on input on stdin
Matthias Apitz
guru at unixarea.de
Fri Jan 12 12:09:47 UTC 2018
El día viernes, enero 12, 2018 a las 09:45:56a. m. +0100, Matthias Apitz escribió:
>
> Hello,
>
> This is on:
>
> FreeBSD c720-r314251 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r314251M: Fri Jun 30 08:50:03 CEST 2017 guru at c720-r314251:/usr/obj/usr/src/sys/GENERIC amd64
>
> Yesterday I was building some port which fetches the disfiles like this
> command:
>
>
> # fetch ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse.org/tools/cdt/releases/9.0/sr1/features/org.eclipse.cdt.msw_9.0.1.201607151550.jar
>
> The fetch was hanging for ever. My first thinking was DNS, but then I monitored
> the fetch cmd with truss(1) and saw, that it was awaiting STDIN input.
>
> Only using 'make < /dev/null' was able to fetch all the distfiles. Is
> this something new or some bug?
>
I have here the relevant part of the sys calls:
- connect to port 21
- FTP server sends greeting
- fetch reads from stdin until EOF seen
- fetch sends FTP login and password
connect(3,{ AF_INET 137.226.34.227:21 },16) = 0 (0x0)
fcntl(3,F_SETFD,FD_CLOEXEC) = 0 (0x0)
setsockopt(0x3,0xffff,0x800,0x7fffffffdc7c,0x4) = 0 (0x0)
read(3,"2",1) = 1 (0x1)
read(3,"2",1) = 1 (0x1)
read(3,"0",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"W",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3,"l",1) = 1 (0x1)
read(3,"c",1) = 1 (0x1)
read(3,"o",1) = 1 (0x1)
read(3,"m",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"t",1) = 1 (0x1)
read(3,"o",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"S",1) = 1 (0x1)
read(3,"u",1) = 1 (0x1)
read(3,"n",1) = 1 (0x1)
read(3,"S",1) = 1 (0x1)
read(3,"I",1) = 1 (0x1)
read(3,"T",1) = 1 (0x1)
read(3,"E",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"C",1) = 1 (0x1)
read(3,"E",1) = 1 (0x1)
read(3,"U",1) = 1 (0x1)
read(3,"R",1) = 1 (0x1)
read(3,"\r",1) = 1 (0x1)
read(3,"\n",1) = 1 (0x1)
fcntl(0,F_GETFL,) = 2 (0x2)
fstat(0,{ mode=crw--w---- ,inode=96,size=0,blksize=4096 }) = 0 (0x0)
ioctl(0,TIOCGETA,0xffffd660) = 0 (0x0)
lseek(0,0x0,SEEK_SET) = 0 (0x0)
read(0,0x801a85000,4096) = 0 (0x0)
close(0) = 0 (0x0)
poll({ 3/POLLOUT|POLLERR },1,100000) = 1 (0x1)
writev(0x3,0x7fffffffdb50,0x2) = 16 (0x10) (USER anonymous\r\n)
read(3,"3",1) = 1 (0x1)
read(3,"3",1) = 1 (0x1)
read(3,"1",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"P",1) = 1 (0x1)
read(3,"l",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3,"a",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"p",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3,"c",1) = 1 (0x1)
read(3,"i",1) = 1 (0x1)
read(3,"f",1) = 1 (0x1)
read(3,"y",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"t",1) = 1 (0x1)
read(3,"h",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"p",1) = 1 (0x1)
read(3,"a",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"w",1) = 1 (0x1)
read(3,"o",1) = 1 (0x1)
read(3,"r",1) = 1 (0x1)
read(3,"d",1) = 1 (0x1)
read(3,".",1) = 1 (0x1)
read(3,"\r",1) = 1 (0x1)
read(3,"\n",1) = 1 (0x1)
getlogin(0x800ddfa10,0x21) = 0 (0x0)
__sysctl(0x7fffffffdc90,0x2,0x7fffffffdd65,0x7fffffffdc88,0x0,0x0) = 0 (0x0)
poll({ 3/POLLOUT|POLLERR },1,100000) = 1 (0x1)
writev(0x3,0x7fffffffdb50,0x2) = 25 (0x19) (PASS guru at r314251-amd64\r\n)
read(3,"2",1) = 1 (0x1)
read(3,"3",1) = 1 (0x1)
read(3,"0",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"L",1) = 1 (0x1)
read(3,"o",1) = 1 (0x1)
read(3,"g",1) = 1 (0x1)
read(3,"i",1) = 1 (0x1)
read(3,"n",1) = 1 (0x1)
read(3," ",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"u",1) = 1 (0x1)
read(3,"c",1) = 1 (0x1)
read(3,"c",1) = 1 (0x1)
read(3,"e",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"s",1) = 1 (0x1)
read(3,"f",1) = 1 (0x1)
read(3,"u",1) = 1 (0x1)
read(3,"l",1) = 1 (0x1)
read(3,".",1) = 1 (0x1)
read(3,"\r",1) = 1 (0x1)
read(3,"\n",1) = 1 (0x1)
--
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20180112/d919f7f3/attachment.sig>
More information about the freebsd-questions
mailing list