Subject: ftp(1) abort during download wihtout any message
To: NetBSD amd64 <port-amd64@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-amd64
Date: 12/05/2003 14:19:40
Hi,

To check nfs on our amd64 machine (-current 20031205), i wanted to
download a set of files from and other server (340 files for a total
of 17GB) with ftp(1).

I started the file transfert, but hopefully noticed that it was
incomplete (only 392 files). Indeed, the program stoppped without any
message, and the command status was strange !

njoly@calimero [calimero/ftp]> ftp xxxxxxx.pasteur.fr
Connected to xxxxxxx.pasteur.fr.
220 xxxxxxx.pasteur.fr FTP server (Compaq Tru64 UNIX Version 5.60)
ready.
Name (xxxxxxx.pasteur.fr:guest): guest
331 Password required for guest.
Password:
230 User guest logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /mount/banques_rel/prod/ftp/genbank/release
250 CWD command successful.
ftp> mget *
mget gbbct1.seq.gz [anpqy?]? a
Prompting off for duration of mget.
229 Entering Extended Passive Mode (|||2475|)
150 Opening BINARY mode data connection for gbbct1.seq.gz (157.99.xx.xxx,65137) (70306405 bytes).
100% |*************************************| 68658 KB    7.04 MB/s    00:00 ETA
226 Transfer complete.
70306405 bytes received in 00:09 (7.02 MB/s)
229 Entering Extended Passive Mode (|||2486|)
150 Opening BINARY mode data connection for gbbct2.seq.gz (157.99.xx.xxx,65136) (77990384 bytes).
100% |*************************************| 76162 KB    6.84 MB/s    00:00 ETA
226 Transfer complete.
77990384 bytes received in 00:10 (6.83 MB/s)
[...]
229 Entering Extended Passive Mode (|||1025|)
150 Opening BINARY mode data connection for gbhtc1.seq.gz (157.99.xx.xxx,65141) (34872090 bytes).
100% |*************************************| 34054 KB    7.12 MB/s    00:00 ETA
226 Transfer complete.
34872090 bytes received in 00:04 (7.10 MB/s)
229 Entering Extended Passive Mode (|||1028|)
150 Opening BINARY mode data connection for gbhtc2.seq.gz (157.99.xx.xxx,65140) (39140640 bytes).
njoly@calimero [calimero/ftp]> echo $?
96

The second attempt was unsuccessful too, but, in the mean time, i
traced it. Here follow the end of the trace logging :

[...]
  4252 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7ffffff0b4)
  4252 ftp      GIO   fd 1 read 4 bytes
       "\M^\\^P\0\0"
  4252 ftp      RET   ioctl 0
  4252 ftp      CALL  write(1,0x7f7ffffff0f0,0x50)
  4252 ftp      GIO   fd 1 wrote 80 bytes
       "\r 95% |***********************************  | 18540 KB    4.51 MB/s  \
          00:00 ETA"
  4252 ftp      RET   write 80/0x50
  4252 ftp      CALL  compat_16___sigreturn14(0x7f7ffffff270)
  4252 ftp      RET   compat_16___sigreturn14 -1 errno 22 Invalid argument
  4252 ftp      CALL  exit(0x7f7ffffff270)


Thanks in advance,
Regards.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.