From nobody@FreeBSD.org  Thu Sep  4 19:39:01 2008
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 98D8E106567D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Sep 2008 19:39:01 +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 5303F8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Sep 2008 19:39:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m84Jd1vg064359
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Sep 2008 19:39:01 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m84Jd1tD064358;
	Thu, 4 Sep 2008 19:39:01 GMT
	(envelope-from nobody)
Message-Id: <200809041939.m84Jd1tD064358@www.freebsd.org>
Date: Thu, 4 Sep 2008 19:39:01 GMT
From: Thomas Laus <lausts@acm.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Csup truncates files using RELENG_&
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127095
>Category:       bin
>Synopsis:       csup(1): Csup truncates files using RELENG_6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 19:40:06 UTC 2008
>Closed-Date:    Fri Jun 24 00:32:38 UTC 2011
>Last-Modified:  Fri Jun 24 00:32:38 UTC 2011
>Originator:     Thomas Laus
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD mail.laus.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Tue Sep  2 20:02:09 EDT 2008     lausts@mail.laus.org:/usr/obj/usr/src/sys/MAIL  i386
>Description:
I have been tracking STABLE for about the last 5 years with only a few
build failures due to an update in the middle of a commit.  After
migrating to the RELENG_7 branch, I was never able to successfully build
after any csup updates.  I noticed that parts of edited files were
'missing'.  No syslog messages were observed.  After deleting the
truncated file and running csup again, the buildworld was mostly
successful.  Occasionaly I would have another truncated file, requiring
deletion and running csup again.  I remembered someting about 'write
cache enable' sysctl default getting changed at the start of the
RELENG_5 branch.  After turning off the write cache, I had no further
problems with building world after a csup of the source tree.  It has
been 4 weeks without any issues.  I do a weekly csup and buildworld.

My hard disk is a IBM Deskstar Model IC35L040AVVA07.

DMESG shows:

ad0: 39266MB <IC35L040AVVA07 0 VA2OA50K> at ata0-master UDMA100

I have been using this drive for several years and don't remember seeing this
truncation issue until I went to the RELENG_7 branch.  It is strange that
csup never detects that the file has been damaged in this way, requiring a download of the complete file from the CVS Server. The sysctl variable 'hw.ata.wc="0" in /boot/loader.conf cured my
problem.
>How-To-Repeat:
Csup with the sysctl variable hw.ata.wc set to 1
>Fix:
Csup with the sysctl variable hw.ata.wc set to 0

>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@FreeBSD.org>
To: Thomas Laus <lausts@acm.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/127095: Csup truncates files using RELENG_&
Date: Thu, 04 Sep 2008 23:19:22 +0200

 Thomas Laus wrote:
 
 Ofcourse you tested with various cvsup servers right?
 
 -- 
 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
   X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
Responsible-Changed-From-To: freebsd-i386->mux 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Sep 5 13:23:16 UTC 2008 
Responsible-Changed-Why:  
Reassign to maintainer. I do not have this issue at all and I use csup 
on multiple platforms and installations all over. Might be csup specific? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127095 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jun 23 18:05:33 UTC 2011 
State-Changed-Why:  
To submitter: is this still a problem? 


Responsible-Changed-From-To: mux->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jun 23 18:05:33 UTC 2011 
Responsible-Changed-Why:  
mux has returned his commit bit for safekeeping. 

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

From: "Thomas Laus" <lausts@acm.org>
To: bug-followup@FreeBSD.org,
              lausts@acm.org
Cc:  
Subject: Re: bin/127095: csup(1): Csup truncates files using RELENG_6
Date: Thu, 23 Jun 2011 15:40:06 -0400

 I am not running RELENG_6 anymore, so you can close out this PR.  I have 
 not observed this issue with RELENG_8 running with AMD64.
 
 Tom
 
 
 -- 
 Public Keys:
 PGP KeyID = 0x5F22FDC1
 GnuPG KeyID = 0x620836CF
 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jun 24 00:32:23 UTC 2011 
State-Changed-Why:  
Submitter no longer sees this problem. 

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