NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems unpacking sets with ftp -o



On 7/1/21 1:20 PM, Christos Zoulas wrote:
In article <fc28b3a-374b-7a0-a0db-6e39ad2ebaf%SDF.ORG@localhost>,
RVP  <rvp%SDF.ORG@localhost> wrote:
On Tue, 29 Jun 2021, Louis Guillaume wrote:

./usr/share/locale/zh_CN.GB18030
./usr/share/locale/zh_CN.GB18030/LC_CTYPEgzip: Unexpected end of input

pax: End of archive volume 1 reached
pax: ustar vol 1, 4942 files, 189618300 bytes read, 0 bytes written in 36
secs (5267175 bytes/sec)

ATTENTION! pax archive volume change required.
Ready for archive volume: 2
Input archive name or "." to quit pax.
98% |***************************************************** | 40544 KiB
750.71 KiB/s - stalled -^C
pax: Signal caught, cleaning up.


As if the pipe to pax is misbehaving.

I get:

ftp: Writing `|pax -zrvpe': Interrupted system call
gzip: Unexpected end of input

pax: End of archive volume 1 reached
pax: ustar vol 1, 2927 files, 169593513 bytes read, 0 bytes written in
72 secs (2355465 bytes/sec)

This seems to be caused by the write to the pax pipe being interrupted
by the alarm signal used to print the progress bar. The code should
retry in such cases.

You should file a PR for this. In the mean time, the work-around
is to disable the ftp progress-bar using -V (you already have `pax
-v ...').

Can you ktrace to find what system call gets interrupted?

Thanks,

christos


Hi Christos - Not sure what to pick out of this trace but here's where I see the trouble start (and the data stops) through to the end where I CTRL-C to get out. Thanks for looking,

--
Louis



 24283      1 ftp      GIO   fd 5 read 506 bytes

"\M-0\M-(\M-u\M-^/CP\^_\M-*\M-(\M-u\M-R\M-c\^\\M^@\M-P6S\M-Z\M^Z\M-{\M-7=\0\M-:\M-I\M-/+.\M-e:<\M-EQ\M^A\2403\M-{=`\M-o7\M-Sp9\

\M^_\M-@\M-ndP\^D%\M-\\M-s\M-c\M-cx\M-eI\M-6\^P\M^Q\M-1\M-8\M-1\M-z\M-"\M-I\M-|\M-:\M^SB\M-/t7\M-c\M-eQ\M^PzV\M-;\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-t\M-=\M-2Y\M-e\M-TkH\M-P\^N\

\^UVVP\M-y\M-J\M^?\bFfW\M^M\M-R\^N\nZ\M^H\M-O\M-fQq\M->\M-Z\a0E\M-lb\M-3o\M^Y>q\M-?\240E\M-}\M-z\M-h\M^Qe\M-j|\M-b\M-[]!'\^C@"
 24283      1 ftp      RET   read 8682/0x21ea
 24283      1 ftp      CALL  write(7,0x7a71fcc9aa40,0x4000)
 24283      1 ftp      RET   write -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81c30,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81bec)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81c40,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 1.60 MiB/s \
          00:22 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e10)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  write(2,0x7f7fffb81c00,5)
 24283      1 ftp      GIO   fd 2 wrote 5 bytes
       "ftp: "
 24283      1 ftp      RET   write 5
 24283      1 ftp      CALL  write(2,0x7f7fffb81ce0,0x19)
 24283      1 ftp      GIO   fd 2 wrote 25 bytes
       "Writing `|pax --xz -rvpe'"
 24283      1 ftp      RET   write 25/0x19
 24283      1 ftp      CALL  write(2,0x7a71fb7739be,2)
 24283      1 ftp      GIO   fd 2 wrote 2 bytes
       ": "
 24283      1 ftp      RET   write 2
 24283      1 ftp      CALL  issetugid
 24283      1 ftp      RET   issetugid 0
 24283      1 ftp      CALL  open(0x7f7fffb813e0,0x400000,0x7f7fffb813fb)
 24283      1 ftp      NAMI  "/usr/share/nls/nls.alias.db"
 24283      1 ftp      RET   open -1 errno 2 No such file or directory
 24283      1 ftp      CALL  open(0x7a71fb77affb,0x400000,0)
 24283      1 ftp      NAMI  "/usr/share/nls/nls.alias"
 24283      1 ftp      RET   open 6
 24283      1 ftp      CALL  __fstat50(6,0x7f7fffb81760)
 24283      1 ftp      RET   __fstat50 0
24283 1 ftp CALL mmap(0,0x5f0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,6,0,0)
 24283      1 ftp      RET   mmap 134629990834176/0x7a71fcc7a000
 24283      1 ftp      CALL  close(6)
 24283      1 ftp      RET   close 0
 24283      1 ftp      CALL  munmap(0x7a71fcc7a000,0x5f0)
 24283      1 ftp      RET   munmap 0
 24283      1 ftp      CALL  open(0x7f7fffb81ca0,0x400000,0x3a)
 24283      1 ftp      NAMI  "/usr/share/nls/C/libc.cat"
 24283      1 ftp      RET   open 6
 24283      1 ftp      CALL  __fstat50(6,0x7f7fffb817e0)
 24283      1 ftp      RET   __fstat50 0
24283 1 ftp CALL mmap(0,0x10be,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,6,0,0)
 24283      1 ftp      RET   mmap 134629990830080/0x7a71fcc79000
 24283      1 ftp      CALL  close(6)
 24283      1 ftp      RET   close 0
 24283      1 ftp      CALL  munmap(0x7a71fcc79000,0x10be)
 24283      1 ftp      RET   munmap 0
 24283      1 ftp      CALL  write(2,0x7f7fffb81c30,0x18)
 24283      1 ftp      GIO   fd 2 wrote 24 bytes
       "Interrupted system call\n"
 24283      1 ftp      RET   write 24/0x18
24283 1 ftp CALL __sigaction_sigtramp(SIGINT,0x7f7fffb82210,0x7f7fffb82230,0x7a71fb6a1d50,2)
 24283      1 ftp      RET   __sigaction_sigtramp 0
24283 1 ftp CALL __sigaction_sigtramp(SIGPIPE,0x7f7fffb82210,0x7f7fffb82230,0x7a71fb6a1d50,2)
 24283      1 ftp      RET   __sigaction_sigtramp 0
24283 1 ftp CALL __sigaction_sigtramp(SIGQUIT,0x7f7fffb82210,0x7f7fffb82230,0x7a71fb6a1d50,2)
 24283      1 ftp      RET   __sigaction_sigtramp 0
 24283      1 ftp      CALL  setsockopt(5,6,1,0x7f7fffb8223c,4)
 24283      1 ftp      RET   setsockopt 0
 24283      1 ftp      CALL  close(5)
 24283      1 ftp      RET   close 0
 24283      1 ftp      CALL  close(7)
 24283      1 ftp      RET   close 0
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 1.20 MiB/s \
          00:29 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 985.42 KiB/s \
          00:36 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 821.20 KiB/s \
          00:44 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 703.91 KiB/s \
          00:51 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 615.93 KiB/s \
          00:59 ETA"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 547.50 KiB/s \
        - stalled -"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 492.75 KiB/s \
        - stalled -"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 447.96 KiB/s \
        - stalled -"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGALRM caught handler=0x9bc1895a mask=(): code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
 24283      1 ftp      CALL  __gettimeofday50(0x7f7fffb81ca0,0)
 24283      1 ftp      RET   __gettimeofday50 0
 24283      1 ftp      CALL  ioctl(1,TIOCGPGRP,0x7f7fffb81c5c)
 24283      1 ftp      GIO   fd 1 read 4 bytes
       "\M-[^\0\0"
 24283      1 ftp      RET   ioctl 0
 24283      1 ftp      CALL  write(1,0x7f7fffb81cb0,0x8a)
 24283      1 ftp      GIO   fd 1 wrote 138 bytes
"\r 11% |********** | 4928 KiB 410.63 KiB/s \
        - stalled -"
 24283      1 ftp      RET   write 138/0x8a
 24283      1 ftp      CALL  setcontext(0x7f7fffb81e80)
 24283      1 ftp      RET   setcontext JUSTRETURN
 24283      1 ftp      CALL  __wait450(0x6139,0x7f7fffb8222c,0,0)
 24283      1 ftp      RET   __wait450 -1 errno 4 Interrupted system call
24283 1 ftp PSIG SIGINT caught handler=0x9bc1980b mask=(): code=SI_NOINFO
 24283      1 ftp      CALL  __setitimer50(0,0x7f7fffb81dc0,0)
 24283      1 ftp      RET   __setitimer50 0
 24283      1 ftp      CALL  write(1,0x9bc20863,1)
 24283      1 ftp      GIO   fd 1 wrote 1 bytes
       "\n"
 24283      1 ftp      RET   write 1
 24283      1 ftp      CALL  __sigprocmask14(3,0x9be2e048,0)
 24283      1 ftp      RET   __sigprocmask14 0
24283 1 ftp CALL __sigaction_sigtramp(SIGINT,0x7f7fffb83a20,0x7f7fffb83a40,0x7a71fb6a1d50,2)
 24283      1 ftp      RET   __sigaction_sigtramp 0
 24283      1 ftp      CALL  _lwp_self
 24283      1 ftp      RET   _lwp_self 1
 24283      1 ftp      CALL  _lwp_kill(1,2)
 24283      1 ftp      RET   _lwp_kill 0
24283 1 ftp PSIG SIGINT SIG_DFL: code=SI_LWP sent by pid=24283, uid=0)

Home | Main Index | Thread Index | Old Index