Date: Wed, 31 Jan 2007 15:32:20 GMT From: Artis Caune<Artis.Caune@latnet.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/108607: [PATCH] lib/libarchive core dumps on 6.2 Message-ID: <200701311532.l0VFWK3d004804@www.freebsd.org> Resent-Message-ID: <200701311540.l0VFeGHk091862@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 108607 >Category: bin >Synopsis: [PATCH] lib/libarchive core dumps on 6.2 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 31 15:40:15 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Artis Caune >Release: 6.2 >Organization: >Environment: >Description: After updating all boxes to 6.2, backup scripts don't work: # tar -r -f /home/backup/pgsql.tar /home/backup/pgsql INTERNAL ERROR: Function 'archive_read_next_header' invoked with archive structure in state 'new', should be in state 'header/data' Segmentation fault: 11 (core dumped) >How-To-Repeat: # touch file.tar # tar -r -f file.tar /COPYRIGHT >Fix: Patch attached with submission follows: --- src/lib/libarchive/archive_read.c.orig Tue Sep 5 08:23:51 2006 +++ src/lib/libarchive/archive_read.c Wed Jan 31 17:23:46 2007 @@ -145,6 +145,7 @@ a->client_skipper = NULL; a->client_closer = NULL; a->client_data = NULL; + a->state = ARCHIVE_STATE_HEADER; /* Open data source. */ if (client_opener != NULL) { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701311532.l0VFWK3d004804>