From owner-freebsd-bugs@freebsd.org Tue Oct 10 03:22:47 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58F88E46264 for ; Tue, 10 Oct 2017 03:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4748C68254 for ; Tue, 10 Oct 2017 03:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9A3MkZb005308 for ; Tue, 10 Oct 2017 03:22:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222891] /usr/bin/tar exits with INTERNAL ERROR: Function 'archive_read_disk_open' Date: Tue, 10 Oct 2017 03:22:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: papowell@astart.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not Enough Information X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 03:22:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222891 papowell@astart.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |papowell@astart.com --- Comment #2 from papowell@astart.com --- Created attachment 187040 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187040&action= =3Dedit Details of the sourrce code I have reported this error for FreeBSD 11.0 and it is still present. Do the following: + cd / + /usr/bin/tar -vczf files.tgz -T /tmp/rmis_save.tmp49784 a etc/rc.conf a etc/hosts a etc/ntp.conf a etc/crontab a etc/resolv.conf a etc/nsswitch.conf a etc/syslog.conf a etc/newsyslog.conf tar: etc/namedb/named.conf: Cannot stat: No such file or directory tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive structure in state 'header', should be in state 'new/closed': Unknown error= : -1 tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive structure in state 'header', should be in state 'new/closed': Unknown error= : -1 tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive structure in state 'header', should be in state 'new/closed': Unknown error= : -1 tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive structure in state 'header', should be in state 'new/closed': Unknown error= : -1 t This can be tracked down to code in /usr/src/contrib/libarchive/libarchive/archive_read_disk_posix.c line 874 or 2673 case TREE_REGULAR: lst =3D tree_current_lstat(t); if (lst =3D=3D NULL) { archive_set_error(&a->archive, errno, "%s: Cannot stat", tree_current_path(t)); tree_enter_initial_dir(t); return (ARCHIVE_FAILED); ************** This should return a status which will cause the ************** either the archive to fail or the file ************** to be skipped (FreeBSD 10.3 behaviour) } I would provide a bug fix but I am uncertain of how to cause the file to be skipped. --=20 You are receiving this mail because: You are the assignee for the bug.=