From nobody@FreeBSD.org  Tue Jan 18 09:02:35 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1AB8D16A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 18 Jan 2005 09:02:35 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D6D3343D49
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 18 Jan 2005 09:02:34 +0000 (GMT)
	(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 j0I92Yvi043073
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 18 Jan 2005 09:02:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j0I92YYV043072;
	Tue, 18 Jan 2005 09:02:34 GMT
	(envelope-from nobody)
Message-Id: <200501180902.j0I92YYV043072@www.freebsd.org>
Date: Tue, 18 Jan 2005 09:02:34 GMT
From: Roman Pavlik <rp@tns.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ata raid crashes in g_down (heavy load)
X-Send-Pr-Version: www-2.3

>Number:         76397
>Category:       i386
>Synopsis:       [ata] ata raid crashes in g_down (heavy load)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 18 09:10:35 GMT 2005
>Closed-Date:    Mon Sep 11 10:01:21 GMT 2006
>Last-Modified:  Mon Sep 11 10:01:21 GMT 2006
>Originator:     Roman Pavlik
>Release:        5.3-RELEASE-p5
>Organization:
Trusted Network Solutions, a.s.
>Environment:
FreeBSD pks.gpg.cz 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #5: Mon Jan 17 20:02:12 CET 2005     root@pks.gpg.cz:/usr/obj/usr/src/sys/PKS  i386

>Description:

System use ATA-RAID1:
kernel: ad4: 76319MB <WDC WD800JB-00CRA1/17.07W17> [155061/16/63] at ata2-master UDMA100
kernel: ad6: 76319MB <WDC WD800JB-00CRA1/17.07W17> [155061/16/63] at ata3-master UDMA100
kernel: ar0: 76319MB <ATA RAID1 array> [9729/255/63] status: READY subdisks:
kernel: disk0 READY on ad4 at ata2-master
kernel: disk1 READY on ad6 at ata3-master
kernel: Mounting root from ufs:/dev/ar0s1a

Under pretty heavy disk load the system crash:

 Fatal trap 12: page fault while in kernel mode
 fault virtual address       = 0x0
 fault code          = supervisor write, page not present
 instruction pointer = 0x8:0xc05aa0ae
 stack pointer               = 0x10:0xd3fd9c44
 frame pointer               = 0x10:0xd3fd9cd8
 code segment                = base 0x0, limit 0xfffff, type 0x1b
 = DPL 0, pres 1, def32 1, gran 1
 processor eflags    = interrupt enabled, resume, IOPL = 0
 current process             = 4 (g_down)
 trap number         = 12
 panic: page fault

 kgdb -c vmcore.0 /boot/kernel/kernel
(kgdb) bt
#0  0xc04a700a in doadump ()
#1  0xc04a75dd in boot ()
#2  0xc04a7899 in panic ()
#3  0xc05abebc in trap_fatal ()
#4  0xc05abc27 in trap_pfault ()
#5  0xc05ab889 in trap ()
#6  0xc059c23a in calltrap ()
#7  0xc0c40018 in ?? ()
#8  0x00000010 in ?? ()
#9  0xd3fd0010 in ?? ()
#10 0x00000000 in ?? ()
#11 0xc1c24e00 in ?? ()
#12 0xd3fd9cd8 in ?? ()
#13 0xd3fd9c30 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000004 in ?? ()
#16 0x00000025 in ?? ()
#17 0x3e3db200 in ?? ()
#18 0x0000000c in ?? ()
#19 0x00000002 in ?? ()
#20 0xc05aa0ae in generic_bcopy ()
#21 0xc1c24e00 in ?? ()
#22 0xc1c26e70 in ?? ()
#23 0xc043943e in arstrategy ()
#24 0xc0472910 in g_disk_start ()
#25 0xc047451e in g_io_schedule_down ()
#26 0xc04747f2 in g_down_procbody ()
#27 0xc0492979 in fork_exit ()
#28 0xc059c29c in fork_trampoline ()

vmcore.0 as well as /boot/kernel/kernel can be send on your request.
>How-To-Repeat:
Heavy load on ATA-RAID.      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Vladimir Kotal <vlada@devnull.cz>
To: freebsd-gnats-submit@FreeBSD.org, rp@tns.cz
Cc:  
Subject: Re: i386/76397: ata raid crashes in g_down (heavy load)
Date: Tue, 22 Feb 2005 19:44:28 +0100

 I can confirm that there is a problem in GEOM in 5.3 patch branch:
 
 Feb 21 11:07:53 news kernel:
 Feb 21 11:07:53 news kernel:
 Feb 21 11:07:53 news kernel: Fatal trap 12: page fault while in kernel 
 mode
 Feb 21 11:07:53 news kernel: fault virtual address      = 0x7c
 Feb 21 11:07:53 news kernel: fault code         = supervisor write, 
 page not present
 Feb 21 11:07:53 news kernel: instruction pointer        = 0x8:0xc044f23d
 Feb 21 11:07:53 news kernel: stack pointer              = 
 0x10:0xcc714c5c
 Feb 21 11:07:53 news kernel: frame pointer              = 
 0x10:0xcc714cd8
 Feb 21 11:07:53 news kernel: code segment               = base 0x0, 
 limit 0xfffff, type 0x1b
 Feb 21 11:07:53 news kernel: = DPL 0, pres 1, def32 1, gran 1
 Feb 21 11:07:53 news kernel: processor eflags   = interrupt enabled, 
 resume, IOPL = 0
 Feb 21 11:07:53 news kernel: current process            = 4 (g_down)
 Feb 21 11:07:53 news kernel: trap number                = 12
 Feb 21 11:07:53 news kernel: panic: page fault
 Feb 21 11:07:53 news kernel: Uptime: 20m50s
 Feb 21 11:07:53 news kernel: Cannot dump. No dump device defined.
 Feb 21 11:07:53 news kernel: Automatic reboot in 15 seconds - press a 
 key on the console to abort
 Feb 21 11:07:53 news kernel: Rebooting...
 
 
 relevant part of dmesg:
 
 ad4: 38166MB <WDC WD400JB-00ENA0/05.03E05> [77545/16/63] at ata2-master 
 UDMA100
 ad6: 38166MB <WDC WD400JB-00ENA0/05.03E05> [77545/16/63] at ata3-master 
 UDMA100
 ar0: 38166MB <ATA RAID1 array> [4865/255/63] status: READY subdisks:
   disk0 READY on ad4 at ata2-master
   disk1 READY on ad6 at ata3-master
 Mounting root from ufs:/dev/ar0s1a
 
 
 uname -a output:
 
 FreeBSD news 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0: Tue Feb 22
 09:49:48 CET 2005     news:/usr/src/sys/i386/compile/news_5.3
 i386
 
 When the system crashes again, I will submit full backtrace.
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Oct 27 00:47:10 GMT 2005 
State-Changed-Why:  
Is this still a problem in 5.4 or 6.0? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76397 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Thu Oct 27 22:06:35 GMT 2005 
State-Changed-Why:  
From submitter: 

Unfortunatelly I can't test it with 5.4 or 6.0 or even current. 

Regards, 
-- 
Roman Pavlik 

so let's just mark this as suspended for now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76397 
State-Changed-From-To: suspended->feedback 
State-Changed-By: remko 
State-Changed-When: Tue Sep 5 10:58:57 UTC 2006 
State-Changed-Why:  
Hello, 

We are a couple of releases further in the world and there had been 
some changes in the mentioned code.  Can you check whether the problem 
is resolved already? or try and provide a backtrace where possible? 

Thanks! 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Sep 5 10:58:57 UTC 2006 
Responsible-Changed-Why:  
Grab the PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76397 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 10:01:18 UTC 2006 
State-Changed-Why:  
feedback timeout 

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