From owner-freebsd-stable@FreeBSD.ORG Thu Dec 23 10:30:48 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A209D1065674 for ; Thu, 23 Dec 2010 10:30:48 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id 4EE648FC1D for ; Thu, 23 Dec 2010 10:30:47 +0000 (UTC) Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta09.westchester.pa.mail.comcast.net with comcast id maJF1f0050QuhwU59aWoMZ; Thu, 23 Dec 2010 10:30:48 +0000 Received: from koitsu.dyndns.org ([98.248.34.134]) by omta02.westchester.pa.mail.comcast.net with comcast id maWb1f00A2tehsa3NaWfiq; Thu, 23 Dec 2010 10:30:45 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 232E29B427; Thu, 23 Dec 2010 02:30:34 -0800 (PST) Date: Thu, 23 Dec 2010 02:30:34 -0800 From: Jeremy Chadwick To: Alex Kozlov Message-ID: <20101223103034.GA46413@icarus.home.lan> References: <20101223091517.GA2591@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101223091517.GA2591@ravenloft.kiev.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: 8.2-PRERELEASE: bsdtar does not recognise xz -z9 compression X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 10:30:48 -0000 On Thu, Dec 23, 2010 at 11:15:17AM +0200, Alex Kozlov wrote: > Hi, stable > > Can anyone reproduce this? > > $uname > FreeBSD 8.2-PRERELEASE #0: Thu Dec 23 10:11:09 i386 > $cd /tmp > $dd if=/dev/random of=junk bs=1024 count=1 > 1+0 records in > 1+0 records out > 1024 bytes transferred in 0.000077 secs (13297112 bytes/sec) > $tar cvf junk.tar junk > a junk > $xz -z9ck junk.tar >junk-z9.tar.xz > $xz -ck junk.tar >junk.tar.xz > $file junk.tar.xz junk-z9.tar.xz > junk.tar.xz: XZ compressed data > junk-z9.tar.xz: XZ compressed data > $tar tvf junk.tar.xz > -rw-r--r-- 0 kozlov kozlov 1024 Dec 23 10:52 junk > $tar tvf junk-z9.tar.xz > tar: Unrecognized archive format > tar: Error exit delayed from previous errors. > $xzcat junk.tar.xz>1 > $xzcat junk-z9.tar.xz>2 > $md5 -r junk.tar 1 2 > d2f8de384f6dc1b3969c76ce7fe6ff00 junk.tar > d2f8de384f6dc1b3969c76ce7fe6ff00 1 > d2f8de384f6dc1b3969c76ce7fe6ff00 2 I can reproduce this problem on RELENG_8 dated November 27th, with libarchive.so.5 confirmed to be linked to liblzma.so.5. The problem happens with any xz compression level 7 or higher. Verification: $ for i in {1..9}; do echo "==> Testing compression level $i" ; rm -f junk* ; dd if=/dev/random of=junk bs=1024 count=1 2>/dev/null ; tar cf junk.tar junk ; xz -z$i -ck junk.tar > junk.tar.xz ; file -z junk.tar.xz ; tar tvf junk.tar.xz ; echo ; done ==> Testing compression level 1 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 2 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 3 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 4 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 5 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 6 junk.tar.xz: POSIX tar archive (XZ compressed data) -rw------- 0 jdc users 1024 23 Dec 02:30 junk ==> Testing compression level 7 junk.tar.xz: POSIX tar archive (XZ compressed data) tar: Unrecognized archive format tar: Error exit delayed from previous errors. ==> Testing compression level 8 junk.tar.xz: POSIX tar archive (XZ compressed data) tar: Unrecognized archive format tar: Error exit delayed from previous errors. ==> Testing compression level 9 junk.tar.xz: POSIX tar archive (XZ compressed data) tar: Unrecognized archive format tar: Error exit delayed from previous errors. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |