From owner-svn-src-head@FreeBSD.ORG Fri Apr 10 17:25:28 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42AF6580; Fri, 10 Apr 2015 17:25:28 +0000 (UTC) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anubis.delphij.net", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 226B68E8; Fri, 10 Apr 2015 17:25:27 +0000 (UTC) Received: from zeta.ixsystems.com (unknown [12.229.62.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id E7F1C12674; Fri, 10 Apr 2015 10:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphij.net; s=anubis; t=1428686721; x=1428701121; bh=vqksqdI7awuphfUCH8m/fovY2tCsvYFR6C2NyCltPh4=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=YuTFRJ5kBdRt92KlkbnhxU4UEYNkfip1ndbAM8/xAqOk7IAUxIbuZGANr2Qq8GJ5H 3bHZn0NZfkvqpck+0e1hcWYtBvxzsRdnW64oTP1cW4Xrz3BSYGsscAg/+lfDZfLKX4 r2eqS0Jwy2ZnHds4yLyEbDYuCiOkkxuTh8vW1ybI= Message-ID: <55280780.1040104@delphij.net> Date: Fri, 10 Apr 2015 10:25:20 -0700 From: Xin Li Reply-To: d@delphij.net Organization: The FreeBSD Project MIME-Version: 1.0 To: Jung-uk Kim , Matteo Riondato , Xin LI Subject: Re: svn commit: r281316 - in head: contrib/xz contrib/xz/src/common contrib/xz/src/liblzma/api/lzma contrib/xz/src/liblzma/common contrib/xz/src/liblzma/lz contrib/xz/src/liblzma/lzma contrib/xz/src/xz... References: <201504091803.t39I3R4Y042146@svn.freebsd.org> <552803B6.4000005@FreeBSD.org> In-Reply-To: <552803B6.4000005@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 17:25:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 04/10/15 10:09, Jung-uk Kim wrote: > On 04/10/2015 12:05, Matteo Riondato wrote: >> Could this update be causing this error when trying to upgrade >> the installed packages using "pkg upgrade" ? > >> [1/27] Extracting glib-2.42.2: 99% pkg: archive_read_extract(): >> Lzma library error: Corrupted input data [1/27] Extracting >> glib-2.42.2: 100% [1/27] Deleting files for glib-2.42.2: 100% > >> ? I tried removing the fetched archives from /var/cache/pkg and >> having pkg fetch them again, so that doesn't seem to be the >> issue. > > Actually libarchive(3) seems broken. > > # tar tf tar-1.28.tar.xz > /dev/null || echo FAILURE! tar: > Truncated input file (needed 976896 bytes, only 0 available) tar: > Error exit delayed from previous errors. FAILURE! > > The same file is fine with GNU tar. I have see this too. It seems like the libmd implementation of SHA256 is doing something differently than the bundled one and libarchive(3) is expecting a different behavior (not 100% sure yet, still figuring it out). The strange part is that xz's 'make check' passed just fine and the same archive processed by xz(1) as expected, so yes it's possible that we hit a libarchive bug. As a precaution I have reverted the SHA256 portion of the change and the library should work fine with libarchive now. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1.2 (FreeBSD) iQIcBAEBCgAGBQJVKAeAAAoJEJW2GBstM+nsRSwP/3GhfVOYIIqG3CZ8duB++4he IURodWRl11uJnagRaOnZnoR9LpDWBoLgx6SK53DDoOkxDGr8PKXr6WxBuX7zTR4P h2Bqu0ibmhPrEPTC3YfLn5nn8IoxtRj8nZZlkD/hU4dGnwiKzaH/9krFVdmGrePn HkdNUkdANp8bDu+AiBxPgSXf+GFYOuDs+fpDIvWCrIaB/MLzD4zrsQZCWdT4p7J3 c8IwzNHW2z0T5dULlEssaxG5bYc+P/RhCC8mRqhj73WpGb7UbNHjcY2ICDA15Hb8 IZYu3quprLx/F40qhGxBUgdgOEyPNqzdBvcUl325N0AqvAnama6zPE4eeZutHioQ LMt8lnllIr5xnmuHaN3+YyyPDuEg03SmyihbjD9vbA+5/M9Y6fLSOWHY/ns/2AUF laO32LZjZiOz0h5r2S5ipJbSWD4vHzWtFPFNW3FwpqPsXsD7ikE2vsJLowMJf6p9 ww4qFzsecXv1YG4tDrUubqci6S06UYNtI+u3Icm7LFJqwMVzAxWCF9IYbzZl5Kqd 4Rcmej8JVA0qC7hheESs5lEN6/6LQ64S89c76M2yxW+H54E2X5VfKGOIVNa1Geuc DtKVz24tjXCspu18RJFPlcsCA+MJOIMVN5oBhll+vPiDu1HOGhykmo0m23sY5UiK ON61a59e3GwA7Ydgp4AC =1Hhm -----END PGP SIGNATURE-----