Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 16:42:40 +0200
From:      Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
To:        Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Cc:        Tim Kientzle <kientzle@freebsd.org>, openoffice@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: gunzip | tar reports broken pipe during OOO build on amd64.
Message-ID:  <20090507144240.GA68128@wep4035.physik.uni-wuerzburg.de>
In-Reply-To: <wp5UmpfIZsHLzYW0qzLQXUdVXBo@veJXoSoJtqjaE%2Bn2qYrh3k99%2BAQ>
References:  <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de> <3GBQgy9AhtC1kpgclCTM4BIxKP8@AbNt2aYVonA6XSQc9As8EVwIk24> <20090506032832.GB45796@wep4035.physik.uni-wuerzburg.de> <92cd2ff70905060501vaaf67bdnaee1be72e04f1ef8@mail.gmail.com> <20090506192603.GA56228@wep4035.physik.uni-wuerzburg.de> <4A0265ED.4070407@freebsd.org> <wp5UmpfIZsHLzYW0qzLQXUdVXBo@veJXoSoJtqjaE%2Bn2qYrh3k99%2BAQ>

next in thread | previous in thread | raw e-mail | index | archive | help

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, May 07, 2009 at 10:05:40AM +0400, Eygene Ryabinkin wrote:
> Wed, May 06, 2009 at 09:39:09PM -0700, Tim Kientzle wrote:
> > I tried but could not reproduce your bug using
> > a recent -CURRENT.  I downloaded this file:
> > 
> > http://ftp.cse.yzu.edu.tw/pub/FreeBSD/distfiles/openoffice.org2/OOo_OOH680_m18_source.tar.bz2
> > 
> > and extracted ooo_crystal_images-1.tar.gz
> > and got the same MD5 that Eygene reported.
> > 
> > $ md5 ooo_crystal_images-1.tar.gz
> > MD5 (ooo_crystal_images-1.tar.gz) = ff0d576d4b0e71c268b1516095a3d085
> > 
> > Where did you download your file from?
> 
> Alexey's .tar.gz file should be also fine: he reported the checksum from
> the .tar file, not .tar.gz one:
> -----
> ~/tmp> md5 crystal.tar
> MD5 (crystal.tar) = f9d09511003da0f59d943311a678b94a
> -----
> I have the same MD5 for the .tar file:
> -----
> $ md5 crystal.tar
> MD5 (crystal.tar) = f9d09511003da0f59d943311a678b94a
> -----
> 
> I am not able to reproduce the bug too, so perhaps the output from
> ktrace,
> -----
> ktrace -f gunzip.trace gunzip -c ooo_crystal_images-1.tar.gz | (ktrace -f tar.trace tar -xf -)
> -----
> will be useful for diagnostics.  The files of interest will be
> gunzip.trace and tar.trace.
>
Ok, ktraces/kdumps on my system show that tar is exiting before
the last gunzip's write :(

gunzip.dump.human shows the last successful write on gunzip side and
tar.dump.human shows the read sequence on tar side.
gunzip has written 65536 bytes whereas tar has read 6 x 10240 = 61440 bytes
and has exited thereafter. gunzip has got successful
write operation (65536 bytes).
At last gunzip tries to write 4932 zeros and fails...

The command is exactly as above. FWIW:
~> echo $SHELL
/bin/tcsh

Alexey.

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gunzip.dump.human"

[snip]

       0x0fd0 0603 87f9 1773 ae4b 2b37 a19e ce15 52bc  |.....s.K+7....R.|
       0x0fe0 62b6 b026 c61f acf8 6fbe 1afc 89fe b3fd  |b..&....o.......|
       0x0ff0 7cfd ff8f fc9f 9999 83f5 0fff f74b ff7f  ||............K..|
 64841 gunzip   1241690009.435989 RET   read 30608/0x7790
 64841 gunzip   1241690009.436242 CALL  write(0x1,0x800b02000,0x10000)
 64841 gunzip   1241690009.444528 GIO   fd 1 wrote 4096 bytes
       0x0000 e15b a552 0104 0010 6b0f 00e5 dddd dd14  |.[.R....k.......|
       0x0010 1403 a328 4011 deca 181e 0a24 4088 1840  |...(@......$@..@|
       0x0020 310a 58bc 668e 018d 8e8e 1aa4 d702 2546  |1.X.f.........%F|

[snip]

       0x0fd0 3036 3534 3637 3600 3031 3435 3335 0020  |0654676.014535. |
       0x0fe0 3000 0000 0000 0000 0000 0000 0000 0000  |0...............|
       0x0ff0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
 64841 gunzip   1241690009.444537 RET   write 65536/0x10000
 64841 gunzip   1241690009.444627 CALL  write(0x1,0x800b02000,0x1344)
 64841 gunzip   1241690009.444638 RET   write -1 errno 32 Broken pipe
 64841 gunzip   1241690009.444722 PSIG  SIGPIPE SIG_DFL

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tar.dump.human"

[snip]

       0x0290 1f47 1090 009a 9a9a 62df 1e00 0280 2814  |.G......b.....(.|
       0x02a0 0acc a0c5 00e7 1840 2983 bc13 253c 4319  |.......@)...%<C.|
       0x02b0 b244 c920 2284 a780 845f 2c16            |.D. "...._,.|

 64842 bsdtar   1241690009.436589 RET   write 700/0x2bc
/* 1-st read. */
 64842 bsdtar   1241690009.436595 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.436605 GIO   fd 0 read 4096 bytes
       0x0000 e15b a552 0104 0010 6b0f 00e5 dddd dd14  |.[.R....k.......|
       0x0010 1403 a328 4011 deca 181e 0a24 4088 1840  |...(@......$@..@|
       0x0020 310a 58bc 668e 018d 8e8e 1aa4 d702 2546  |1.X.f.........%F|

[snip]

       0x0fd0 3036 3534 3637 3600 3031 3435 3335 0020  |0654676.014535. |
       0x0fe0 3000 0000 0000 0000 0000 0000 0000 0000  |0...............|
       0x0ff0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
 64842 bsdtar   1241690009.436631 RET   read 10240/0x2800
 64842 bsdtar   1241690009.436638 CALL  write(0x3,0x801069000,0x2ed)
 64842 bsdtar   1241690009.436648 GIO   fd 3 wrote 749 bytes
       0x0000 e15b a552 0104 0010 6b0f 00e5 dddd dd14  |.[.R....k.......|
       0x0010 1403 a328 4011 deca 181e 0a24 4088 1840  |...(@......$@..@|

[snip]

/* 2-nd read. */
 64842 bsdtar   1241690009.437951 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.437961 GIO   fd 0 read 4096 bytes
       0x0000 4211 4e51 6843 dd80 78a8 c501 1e18 1318  |B.NQhC..x.......|
       0x0010 2154 99ea 24fd 01fd 9136 e589 a3b8 32a3  |!T..$....6....2.|
       0x0020 f235 e1e9 734c d81a 6b14 7e04 82a0 268b  |.5..sL..k.~...&.|
[snip]
       0x0fd0 3330 3032 3735 3000 3031 3437 3032 0020  |3002750.014702. |
       0x0fe0 3000 0000 0000 0000 0000 0000 0000 0000  |0...............|
       0x0ff0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
 64842 bsdtar   1241690009.437968 RET   read 10240/0x2800

[snip]

/* 3-d read. */
 64842 bsdtar   1241690009.439181 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.439190 GIO   fd 0 read 4096 bytes
       0x0000 4f3d 9343 d758 bdfc 3cd5 ab1e a3fb ed20  |O=.C.X..<...... |
       0x0010 455e 3f45 4604 9fbf d405 90f0 38e1 1773  |E^?EF.......8..s|
       0x0020 b6f3 ac14 b8e9 3250 283e 9707 86cf 5d3a  |......2P(>....]:|

[snip]

       0x0fd0 77f7 98cd 4624 3140 28fe 8432 0c6f 8665  |w...F$1@(..2.o.e|
       0x0fe0 0d4c 8a97 4624 8f30 c886 bb6f dffe b1b0  |.L..F$.0...o....|
       0x0ff0 b0f0 411c 632c 1249 7df2 c557 f527 8f52  |..A.c,.I}..W.'.R|
 64842 bsdtar   1241690009.439197 RET   read 10240/0x2800

[snip]

/* 4-th read. */
 64842 bsdtar   1241690009.439945 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.439955 GIO   fd 0 read 4096 bytes
       0x0000 0000 0000 0000 0000 0000 0000 0000 0000  |................|
       0x0010 0000 0000 0000 0000 0000 0000 0000 0000  |................|
       0x0020 0000 0000 0000 0000 0000 0000 0000 0000  |................|

[snip]

       0x0fd0 c5e9 d4df e60b 2f9e e1e6 6894 0251 b486  |....../...h..Q..|
       0x0fe0 cd50 d522 b4d6 62a5 1a60 664c e59b 5fd2  |.P."..b..`fL.._.|
       0x0ff0 7979 56a1 6d5a d84e 4356 d713 ff0d bdbe  |yyV.mZ.NCV......|
 64842 bsdtar   1241690009.439962 RET   read 10240/0x2800

[snip]

/* 5-th read. */
 64842 bsdtar   1241690009.441049 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.441059 GIO   fd 0 read 4096 bytes
       0x0000 71f1 e5b8 e9e9 993b 667c 56c1 47b8 b6c5  |q......;f|V.G...|
       0x0010 361b fc38 687d affb 4c9d 0a8f 8951 1b05  |6..8h}..L....Q..|
       0x0020 52f1 95b8 0d7c 1930 1ee2 993e 243e ade0  |R....|.0...>$>..|

[snip]

       0x0fd0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
       0x0fe0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
       0x0ff0 0000 0000 0000 0000 0000 0000 0000 0000  |................|
 64842 bsdtar   1241690009.441065 RET   read 10240/0x2800

[snip]

/* 6-th read. */
 64842 bsdtar   1241690009.442445 CALL  read(0,0x801069000,0x2800)
 64842 bsdtar   1241690009.442455 GIO   fd 0 read 4096 bytes
       0x0000 d357 8185 7ed3 ae16 c5d2 c425 b41c af2f  |.W..~......%.../|
       0x0010 31b8 471e aacc 5053 53eb 7e4d 6dc3 e8d9  |1.G...PSS.~Mm...|
       0x0020 53f5 6f3f 3e8a 94b1 9000 e6af 03cf af11  |S.o?>...........|

[snip]

       0x0fd0 71b9 94bc 06e8 3b15 82e2 13a4 3ced c2af  |q.....;.....<...|
       0x0fe0 f258 57a0 c20b 4081 8069 f18e 7938 334e  |.XW...@..i..y83N|
       0x0ff0 72a0 abca 9f59 10ee 3e12 8a01 b3f7 c13d  |r....Y..>......=|
 64842 bsdtar   1241690009.442462 RET   read 10240/0x2800

[snip]

 64842 bsdtar   1241690009.443046 CALL  futimes(0x3,0x7fffffffe3b0)
 64842 bsdtar   1241690009.443056 RET   futimes 0
 64842 bsdtar   1241690009.443062 CALL  close(0x3)
 64842 bsdtar   1241690009.443069 RET   close 0
 64842 bsdtar   1241690009.443097 CALL  lutimes(0x80101b320,0x7fffffffe3c0)
 64842 bsdtar   1241690009.443104 NAMI  "crystal/vcl/source/src/"
 64842 bsdtar   1241690009.443121 RET   lutimes 0
 64842 bsdtar   1241690009.443128 CALL  lutimes(0x80101b300,0x7fffffffe3c0)
 64842 bsdtar   1241690009.443135 NAMI  "crystal/vcl/source/"
 64842 bsdtar   1241690009.443150 RET   lutimes 0
 64842 bsdtar   1241690009.443156 CALL  lutimes(0x80108e0d0,0x7fffffffe3c0)
 64842 bsdtar   1241690009.443162 NAMI  "crystal/vcl/"
 64842 bsdtar   1241690009.443176 RET   lutimes 0

[snip]

 64842 bsdtar   1241690009.444351 CALL  lutimes(0x80108e060,0x7fffffffe3c0)
 64842 bsdtar   1241690009.444357 NAMI  "crystal/"
 64842 bsdtar   1241690009.444369 RET   lutimes 0
 64842 bsdtar   1241690009.444398 CALL  sigaction(SIG29,0x7fffffffe520,0x7fffffffe500)
 64842 bsdtar   1241690009.444407 RET   sigaction 0
 64842 bsdtar   1241690009.444413 CALL  sigaction(SIGUSR1,0x7fffffffe520,0x7fffffffe500)
 64842 bsdtar   1241690009.444419 RET   sigaction 0
 64842 bsdtar   1241690009.444440 CALL  sigprocmask(SIG_BLOCK,0x8006417e0,0x7fffffffe690)
 64842 bsdtar   1241690009.444448 RET   sigprocmask 0
 64842 bsdtar   1241690009.444455 CALL  sigprocmask(SIG_SETMASK,0x8006417f0,0)
 64842 bsdtar   1241690009.444461 RET   sigprocmask 0
 64842 bsdtar   1241690009.444476 CALL  sigprocmask(SIG_BLOCK,0x8006417e0,0x7fffffffe660)
 64842 bsdtar   1241690009.444482 RET   sigprocmask 0
 64842 bsdtar   1241690009.444488 CALL  sigprocmask(SIG_SETMASK,0x8006417f0,0)
 64842 bsdtar   1241690009.444494 RET   sigprocmask 0
 64842 bsdtar   1241690009.444510 CALL  exit(0)

--/04w6evG8XlLl3ft--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090507144240.GA68128>