From owner-freebsd-current@FreeBSD.ORG Thu May 7 14:42:45 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA2AC1065687; Thu, 7 May 2009 14:42:45 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 227E28FC0A; Thu, 7 May 2009 14:42:45 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id A4567A0846; Thu, 7 May 2009 16:42:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 95B30A0845; Thu, 7 May 2009 16:42:41 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 71C1BA0839; Thu, 7 May 2009 16:42:41 +0200 (CEST) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2HF443) with ESMTP id 2009050716424011-8183 ; Thu, 7 May 2009 16:42:40 +0200 Received: by wep4035 (sSMTP sendmail emulation); Thu, 7 May 2009 16:42:40 +0200 Date: Thu, 7 May 2009 16:42:40 +0200 From: Alexey Shuvaev To: Eygene Ryabinkin Message-ID: <20090507144240.GA68128@wep4035.physik.uni-wuerzburg.de> 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> MIME-Version: 1.0 In-Reply-To: Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.19 (2009-01-05) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 05/07/2009 04:42:40 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 05/07/2009 04:42:40 PM, Serialize complete at 05/07/2009 04:42:40 PM Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: Tim Kientzle , openoffice@freebsd.org, freebsd-current@freebsd.org Subject: Re: gunzip | tar reports broken pipe during OOO build on amd64. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2009 14:42:46 -0000 --/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 |.......@)...%....]:| [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--