NetBSD-Bugs archive

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

Re: kern/49847 (tar xzf /zfs/foo.tgz fails reading from zfs but succeeds in pipeline)



The following reply was made to PR kern/49847; it has been noted by GNATS.

From: Jeff Rizzo <riz%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49847 (tar xzf /zfs/foo.tgz fails reading from zfs but succeeds
 in pipeline)
Date: Mon, 20 Apr 2015 13:44:08 -0700

 zfs1$ ktruss tar xzf /zfs/test1/games.tgz
    3502      1 ktruss   fcntl(0x4, 0x3, 0)          = 4194305
    3502      1 ktruss   emul(netbsd)
 gzip:   3502      1 ktruss   fcntl(0x4, 0x4, 0x400001)   = 0
 data stream error  3502      1 ktruss   execve("/home/riz/bin/tar", 
 0x7f7fffffdc38, 0x7f7fffffdc58) Err#2 ENOENT
 
    3502      1 tar      execve("/bin/tar", 0x7f7fffffdc38, 
 0x7f7fffffdc58) JUSTRETURN
 tar:   3502      1 tar      emul(netbsd)
 End of archive volume 1 reached  3502      1 tar      mmap(0, 0x8000, 
 0x3, 0x1002, 0xffffffff, 0, 0) = 0x7f7ff7ff8000
 
    3502      1 tar      open("/etc/ld.so.conf", 0, 0x7f7ff7e12190) Err#2 
 ENOENT
 tar:   3502      1 tar      open("/lib/libutil.so.7", 0, 
 0x2e6c69747562696c) = 3
 Sorry, unable to determine archive format.  3502      1 tar 
 __fstat50(0x3, 0x7f7fffffd3a8) = 0
 
    3502      1 tar      mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 
 0x7f7ff7ff7000
    3502      1 tar      munmap(0x7f7ff7ff7000, 0x1000) = 0
    3502      1 tar      mmap(0, 0x218000, 0x5, 0x15000002, 0x3, 0, 0) = 
 0x7f7ff7800000
    3502      1 tar      mmap(0x7f7ff7a14000, 0x3000, 0x3, 0x12, 0x3, 0, 
 0x14000) = 0x7f7ff7a14000
    3502      1 tar      mmap(0x7f7ff7a17000, 0x1000, 0x3, 0x1012, 
 0xffffffff, 0, 0) = 0x7f7ff7a17000
    3502      1 tar      mprotect(0x7f7ff7815000, 0x1ff000, 0) = 0
    3502      1 tar      close(0x3)                  = 0
    3502      1 tar      open("/lib/libgcc_s.so.1", 0, 
 0x735f63636762696c) = 3
    3502      1 tar      __fstat50(0x3, 0x7f7fffffd3a8) = 0
    3502      1 tar      mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 
 0x7f7ff7ff7000
    3502      1 tar      munmap(0x7f7ff7ff7000, 0x1000) = 0
    3502      1 tar      mmap(0, 0x20c000, 0x5, 0x15000002, 0x3, 0, 0) = 
 0x7f7ff7400000
    3502      1 tar      mmap(0x7f7ff760b000, 0x1000, 0x3, 0x12, 0x3, 0, 
 0xb000) = 0x7f7ff760b000
    3502      1 tar      mmap(0x7f7ff760c000, 0, 0x3, 0x1012, 0xffffffff, 
 0, 0) = 0x7f7ff760c000
    3502      1 tar      mprotect(0x7f7ff740c000, 0x1ff000, 0) = 0
    3502      1 tar      close(0x3)                  = 0
    3502      1 tar      open("/lib/libc.so.12", 0, 0x2e6f732e6362696c) = 3
    3502      1 tar      __fstat50(0x3, 0x7f7fffffd3a8) = 0
    3502      1 tar      mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 
 0x7f7ff7ff7000
    3502      1 tar      munmap(0x7f7ff7ff7000, 0x1000) = 0
    3502      1 tar      mmap(0, 0x370000, 0x5, 0x15000002, 0x3, 0, 0) = 
 0x7f7ff7000000
    3502      1 tar      mmap(0x7f7ff7351000, 0xc000, 0x3, 0x12, 0x3, 0, 
 0x151000) = 0x7f7ff7351000
    3502      1 tar      mmap(0x7f7ff735d000, 0x13000, 0x3, 0x1012, 
 0xffffffff, 0, 0) = 0x7f7ff735d000
    3502      1 tar      mprotect(0x7f7ff7151000, 0x200000, 0) = 0
    3502      1 tar      close(0x3)                  = 0
    3502      1 tar      _lwp_setprivate(0x7f7ff7ffd140) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb60, 
 0x7f7fffffdbd0) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdbd0, 0) = 0
    3502      1 tar      __sysctl(0x7f7ff7123218, 0x2, 0x61fac0, 
 0x7f7fffffdb18, 0, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdbd0) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdbd0, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdbd0) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdbd0, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdbd0) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdbd0, 0) = 0
    3502      1 tar      getrlimit(0x2, 0x7f7fffffdba0) = 0
    3502      1 tar      setrlimit(0x2, 0x7f7fffffdba0) = 0
    3502      1 tar      getrlimit(0x1, 0x7f7fffffdba0) = 0
    3502      1 tar      setrlimit(0x1, 0x7f7fffffdba0) = 0
    3502      1 tar      getrlimit(0x3, 0x7f7fffffdba0) = 0
    3502      1 tar      setrlimit(0x3, 0x7f7fffffdba0) = 0
    3502      1 tar      getrlimit(0x5, 0x7f7fffffdba0) = 0
    3502      1 tar      setrlimit(0x5, 0x7f7fffffdba0) = 0
    3502      1 tar      __sigaction_sigtramp(0x1, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0xf, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0x2, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0x3, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0x18, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0xd, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      __sigaction_sigtramp(0x19, 0x7f7fffffdbb0, 
 0x7f7fffffdbd0, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      open("/dev/tty", 0x2, 0)    = 3
    3502      1 tar      fcntl(0x3, 0x3, 0)          = 2
    3502      1 tar      fcntl(0x3, 0x3, 0)          = 2
    3502      1 tar      open(".", 0, 0x7f7ff70c224a) = 4
    3502      1 tar      __getcwd(0x61fc20, 0x400)   = 9
    3502      1 tar      __sysctl(0x7f7fffffd6c0, 0x2, 0x7f7ff7366028, 
 0x7f7fffffd6d0, 0, 0) = 0
    3502      1 tar      __sysctl(0x7f7fffffd600, 0x2, 0x7f7ff736f248, 
 0x7f7fffffd608, 0, 0) = 0
    3502      1 tar      readlink("/etc/malloc.conf", 0x7f7fffffd700, 
 0x400) Err#2 ENOENT
    3502      1 tar      mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
 0x7f7ff7ff7000
    3502      1 tar      mmap(0, 0x100000, 0x3, 0x14001002, 0xffffffff, 
 0, 0) = 0x7f7ff7b00000
    3502      1 tar      __gettimeofday50(0x7f7fffffdb70, 0) = 0
    3502      1 tar      __sigaction_sigtramp(0x1d, 0x7f7fffffdb40, 
 0x7f7fffffdb60, 0x7f7ff70a0610, 0x2) = 0
    3502      1 tar      open("/zfs/test1/games.tgz", 0, 0x1b6) = 5
    3502      1 tar      pipe()                      = 6, 7
    3502      1 tar      fork()                      = 1770
    3502      1 tar      dup2(0x6, 0x5)              = 5
    3502      1 tar      close(0x6)                  = 0
    3502      1 tar      close(0x7)                  = 0
    3502      1 tar      __fstat50(0x5, 0x61fb40)    = 0
    3502      1 tar      lseek(0x5, 0, 0, 0x1)       Err#29 ESPIPE
    3502      1 tar      read(0x5, 0x620440, 0x7e00) = 0
         ""
    3502      1 tar      write(0x2, 0x7f7fffffd3d0, 0x5) = 5
         "tar: "
    3502      1 tar      write(0x2, 0x7f7fffffd4c0, 0x1f) = 31
         "End of archive volume 1 reached"
    3502      1 tar      write(0x2, 0x61fa87, 0x1)   = 1
         "\n"
    3502      1 tar      write(0x2, 0x7f7fffffd440, 0x5) = 5
         "tar: "
    3502      1 tar      write(0x2, 0x7f7fffffd530, 0x2a) = 42
         "Sorry, unable to determine archive format."
    3502      1 tar      write(0x2, 0x61fa87, 0x1)   = 1
         "\n"
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdb60) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdb60, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdb60) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdb60, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdb60) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdb60, 0) = 0
    3502      1 tar      _lwp_self()                 = 1
    3502      1 tar      __sigprocmask14(0x1, 0x7f7fffffdb20, 
 0x7f7fffffdb60) = 0
    3502      1 tar      __sigprocmask14(0x3, 0x7f7fffffdb60, 0) = 0
    3502      1 tar      exit(0x1)
 zfs1$
 


Home | Main Index | Thread Index | Old Index