I frequently see panics when I connect or disconnect USB devices.  It
seems this is fallout from application software not handling the
device correctly, i.e. it only occurs (IIRC) after some application
program had problems with the device, an example being gphoto2 which
is currently unable to talk to my Powershot G2 camera.

Looking at the dump I get the impression that the panic that it shows
is not the original problem, it rather looks like a second panic which
occured while the kernel tried to sync the disks after a first,
invisible panic.

-current is from 1/7/2002.

The dump shows:

(kgdb) core-file vmcore.14
IdlePTD at phsyical address 0x0046f000
initial pcb at physical address 0x0035bc40
panicstr: bremfree: bp 0xd3bf08d0 not locked
panic messages:
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xf
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc026d340
stack pointer           = 0x10:0xe300ac44
frame pointer           = 0x10:0xe300ac44
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         = 22 (irq14: ata0)
trap number             = 12
panic: page fault

syncing disks... panic: bremfree: bp 0xd3bf08d0 not locked
Uptime: 1h34m50s
pfs_vncache_unload(): 2 entries remaining
/dev/vmmon: Module vmmon: unloaded

dumping to dev ad0s2b, offset 2000128
dump ata0: resetting devices .. done
1023 1022 1021 [--trimmed--] 2 1 0 
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:492
492             if (!dodump)
(kgdb) where
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:492
#1  0xc01b4b7b in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:335
#2  0xc01b4fb5 in panic (fmt=0xc02e9f02 "bremfree: bp %p not locked")
    at /usr/src/sys/kern/kern_shutdown.c:634
#3  0xc01e432d in bremfree (bp=0xd3bf08d0) at /usr/src/sys/kern/vfs_bio.c:545
#4  0xc01e58ff in vfs_bio_awrite (bp=0xd3bf08d0)
    at /usr/src/sys/kern/vfs_bio.c:1534
#5  0xc0197954 in spec_fsync (ap=0xe300aaec)
    at /usr/src/sys/fs/specfs/spec_vnops.c:404
#6  0xc019753d in spec_vnoperate (ap=0xe300aaec)
    at /usr/src/sys/fs/specfs/spec_vnops.c:119
#7  0xc0272e35 in ffs_sync (mp=0xc7550e00, waitfor=2, cred=0xc2069b00, 
    td=0xc0397184) at vnode_if.h:441
#8  0xc01f09dd in sync (td=0xc0397184, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:657
#9  0xc01b47c4 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:244
#10 0xc01b4fb5 in panic (fmt=0xc0308f7e "%s")
    at /usr/src/sys/kern/kern_shutdown.c:634
#11 0xc02b2c0f in trap_fatal (frame=0xe300ac04, eva=15)
    at /usr/src/sys/i386/i386/trap.c:842
#12 0xc02b2951 in trap_pfault (frame=0xe300ac04, usermode=0, eva=15)
    at /usr/src/sys/i386/i386/trap.c:756
#13 0xc02b24bb in trap (frame={tf_fs = 24, tf_es = -486539248, 
---Type <return> to continue, or q <return> to quit---
      tf_ds = -1070268400, tf_edi = 0, tf_esi = -948659264, 
      tf_ebp = -486495164, tf_isp = -486495184, tf_ebx = 0, tf_edx = -1, 
      tf_ecx = -946040064, tf_eax = -951159948, tf_trapno = 12, tf_err = 2, 
      tf_eip = -1071197376, tf_cs = 8, tf_eflags = 66182, tf_esp = -486495136, 
      tf_ss = -1071189245}) at /usr/src/sys/i386/i386/trap.c:426
#14 0xc026d340 in free_inodedep (inodedep=0xc79c9300)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:2170
#15 0xc026f303 in handle_written_inodeblock (inodedep=0xc79c9300, 
    bp=0xd3c1dc8c) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3796
#16 0xc026ebfa in softdep_disk_write_complete (bp=0xd3c1dc8c)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:3442
#17 0xc01e6f91 in bufdone (bp=0xd3c1dc8c) at /usr/src/sys/sys/buf.h:452
#18 0xc01e6e6e in bufdonebio (bp=0xd3c1dc8c)
    at /usr/src/sys/kern/vfs_bio.c:2744
#19 0xc0147881 in ad_interrupt (request=0xc7a550c0)
    at /usr/src/sys/sys/bio.h:107
#20 0xc013d476 in ata_intr (data=0xc73bd380)
    at /usr/src/sys/dev/ata/ata-all.c:587
#21 0xc01a8432 in ithread_loop (arg=0xc73bd300)
    at /usr/src/sys/kern/kern_intr.c:533
#22 0xc01a78d8 in fork_exit (callout=0xc01a8304 <ithread_loop>, 
    arg=0xc73bd300, frame=0xe300ad48) at /usr/src/sys/kern/kern_fork.c:783

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

Reply via email to