From nobody@FreeBSD.org  Sat Feb  3 10:46:54 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 34E2D16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  3 Feb 2007 10:46:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 0F23213C48E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  3 Feb 2007 10:46:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l13AkrKW039896
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 3 Feb 2007 10:46:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l13AkrcX039895;
	Sat, 3 Feb 2007 10:46:53 GMT
	(envelope-from nobody)
Message-Id: <200702031046.l13AkrcX039895@www.freebsd.org>
Date: Sat, 3 Feb 2007 10:46:53 GMT
From: Jonathan Liu<Net147@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [tail] segmentation fault for files over 2GB
X-Send-Pr-Version: www-3.0

>Number:         108706
>Category:       bin
>Synopsis:       tail(1) segmentation fault for files over 2GB
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 03 10:50:15 GMT 2007
>Closed-Date:    Sat Feb 03 11:58:10 GMT 2007
>Last-Modified:  Sat Feb 03 11:58:10 GMT 2007
>Originator:     Jonathan Liu
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD freebsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Using the tail utility with files over 2GB results in a segmentation fault.
>How-To-Repeat:
tail largefile
  OR
tail -f largefile
>Fix:

>Release-Note:
>Audit-Trail:

From: "Jonathan Liu" <Net147@hotmail.com>
To: <bug-followup@FreeBSD.org>,
	<Net147@hotmail.com>
Cc:  
Subject: Re: bin/108706: [tail] segmentation fault for files over 2GB
Date: Sat, 3 Feb 2007 22:29:31 +1100

 More specially, this doesn't happen in all cases but it happens in my case.
 
 I was doing some testing with audio I/O.
 
 On one terminal I had: cat /dev/dsp | tee /rectest | tee /dev/dsp.
 
 On the other terminal I waited until the file was big enough (when I tested
 the 3rd time the file was only 3829760 bytes): tail -f /rectest
 
 'tail /rectest' also appears to give "Segmentation fault".
 
  
 
 If I stop the 'cat /dev/dsp | tee /rectest | tee /dev/dsp' command and copy
 the file and use tail:
 
 cp /rectest /rectest2
 
 tail -f /rectest2
 
  
 
 Then the problem doesn't occur with the copy of the file.
 
 Then I do 'tail -f /rectest' and it happens again.
 
  
 
 Also, sometimes if I do 'tail -f /rectest' on multiple terminals after, the
 terminal would freeze and I can't CTRL+C out of it but the characters I
 press still appear.
 
  
 
  
 
 

From: "Jonathan Liu" <Net147@hotmail.com>
To: <bug-followup@FreeBSD.org>,
	<Net147@hotmail.com>
Cc:  
Subject: Re: bin/108706: [tail] segmentation fault for files over 2GB
Date: Sat, 3 Feb 2007 22:33:36 +1100

 Oh I see what the problem is now.
 
 Running dmesg, I get messages like:
 
 ad0: FAILURE - READ_DMA status=59<READY,DSC,DRQ,ERROR>
 error=40<UNCORRECTABLE> LBA=22359
 
 g_vfs_done():ad0s1a[READ](offset=11407360, length=32768)]error = 5
 
 vnode_pager_get_pages: I/O read error
 
 vm_fault: pager read error, pid 98551 (tail)
 
  
 
 It appears to be a faulty hard drive.
 
 Please close this PR.
 
  
 
 Thanks.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Feb 3 11:56:44 UTC 2007 
State-Changed-Why:  
Closed at submitter's request. 

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