From nobody@FreeBSD.org  Mon Mar  9 12:59:30 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 62FFF1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Mar 2009 12:59:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 50A768FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Mar 2009 12:59:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n29CxUve085190
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Mar 2009 12:59:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n29CxUB1085189;
	Mon, 9 Mar 2009 12:59:30 GMT
	(envelope-from nobody)
Message-Id: <200903091259.n29CxUB1085189@www.freebsd.org>
Date: Mon, 9 Mar 2009 12:59:30 GMT
From: Andrei Lavreniyuk <andy.lavr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: System libarchive (bsdtar) blocks work of system. (CPU 100%)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132452
>Category:       bin
>Synopsis:       System libarchive (bsdtar(1)) blocks work of system. (CPU 100%)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 09 13:00:11 UTC 2009
>Closed-Date:    Mon Apr 13 20:03:26 UTC 2009
>Last-Modified:  Mon Apr 13 20:03:26 UTC 2009
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
Technica-03, Inc. Ukraine, Kiev.
>Environment:
FreeBSD hp.technica-03.local 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Mar  8 15:24:24 EET 2009     root@hp.technica-03.local:/usr/obj/usr/src/sys/HP  amd64
>Description:
System libarchive (bsdtar) blocks work of system (Loading of the processor 100%). To remove process tar on kill-9 it is not possible. Libarchive from ports work fine.
>How-To-Repeat:
tar -c -f <filename>.tar.gz <srcdir>
>Fix:
Install libarchive from ports/archivers/libarchive and create symlink to /usr/bin


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Mon Mar 9 20:13:01 UTC 2009 
State-Changed-Why:  
To submitter: could you please confirm that "kill -9 pid" does    
not kill the process? 

Also, could you please run "truss -p pid" on the looping tar process,     
and show approximately 100-200 lines of output?  Finally, please 
run "procstat -kk pid" on the process several times, and show all the 
output. 



Responsible-Changed-From-To: freebsd-amd64->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Mar 9 20:13:01 UTC 2009 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132452 

From: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua>
To: gavin@FreeBSD.org
Cc: andy.lavr@gmail.com, freebsd-amd64@FreeBSD.org
Subject: Re: bin/132452: System libarchive (bsdtar(1)) blocks work of system.
 (CPU 100%)
Date: Mon, 09 Mar 2009 22:50:51 +0200

 gavin@FreeBSD.org:
 
 > Old Synopsis: System libarchive (bsdtar) blocks work of system. (CPU 100%)
 
 > Also, could you please run "truss -p pid" on the looping tar process,    
 > and show approximately 100-200 lines of output?  Finally, please
 > run "procstat -kk pid" on the process several times, and show all the
 > output.
 
 
 1:
 
 # tar --version
 bsdtar 2.6.901a - libarchive 2.6.901a
 
 
 2:
 
 # tar -c -f test.tar.gz /var/tmp/bdb
 
 
 3:
 
 # truss -p 22082
 
 
 4:
 
 
 # procstat -kk 22082
    PID    TID COMM             TDNAME           KSTACK
 22082 100222 bsdtar           -                <running>
 
 
 
 5:
 
 
 last pid: 22127;  load averages:  0.97,  0.40,  0.16 
  
                                              up 0+08:04:50  22:40:53
 220 processes: 6 running, 193 sleeping, 21 waiting
 CPU 0:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 CPU 1:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 CPU 2:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 CPU 3:  0.0% user,  0.0% nice,  100% system,  0.0% interrupt,  0.0% idle
 Mem: 118M Active, 9808K Inact, 1030M Wired, 288K Cache, 320K Buf, 639M Free
 Swap: 5120M Total, 5120M Free
 
    PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    CPU 
 COMMAND
     11 root          4 171 ki31     0K   128K CPU0    0  32.0H 300.00% idle
 22082 root          1  44    0  8104K  1424K CPU3    0   0:30 100.00% bsdtar
 
 -- 
   Best regards, Andrei V. Lavreniyuk.

From: Gavin Atkinson <gavin@FreeBSD.org>
To: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/132452: System libarchive (bsdtar(1)) blocks work of
	system. (CPU 100%)
Date: Tue, 10 Mar 2009 10:06:25 +0000

 There have been a lot of changes to tar in HEAD over the last few days.
 Is there any chance you could try to narrow down which change broke
 things for you?
 
 Also, are you using ZFS, or UFS file system?
Responsible-Changed-From-To: gavin->kientzle 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Mar 10 10:20:54 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer.  FWIW, there is at least one more report of this issue 
at http://docs.FreeBSD.org/cgi/mid.cgi?200903100104.53847.ken 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132452 

From: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua>
To: gavin@FreeBSD.org
Cc: freebsd-amd64@FreeBSD.org
Subject: Re: bin/132452: System libarchive (bsdtar(1)) blocks work of system.
 (CPU 100%)
Date: Tue, 10 Mar 2009 19:18:07 +0200

 gavin@FreeBSD.org:
 
 
  >There have been a lot of changes to tar in HEAD over the last few days.
  >Is there any chance you could try to narrow down which change broke
  >things for you?
 
   Completely correspond to this message - 
 http://docs.freebsd.org/cgi/mid.cgi?200903100104.53847.ken
 
 
  >Also, are you using ZFS, or UFS file system?
 
 ZFS+GPART
 
 
 This problem to ZFS has no what attitude. I repeat, libarchive 
 established from ports works without problems.
 
 
 
 
 
 -- 
   Best regards, Andrei V. Lavreniyuk.

From: Tim Kientzle <kientzle@freebsd.org>
To: bug-followup@freebsd.org, andy.lavr@gmail.com
Cc:  
Subject: Re: bin/132452: System libarchive (bsdtar(1)) blocks work of system.
 (CPU 100%)
Date: Tue, 10 Mar 2009 18:13:33 -0700

 Discussion on freebsd-current mailing list points
 to the extattr_list_link() system call as a possible
 culprit.  Extended attribute support was only recently
 completed in FreeBSD-CURRENT, which explains why
 installing an older version "fixes" the problem.
 
 More testing is needed to determine whether this
 is really a bug in the kernel implementation of this
 system call or a problem in libarchive.
 
 The workaround is to completely disable the extended
 attribute support:
 
 Index: lib/libarchive/config_freebsd.h
 ===================================================================
 --- lib/libarchive/config_freebsd.h	(revision 189643)
 +++ lib/libarchive/config_freebsd.h	(working copy)
 @@ -34,12 +34,7 @@
   #define	HAVE_ACL_SET_FD_NP 1
   #define	HAVE_ACL_SET_FILE 1
   #define	HAVE_ACL_USER 1
 -#define	HAVE_EXTATTR_GET_FILE 1
 -#define	HAVE_EXTATTR_LIST_FILE 1
 -#define	HAVE_EXTATTR_SET_FD 1
 -#define	HAVE_EXTATTR_SET_FILE 1
   #define	HAVE_SYS_ACL_H 1
 -#define	HAVE_SYS_EXTATTR_H 1
   #endif
 
   #define	HAVE_BZLIB_H 1
 
 

From: Tim Kientzle <kientzle@freebsd.org>
To: bug-followup@freebsd.org, andy.lavr@gmail.com
Cc:  
Subject: Re: bin/132452: System libarchive (bsdtar(1)) blocks work of system.
 (CPU 100%)
Date: Sun, 29 Mar 2009 09:50:53 -0700

 Status update:  tar's new feature to archive extended
 attributes has been disabled in -CURRENT until the
 ZFS bug can be fixed.  A patch is still being
 discussed in the mailing lists.
State-Changed-From-To: feedback->closed 
State-Changed-By: kientzle 
State-Changed-When: Mon Apr 13 20:03:02 UTC 2009 
State-Changed-Why:  
John Baldwin fixed the underlying ZFS bug 
in r189967.  I re-enabled extended attribute 
support in r191008. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132452 
>Unformatted:
