From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 23 10:30:22 2011 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DB93106566C for ; Thu, 23 Jun 2011 10:30:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 838488FC1B for ; Thu, 23 Jun 2011 10:30:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5NAUMaJ085423 for ; Thu, 23 Jun 2011 10:30:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5NAUMpl085420; Thu, 23 Jun 2011 10:30:22 GMT (envelope-from gnats) Date: Thu, 23 Jun 2011 10:30:22 GMT Message-Id: <201106231030.p5NAUMpl085420@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: "Pavel Polyakov" X-Mailman-Approved-At: Thu, 23 Jun 2011 11:16:03 +0000 Cc: Subject: Re: amd64/158197: geom_cache with size>1000 leads to panics X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pavel Polyakov List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 10:30:22 -0000 The following reply was made to PR kern/158197; it has been noted by GNATS. From: "Pavel Polyakov" To: bug-followup@freebsd.org, bsd@kobyla.org Cc: Subject: Re: amd64/158197: geom_cache with size>1000 leads to panics Date: Thu, 23 Jun 2011 10:11:08 -0000 ------------7QYvsDfCNo1cZZUH0FwJVm Content-Type: text/plain; charset=windows-1251; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit Trace from older revision (with full vmcore) Dump header from device /dev/ad4s1b Architecture: amd64 Architecture Version: 2 Dump Length: 2973687808B (2835 MB) Blocksize: 512 Dumptime: Wed Mar 16 03:33:59 2011 Hostname: cel.home Magic: FreeBSD Kernel Dump Version String: FreeBSD 9.0-CURRENT #0 r219141: Thu Mar 3 06:07:03 EET 2011 root@cel.home:/usr/obj/var/src9/sys/PDC90 Panic String: Dump Parity: 2510468568 Bounds: 32 Dump Status: good Fatal trap 9: general protection fault while in kernel mode cpuid = 2; apic id = 02 instruction pointer = 0x20:0xffffffff8135924e stack pointer = 0x28:0xffffff800007ab30 frame pointer = 0x28:0xffffff800007ab70 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 4 (g_down) Physical memory: 8175 MB Dumping 2835 MB: 2820 2804 2788 2772 ... (kgdb) #0 doadump () at /var/src9/sys/kern/kern_shutdown.c:250 #1 0xffffffff802cb7fc in db_fncall (dummy1=Variable "dummy1" is not available. ) at /var/src9/sys/ddb/db_command.c:548 #2 0xffffffff802cbb31 in db_command (last_cmdp=0xffffffff80bc5340, cmd_table=Variable "cmd_table" is not available. ) at /var/src9/sys/ddb/db_command.c:445 #3 0xffffffff802cbd80 in db_command_loop () at /var/src9/sys/ddb/db_command.c:498 #4 0xffffffff802cddf9 in db_trap (type=Variable "type" is not available. ) at /var/src9/sys/ddb/db_main.c:229 #5 0xffffffff8054e5b1 in kdb_trap (type=9, code=0, tf=0xffffff800007aa80) at /var/src9/sys/kern/subr_kdb.c:533 #6 0xffffffff807cd88d in trap_fatal (frame=0xffffff800007aa80, eva=Variable "eva" is not available. ) at /var/src9/sys/amd64/amd64/trap.c:798 #7 0xffffffff807cde5c in trap (frame=0xffffff800007aa80) at /var/src9/sys/amd64/amd64/trap.c:614 #8 0xffffffff807b86ff in calltrap () at /var/src9/sys/amd64/amd64/exception.S:228 #9 0xffffffff8135924e in g_cache_read (sc=0xfffffe0008851800, bp=0xfffffe019f8e2488) at /var/src9/sys/modules/geom/geom_cache/../../../geom/cache/g_cache.c:116 #10 0xffffffff813597f2 in g_cache_start (bp=0xfffffe019f8e2488) at /var/src9/sys/modules/geom/geom_cache/../../../geom/cache/g_cache.c:377 #11 0xffffffff804b82c4 in g_io_schedule_down (tp=Variable "tp" is not available. ) at /var/src9/sys/geom/geom_io.c:632 #12 0xffffffff804b86af in g_down_procbody () at /var/src9/sys/geom/geom_kern.c:118 #13 0xffffffff804ee58a in fork_exit ( callout=0xffffffff804b8640 , arg=0x0, frame=0xffffff800007ac50) at /var/src9/sys/kern/kern_fork.c:885 #14 0xffffffff807b8bae in fork_trampoline () at /var/src9/sys/amd64/amd64/exception.S:569 #15 0x0000000000000000 in ?? () #16 0x0000000000000000 in ?? () #17 0x0000000000000001 in ?? () #18 0x0000000000000000 in ?? () #19 0x0000000000000000 in ?? () (kgdb) fr 9 #9 0xffffffff8135924e in g_cache_read (sc=0xfffffe0008851800, bp=0xfffffe019f8e2488) at /var/src9/sys/modules/geom/geom_cache/../../../geom/cache/g_cache.c:116 116 TAILQ_REMOVE(&sc->sc_usedlist, dp, d_used); (kgdb) p sc->sc_usedlist $1 = {tqh_first = 0xfffffe00a451e680, tqh_last = 0xfffffe00a451e6b8} (kgdb) p dp $2 = (struct g_cache_desc *) 0xfffffe00a451e680 (kgdb) p d_used No symbol "d_used" in current context. (kgdb) x 0xfffffe00a451e680 0xfffffe00a451e680: 0xdeadc0de (kgdb) x 0xfffffe00a451e6b8 0xfffffe00a451e6b8: 0xdeadc0de (kgdb) x dp 0xfffffe0008851800: 0x069cd300 (kgdb) x 0xfffffe019f8e2488 0xfffffe019f8e2488: 0x00000001 ------------7QYvsDfCNo1cZZUH0FwJVm Content-Type: multipart/related; boundary=----------7QYvsDfCNo1cZZ5J1il0ZP ------------7QYvsDfCNo1cZZ5J1il0ZP Content-Type: text/html; charset=windows-1251 Content-ID: Content-Transfer-Encoding: Quoted-Printable
Trace from older = revision (with full vmcore)



Dump he= ader from device /dev/ad4s1b
Architecture: amd64
Architecture = Version: 2
Dump Length: 2973687808B (2835 MB)
Blocksize: 512 Dumptime: Wed Mar 16 03:33:59 2011
Hostname: cel.home
Magi= c: FreeBSD Kernel Dump
Version String: FreeBSD 9.0-CURRENT #0 r2191= 41: Thu Mar 3 06:07:03 EET 2011
root@cel.home:/usr/obj/var/src9/= sys/PDC90
Panic String:
Dump Parity: 2510468568
Bounds: = 32
Dump Status: good



Fatal trap 9: general protection fault while in kernel mode
cpu= id =3D 2; apic id =3D 02 = = =
instruction pointer =3D 0x20:0xffffffff813= 5924e
stack pointer =3D 0x28:0xffffff800007ab30
frame po= inter =3D 0x28:0xffffff800007ab70 = = =
code segment =3D base 0x0, limit 0xfffff, = type 0x1b
=3D DPL 0, pres 1, long 1, def32 0,= gran 1
processor eflags =3D interrupt enabled, resume, IOPL =3D= 0 = =
current process =3D 4 (g_d= own)
Physical memory: 8175 MB = = =
Dumping 2835 MB: 2820 2804 2788 2772 ..= .





(kgdb) #0 doadump () at /var/src9/sys/kern/ker= n_shutdown.c:250 = =
#1 0xffffffff802cb7fc= in db_fncall (dummy1=3DVariable "dummy1" is not available. = = =
) = = =
at /var/src9/sys/ddb/db_command.c:548 = = =
#2 0xffffffff802= cbb31 in db_command (last_cmdp=3D0xffffffff80bc5340, cmd_table=3DVariabl= e "cmd_table" is not available. = =
= = =
) at /var/src9/sys/ddb/db_command.c= :445 = =
#3 0xffff= ffff802cbd80 in db_command_loop () = = =
at /var/src9/sys/ddb/db_command.c:498 = = =
#4 0xffffffff802cddf9 in db_tra= p (type=3DVariable "type" is not available. = =
) at = /var/src9/sys/ddb/db_main.c:229 = = =
#5 0xffffffff8054e5b1 in kdb_trap (type=3D9, code=3D= 0, tf=3D0xffffff800007aa80) = =
at /var/src9/sys/k= ern/subr_kdb.c:533 = = <= br>#6 0xffffffff807cd88d in trap_fatal (frame=3D0xffffff800007aa80, eva= =3DVariable "eva" is not available. = =
) = = =
at /var/src= 9/sys/amd64/amd64/trap.c:798 = = =
#7 0xffffffff807cde5c in trap (frame=3D0xffffff800007aa80) = = =
at /var/src9/sys/amd64/amd64/tr= ap.c:614 = =
#8 0xffff= ffff807b86ff in calltrap () = = =
at /var/src9/sys/amd64/amd64/exception.S:228 = = =
#9 0xffffffff8135924e in g_cach= e_read (sc=3D0xfffffe0008851800, = =
b= p=3D0xfffffe019f8e2488) = = =
at /var/src9/sys/modules/geom/geom_cache/../..= /../geom/cache/g_cache.c:116 = =
#10 0xffffffff813597f2 in= g_cache_start (bp=3D0xfffffe019f8e2488)
at /var/src9/sys/modules= /geom/geom_cache/../../../geom/cache/g_cache.c:377 = =
#11= 0xffffffff804b82c4 in g_io_schedule_down (tp=3DVariable "tp" is not ava= ilable. = =
) = = =
at /var/src9/sys/ge= om/geom_io.c:632 = = #12 0xffffffff804b86af in g_down_procbody () = = =
at /var/src9/sys/geom/geom_kern.c:118 = = =
#13 0xffffffff804ee5= 8a in fork_exit ( = = =
callout=3D0xffffffff804b8640 <g_down_procbody>, arg=3D0x0= , = =
frame=3D0xffffff800007ac50) = at /var/src9/sys/kern/kern_fork.c:885
#14 0xffffffff807b8bae in fork_= trampoline ()
at /var/src9/sys/amd64/amd64/exception.S:569
#15= 0x0000000000000000 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0= x0000000000000001 in ?? ()
#18 0x0000000000000000 in ?? ()
#19 0x0= 000000000000000 in ?? ()



= = <= br> = =
(kgdb) fr 9 = =
#9 0xffffffff8135924= e in g_cache_read (sc=3D0xfffffe0008851800, bp=3D0xfffffe019f8e2488) at = /var/src9/sys/modules/geom/geom_cache/../../../geom/cache/g_cache.c:116<= br>116 TAILQ_REMOVE(&sc->sc_usedlist, dp, d_u= sed);
(kgdb) p sc->sc_usedlist = =
$1 =3D {tqh_first =3D 0xfffffe00a451= e680, tqh_last =3D 0xfffffe00a451e6b8}
(kgdb) p dp = =
$2 =3D= (struct g_cache_desc *) 0xfffffe00a451e680 = =
(kgdb) p d_used
No symbol "d_used" in current con= text. =
= = =
(kgdb) x 0xfffffe00a451e680
0xfffffe00a451e680: 0x= deadc0de =
(k= gdb) x 0xfffffe00a451e6b8 = =
0xfffffe00a451e6b8: 0xdeadc0de
(kgdb) x dp = = =
0xfffffe0008851800: 0x069cd300 = =
(kgdb) x 0xfffffe019f8e2488
0xfff= ffe019f8e2488: 0x00000001 = =
= =

------------7QYvsDfCNo1cZZ5J1il0ZP-- ------------7QYvsDfCNo1cZZUH0FwJVm--