bin/108607: [PATCH] lib/libarchive core dumps on 6.2

Artis Caune Artis.Caune at latnet.lv
Wed Jan 31 15:40:22 UTC 2007


>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:


More information about the freebsd-bugs mailing list