From sjh@whiskey.ucf.ics.uci.edu  Wed May 22 17:38:37 2002
Return-Path: <sjh@whiskey.ucf.ics.uci.edu>
Received: from scotch.ucf.ics.uci.edu (scotch.ucf.ics.uci.edu [128.195.23.4])
	by hub.freebsd.org (Postfix) with ESMTP id D3B2C37B41E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 May 2002 17:38:27 -0700 (PDT)
Received: from whiskey.ucf.ics.uci.edu (whiskey.ucf.ics.uci.edu [128.195.23.9])
	by scotch.ucf.ics.uci.edu (Postfix) with ESMTP
	id 7810814D27; Wed, 22 May 2002 17:38:27 -0700 (PDT)
Received: from whiskey.ucf.ics.uci.edu (localhost [127.0.0.1])
	by whiskey.ucf.ics.uci.edu (8.10.2+Sun/8.10.2) with ESMTP id g4N0cOl27750;
	Wed, 22 May 2002 17:38:27 -0700 (PDT)
Message-Id: <200205230038.g4N0cOl27750@whiskey.ucf.ics.uci.edu>
Date: Wed, 22 May 2002 17:38:24 -0700
From: Seth Hettich <sjh@uci.edu>
Sender: sjh@whiskey.ucf.ics.uci.edu
Reply-To: Seth Hettich <sjh@uci.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Seth Hettich <sjh@uci.edu>
Subject: System crashes when starting XFree4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38438
>Category:       kern
>Synopsis:       System crashes when starting XFree4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 22 17:40:01 PDT 2002
>Closed-Date:    Thu Aug 07 09:28:46 PDT 2003
>Last-Modified:  Thu Aug 07 09:28:46 PDT 2003
>Originator:     Seth Hettich
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
UC Irvine
>Environment:
System: FreeBSD plonq.ucf.ics.uci.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Wed
Ma
y 22 15:02:54 PDT 2002
s@plonq.ucf.ics.uci.edu:/u1/src/src/sys/i386/compile/SJH
i386
GENERIC kernel with sound added.
XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
PIII 1000mhz
256M ram
IDE disk
SCSI CDRW
Matrox MGA G200 AGP

CVS updated on 5/21 (and many times since)

>Description:
When I start X ("xinit") the screen goes blank for ~30 seconds.
I can't switch consoles.  Then the system resets.  No crash dump,
no error, no Xfree log file (well, an empty log file). It happens
every time now.

This was working fine before the update.  I think the prev update was
2-4 weeks ago.
>How-To-Repeat:
>Fix:


>Release-Note:
>Audit-Trail:

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Wed, 22 May 2002 18:05:21 -0700

 Also, X -scanpci and X -probeonly work fine.
 
 -Seth

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Wed, 22 May 2002 22:38:45 -0700

 I got a crash dump!
 
 From the info file:
 Good dump found on device /dev/ad0s1b
   Architecture: i386
   Architecture version: 1
   Dump length: 268435456B (256 MB)
   Blocksize: 512
   Dumptime: Wed May 22 22:19:12 2002
   Hostname: plonq.ucf.ics.uci.edu
   Versionstring: FreeBSD 5.0-CURRENT #6: Wed May 22 22:15:28 PDT 2002
     s@plonq.ucf.ics.uci.edu:/u1/src/src/sys/i386/compile/SJH
   Panicstring: bremfree: bp 0xc77725e0 not locked
   Bounds: 1
 
 From gdb:
 IdlePTD at phsyical address 0x005d3000
 initial pcb at physical address 0x004bbd20
 panicstr: bremfree: bp 0xc77725e0 not locked
 panic messages:
 ---
 Fatal trap 12: page fault while in kernel mode
 fault virtual address   = 0xdeadc0ee
 fault code              = supervisor read, page not present
 instruction pointer     = 0x8:0xc0289ccb
 stack pointer           = 0x10:0xcf665c6c
 frame pointer           = 0x10:0xcf665c74
 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         = 279 (xkbcomp)
 trap number             = 12
 panic: page fault
 
 syncing disks... panic: bremfree: bp 0xc77725e0 not locked
 Uptime: 42s
 pfs_vncache_unload(): 2 entries remaining
 Dumping 256 MB
 ata0: resetting devices .. done
  16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
 
 (kgdb) where
 #0  0xc0271e06 in doadump ()
 #1  0xc027228f in boot ()
 #2  0xc0272434 in poweroff_wait ()
 #3  0xc02a503d in bremfree ()
 #4  0xc02a67d0 in vfs_bio_awrite ()
 #5  0xc03566fb in ffs_fsync ()
 #6  0xc0355014 in ffs_sync ()
 #7  0xc02b334f in sync ()
 #8  0xc0271ee3 in boot ()
 #9  0xc0272434 in poweroff_wait ()
 #10 0xc039a07a in trap_fatal ()
 #11 0xc0399dc8 in trap_pfault ()
 #12 0xc03999ac in trap ()
 #13 0xc0289ccb in witness_destroy ()
 #14 0xc026b603 in mtx_destroy ()
 #15 0xc025d2fb in fdfree ()
 #16 0xc0261854 in exit1 ()
 #17 0xc02615ef in sys_exit ()
 #18 0xc039a2e3 in syscall ()
 #19 0xc038d1ed in syscall_with_err_pushed ()
 #20 0x80498f7 in ?? ()
 
 
 
 I can't get symbols:
 (kgdb) symbol-file kernel.debug
 Reading symbols from kernel.debug...Dwarf Error: Cannot handle DW_FORM_strp in D
 WARF reader.
 

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Thu, 23 May 2002 16:25:16 -0700

 This works fine on my office system, which has an ATI card.  So
 it could be MGA specific.
 
 Note, I did not change my XFree setup at all, same config, same build
 of the libs and server.
 
 

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Thu, 23 May 2002 23:07:35 -0700

 After several more runs (the last was just X -disableModInDev)
 it's always xkbcomp that's running.
 
 -Seth

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Fri, 24 May 2002 10:48:36 -0700

 When I move all copies of xkbcomp, I get:
 panicstr: bremfree: bp 0xc771a2f0 not locked
 panic messages:
 ---
 Fatal trap 12: page fault while in kernel mode
 fault virtual address   = 0xdeadc0ee
 fault code              = supervisor read, page not present
 instruction pointer     = 0x8:0xc0289ccb
 stack pointer           = 0x10:0xcf203c6c
 frame pointer           = 0x10:0xcf203c74
 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         = 331 (sh)
 trap number             = 12
 panic: page fault
 
 syncing disks... panic: bremfree: bp 0xc771a2f0 not locked
 

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Fri, 24 May 2002 22:30:03 -0700

 After a cvsup today (5/24) it's working again... someone must have
 fixed it.
 
 -Seth

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Sat, 25 May 2002 11:32:15 -0700

 I spoke to soon, when I went back to a non-debug kernel it started
 crashing agin.
 
 So, with a normal kernel, it crashes right awyay, with a debug version
 of the same kernel it works fine.
 
 

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Sun, 26 May 2002 16:16:56 -0700

 Another hang followed by a crash, while in X.
 I had X up for probably 2 days, with light usage.
 This was with my debug kernel.
 
 (no debugging symbols found)...
 IdlePTD at phsyical address 0x005d8000
 initial pcb at physical address 0x004bc1c0
 panicstr: bremfree: bp 0xc779fd40 not locked
 panic messages:
 ---
 panic: Most recently used by kqueue
 
 
 syncing disks... panic: bremfree: bp 0xc779fd40 not locked
 Uptime: 1d4h33m21s
 Dumping 256 MB
 (kgdb) where
 #0  0xc0271fba in doadump ()
 #1  0xc0272443 in boot ()
 #2  0xc02725e8 in poweroff_wait ()
 #3  0xc02a51e5 in bremfree ()
 #4  0xc02a6978 in vfs_bio_awrite ()
 #5  0xc024dd1e in spec_fsync ()
 #6  0xc024d913 in spec_vnoperate ()
 #7  0xc035533c in ffs_sync ()
 #8  0xc02b34f5 in sync ()
 #9  0xc0272097 in boot ()
 #10 0xc02725e8 in poweroff_wait ()
 #11 0xc0370792 in mtrash_ctor ()
 #12 0xc036f784 in uma_zalloc_arg ()
 #13 0xc0269b1c in malloc ()
 #14 0xc03554ae in ffs_vget ()
 #15 0xc0346845 in ffs_valloc ()
 #16 0xc035e45c in ufs_makeinode ()
 #17 0xc035bc7e in ufs_create ()
 #18 0xc035e7af in ufs_vnoperate ()
 #19 0xc02b8dda in vn_open_cred ()
 #20 0xc02b8c5c in vn_open ()
 #21 0xc02b3ea7 in open ()
 #22 0xc039a58b in syscall ()
 #23 0xc038d48d in syscall_with_err_pushed ()
 

From: "Seth J. Hettich" <sjh@rodan.ICS.UCI.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/38438: System crashes when starting XFree4 
Date: Tue, 28 May 2002 18:56:11 -0700

 Ugh, I was wrong.  My office system (PII, ATI, IDE) is also not working.
 It does the same thing, X hangs, then the system reboots.  But, it
 only does it after 2-3 days of X use, even with the non-dubug kernel.
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Wed Aug 6 12:24:21 PDT 2003 
State-Changed-Why:  
Is this still a problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38438 
State-Changed-From-To: feedback->closed 
State-Changed-By: schweikh 
State-Changed-When: Thu Aug 7 09:28:17 PDT 2003 
State-Changed-Why:  
Submitter confirms this is not a problem any longer. 

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