I rebuilt my -CURRENT workstation last night.  There still seems to be a
minor problem though.  While I was running XFree 3.x (a rather old build,
compiled from ports):

        $ pkg_info | grep XFree
        XFree86-3.3.6_9     X11R6.3/XFree86 core distribution

there was the following panic.  At the same time the disk was heavily
spinning, as I was updating my local NetBSD mirror with CVSup, and periodic
was running it's daily stuff.  Does this look like a problem with X to you
all, or should I look for other causes?  I am thinking of X giving me these
troubles, only because of frame #13 which is in an address that cannot be
printed by gdb.  Any ideas?

(The bremfree panic is the second panic in the row, so it's probably a
whole different problem in itself.)

  Script started on Fri Feb  8 05:55:22 2002
  [toor@hades /var/crash]# gdb -k /usr/obj/usr/src/sys/CHARON/kernel.debug vmcore.1
  GNU gdb 4.18
  Copyright 1998 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you are
  welcome to change it and/or distribute copies of it under certain conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for details.
  This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb.291/gdb/dbxread.c line 2629 
in elfstab_build_psymtabs
  Deprecated bfd_read called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb.291/gdb/dbxread.c line 935 
in fill_symbuf

  IdlePTD at phsyical address 0x003d1000
  initial pcb at physical address 0x00329bc0
  panicstr: bremfree: bp 0xc2161734 not locked
  panic messages:
  ---
  panic: msleep

  syncing disks... panic: bremfree: bp 0xc2166e4c not locked
  Uptime: 2d15h0m41s

  dumping to dev ad0s3b, offset 1966080
  dump ata0: resetting devices .. done
  64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 
36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 
6 5 4 3 2 1 
  ---
  #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:504
  504           if (!dodump)
  (kgdb) bt
  #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:504
  #1  0xc01b8ec4 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:336
  #2  0xc01b9361 in panic (fmt=0xc02b5da2 "bremfree: bp %p not locked") at 
/usr/src/sys/kern/kern_shutdown.c:646
  #3  0xc01e7ecf in bremfree (bp=0xc2161734) at /usr/src/sys/kern/vfs_bio.c:545
  #4  0xc0196359 in spec_fsync (ap=0xc03d5e98) at 
/usr/src/sys/fs/specfs/spec_vnops.c:407
  #5  0xc0195e51 in spec_vnoperate (ap=0xc03d5e98) at 
/usr/src/sys/fs/specfs/spec_vnops.c:119
  #6  0xc024d449 in ffs_sync (mp=0xc0e00200, waitfor=2, cred=0xc05bee00, 
td=0xc02f9604) at vnode_if.h:441
  #7  0xc01f4c42 in sync (td=0xc02f9604, uap=0x0) at 
/usr/src/sys/kern/vfs_syscalls.c:669
  #8  0xc01b8b46 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:245
  #9  0xc01b9361 in panic (fmt=0xc02cb2fe "%s") at 
/usr/src/sys/kern/kern_shutdown.c:646
  #10 0xc0289d78 in trap_fatal (frame=0xc03d5fa8, eva=791205) at 
/usr/src/sys/i386/i386/trap.c:842
  #11 0xc0289aad in trap_pfault (frame=0xc03d5fa8, usermode=0, eva=791205) at 
/usr/src/sys/i386/i386/trap.c:756
  #12 0xc02895ef in trap (frame={tf_fs = 0, tf_es = 0, tf_ds = 0, tf_edi = 51676, 
tf_esi = 1816, tf_ebp = 264, tf_isp = -1069719596, 
        tf_ebx = 264, tf_edx = 980, tf_ecx = 6930, tf_eax = 0, tf_trapno = 12, tf_err 
= 4, tf_eip = 4773, tf_cs = 49152, 
        tf_eflags = 721478, tf_esp = 4000, tf_ss = 0}) at 
/usr/src/sys/i386/i386/trap.c:426
  #13 0x12a5 in ?? ()
  Cannot access memory at address 0x108.
  (kgdb) list /usr/src/sys/kern/vfs_bio.c:545
  540           int old_qindex = bp->b_qindex;
  541   
  542           GIANT_REQUIRED;
  543   
  544           if (bp->b_qindex != QUEUE_NONE) {
  545                   KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not 
locked",bp));
  546                   TAILQ_REMOVE(&bufqueues[bp->b_qindex], bp, b_freelist);
  547                   bp->b_qindex = QUEUE_NONE;
  548           } else {
  549                   if (BUF_REFCNT(bp) <= 1)
  (kgdb) list /usr/src/sys/i386/i386/trap.c:426
  421   
  422                   KASSERT(cold || td->td_ucred != NULL,
  423                       ("kernel trap doesn't have ucred"));
  424                   switch (type) {
  425                   case T_PAGEFLT:                 /* page fault */
  426                           (void) trap_pfault(&frame, FALSE, eva);
  427                           goto out;
  428   
  429                   case T_DNA:
  430   #ifdef DEV_NPX
  (kgdb) q
  [toor@hades /var/crash]# exit

  Script done on Fri Feb  8 05:56:52 2002

Here's the dmesg output too:

  Copyright (c) 1992-2002 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
          The Regents of the University of California. All rights reserved.
  FreeBSD 5.0-CURRENT #0: Thu Feb  7 22:51:16 EET 2002
      [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CHARON
  Preloaded elf kernel "/boot/kernel/kernel" at 0xc03b2000.
  Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b20a8.
  Timecounter "i8254"  frequency 1193182 Hz
  Timecounter "TSC"  frequency 132632338 Hz
  CPU: Pentium/P54C (132.63-MHz 586-class CPU)
    Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
    Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
  real memory  = 67108864 (65536K bytes)
  avail memory = 61460480 (60020K bytes)
  Intel Pentium detected, installing workaround for F00F bug
  VESA: v1.2, 2048k memory, flags:0x0, mode table:0xc00c1bfa (c0001bfa)
  VESA: S3 Incorporated. 86C325
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
  pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
  pci0: <PCI bus> on pcib0
  isab0: <PCI-ISA bridge> at device 7.0 on pci0
  isa0: <ISA bus> on isab0
  atapci0: <Intel PIIX3 ATA controller> port 0xf000-0xf00f at device 7.1 on pci0
  ata0: at 0x1f0 irq 14 on atapci0
  ata1: at 0x170 irq 15 on atapci0
  pci0: <display, VGA> at device 11.0 (no driver attached)
  ata: ata0 already exists; skipping it
  ata: ata1 already exists; skipping it
  sc: sc0 already exists; skipping it
  vga: vga0 already exists; skipping it
  orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
  atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
  atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
  sc0: <System console> at flags 0x100 on isa0
  sc0: VGA <16 virtual consoles, flags=0x300>
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16550A
  sio1 at port 0x2f8-0x2ff irq 3 on isa0
  sio1: type 16550A
  vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
  sbc0: <Creative SB16/SB32> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 5,1 
on isa0
  pcm0: <SB16 DSP 4.13> on sbc0
  midi0: <SB Midi Interface> on sbc0
  midi1: <SB OPL FM Synthesizer> on sbc0
  ata2: <Generic ESDI/IDE/ATA controller> at port 0x36e-0x36f,0x168-0x16f irq 10 on 
isa0
  unknown: <PNP0303> can't assign resources
  unknown: <PNP0501> can't assign resources
  unknown: <PNP0501> can't assign resources
  IP Filter: v3.4.20 initialized.  Default = block all, Logging = enabled
  ata1-slave: timeout waiting for interrupt
  ata1-slave: ATAPI identify failed
  ad0: 42934MB <WDC WD450AA-00BAA0> [87233/16/63] at ata0-master WDMA2
  acd0: CD-RW <PCRW804> at ata1-master PIO4
  Mounting root from ufs:/dev/ad0s1a

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to