On  2 Sep, An: [EMAIL PROTECTED] wrote:
> Hi,
> 
> here's a backtrace from a kernel panic I get if I try to buildworld with
> "make -j4" (source as of yesterday).
> 
> I also get this panic if I try to cvsup (not only with this kernel, also
> with a kernel from Aug 28).

Still kernel (+world) from Sep 2, but now I got a panic at shutdown.

I didn't have much experience with kernel debugging (or kernel
internals), any help to be able to provide as much informations as
needed to track the bug down will be appreciated.

Here's the backtrace and a "print bp".
---snip---
IdlePTD 4911104
initial pcb at 2de4a0
panicstr: bremfree: bp 0xc69b09ec not locked
panic messages:
---
Fatal trap 12: page fault while in vm86 mode
fault virtual address   = 0xc37bd
fault code              = user read, page not present
instruction pointer     = 0xc000:0x37bd
stack pointer           = 0x0:0xfb4
frame pointer           = 0x0:0x0
code segment            = base 0xd00005, limit 0x2, type 0x1
                        = DPL 3, pres 1, def32 0, gran 0
processor eflags        = interrupt enabled, resume, vm86, IOPL = 0
current process         = 499 (XFree86)
trap number             = 12
panic: page fault

syncing disks... panic: bremfree: bp 0xc69b09ec not locked
Uptime: 3h45m56s

dumping to dev ad1s2b, offset 1572992
dump ata0: resetting devices .. ad1: invalidating queued requests
done
[...]
---
#0  dumpsys () at ../../../kern/kern_shutdown.c:487
487             if (dumping++) {
(kgdb) bt
#0  dumpsys () at ../../../kern/kern_shutdown.c:487
#1  0xc019805d in boot (howto=260) at ../../../kern/kern_shutdown.c:330
#2  0xc0198476 in panic (fmt=0xc02941e1 "bremfree: bp %p not locked")
    at ../../../kern/kern_shutdown.c:623
#3  0xc01ccd09 in bremfree (bp=0xc69b09ec) at ../../../kern/vfs_bio.c:535
#4  0xc01ce41c in vfs_bio_awrite (bp=0xc69b09ec)
    at ../../../kern/vfs_bio.c:1528
#5  0xc02165a6 in ffs_fsync (ap=0xc04b2e88) at ../../../ufs/ffs/ffs_vnops.c:239
#6  0xc0214623 in ffs_sync (mp=0xc1874c00, waitfor=2, cred=0xc0e60c00, 
    p=0xc030e800) at vnode_if.h:441
#7  0xc01dbd4d in sync (p=0xc030e800, uap=0x0)
    at ../../../kern/vfs_syscalls.c:622
#8  0xc0197b4d in boot (howto=256) at ../../../kern/kern_shutdown.c:239
#9  0xc0198476 in panic (fmt=0xc02a947e "%s")
    at ../../../kern/kern_shutdown.c:623
#10 0xc0255c04 in trap_fatal (frame=0xc04b2fa8, eva=800701)
    at ../../../i386/i386/trap.c:934
#11 0xc025593d in trap_pfault (frame=0xc04b2fa8, usermode=0, eva=800701)
    at ../../../i386/i386/trap.c:848
#12 0xc025512c in trap (frame={tf_fs = 0, tf_es = 0, tf_ds = 0, 
      tf_edi = 17150, tf_esi = 21526, tf_ebp = 0, tf_isp = -1068814380, 
      tf_ebx = 31232, tf_edx = 47104, tf_ecx = 7809, tf_eax = 1824, 
      tf_trapno = 12, tf_err = 4, tf_eip = 14269, tf_cs = 49152, 
      tf_eflags = 721478, tf_esp = 4020, tf_ss = 0})
    at ../../../i386/i386/trap.c:405
(kgdb) up 3
#3  0xc01ccd09 in bremfree (bp=0xc69b09ec) at ../../../kern/vfs_bio.c:535
535                     KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not 
locked",bp));
(kgdb) list
530             int old_qindex = bp->b_qindex;
531
532             GIANT_REQUIRED;
533
534             if (bp->b_qindex != QUEUE_NONE) {
535                     KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not 
locked",bp));
536                     TAILQ_REMOVE(&bufqueues[bp->b_qindex], bp, b_freelist);
537                     bp->b_qindex = QUEUE_NONE;
538             } else {
539                     if (BUF_REFCNT(bp) <= 1)
(kgdb) up 1
#4  0xc01ce41c in vfs_bio_awrite (bp=0xc69b09ec)
    at ../../../kern/vfs_bio.c:1528
1528            bremfree(bp);
(kgdb) list
1523                            return nwritten;
1524                    }
1525            }
1526
1527            BUF_LOCK(bp, LK_EXCLUSIVE);
1528            bremfree(bp);
1529            bp->b_flags |= B_ASYNC;
1530
1531            splx(s);
1532            /*
(kgdb) print bp
$1 = (struct buf *) 0xc69b09ec
(kgdb) print *bp
$2 = {b_io = {bio_cmd = 2, bio_dev = 0xffffffff, bio_blkno = 1336, 
    bio_offset = 23479844864, bio_bcount = 4096, 
    bio_data = 0xc6ca4000 
"\222V\234\207p0R=5MF\b,'\022m\002\231W{\004\206\032\036s\013\r\031\200\027\024\032tֶd\030\016o\223}\215\034L\av\025;\236\035M\021\b!\\",
 bio_flags = 0, _bio_buf = 0x0, 
    bio_error = 0, bio_resid = 0, bio_done = 0xc01cfab8 <bufdonebio>, 
    bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, 
    bio_caller2 = 0xc69b09ec, bio_queue = {tqe_next = 0xc69aa38c, 
      tqe_prev = 0xc18644a4}, bio_pblkno = 69445337, bio_done_chain = 0x0}, 
  b_op = 0xc02c602c, b_magic = 280038160, b_iodone = 0, b_offset = 0, 
  b_hash = {le_next = 0xc6a59bc0, le_prev = 0xc6a6f9e4}, b_vnbufs = {
    tqe_next = 0x0, tqe_prev = 0xd135d2d4}, b_freelist = {
    tqe_next = 0xc69a488c, tqe_prev = 0xc6a3dc50}, b_act = {tqe_next = 0x0, 
    tqe_prev = 0x0}, b_flags = 537006752, b_qindex = 3, b_xflags = 1 '\001', 
  b_lock = {lk_interlock = 0xc0e58e30, lk_flags = 0, lk_sharecount = 0, 
    lk_waitcount = 0, lk_exclusivecount = 0, lk_prio = 80, 
    lk_wmesg = 0xc02941ad "bufwait", lk_timo = 0, lk_lockholder = -1}, 
  b_bufsize = 4096, b_runningbufspace = 0, 
  b_kvabase = 0xc6ca4000 
"\222V\234\207p0R=5MF\b,'\022m\002\231W{\004\206\032\036s\013\r\031\200\027\024\032tֶd\030\016o\223}\215\034L\av\025;\236\035M\021\b!\\",
 b_kvasize = 16384, b_lblkno = 0, 
  b_vp = 0xd135d2a0, b_dirtyoff = 0, b_dirtyend = 0, b_rcred = 0x0, 
  b_wcred = 0x0, b_saveaddr = 0x0, b_pager = {pg_spc = 0x0, pg_reqpage = 0}, 
  b_cluster = {cluster_head = {tqh_first = 0xc69ab058, tqh_last = 0xc69fcd54}, 
    cluster_entry = {tqe_next = 0xc69ab058, tqe_prev = 0xc69fcd54}}, 
  b_pages = {0xc0a239e8, 0x0 <repeats 31 times>}, b_npages = 1, b_dep = {
    lh_first = 0xc191db00}}
---snip---

output of "ps auxww":
---snip---
(17) root@ttyp0 # ps auxww -N /sys/i386/compile/WORK/kernel.debug -M 
/var/crash/vmcore.20
USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
nobody   483 85.8  0.0   772    0  ??  RNs   3:43PM 166:40.38  (dnetc)
root     499  5.7  0.0 19868    0  ??  Rs    3:43PM  18:46.64  (XFree86)
root      10  0.0  0.0     0    0  ??  RL    5:43PM   0:06.58  (idle)
root      11  0.0  0.0     0    0  ??  WL    5:43PM   0:00.52  (swi1: net)
root      12  0.0  0.0     0    0  ??  RL    5:43PM   1:21.03  (swi6: tty:sio clock)
root      13  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (swi4: vm)
root      14  0.0  0.0     0    0  ??  DL    5:43PM   0:12.71  (random)
root      15  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (swi2: camnet)
root      16  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (swi3: cambio)
root      17  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (swi5: task queue)
root      18  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq11: uhci0 pcm1)
root      19  0.0  0.0     0    0  ??  ML    5:43PM   0:03.52  (irq14: ata0)
root      20  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq15: ata1)
root      21  0.0  0.0     0    0  ??  DL    5:43PM   0:00.00  (usb0)
root      22  0.0  0.0     0    0  ??  WL    5:43PM   1:40.87  (irq10: ahc0 pcm0)
root      23  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq5: xl0)
root      24  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq6: fdc0)
root      25  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (swi0: tty:sio)
root      26  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq4: sio0)
root      27  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq7: ppc0)
root      28  0.0  0.0     0    0  ??  WL    5:43PM   0:02.51  (irq1: atkbd0)
root      29  0.0  0.0     0    0  ??  WL    5:43PM   0:03.19  (irq12: psm0)
root      30  0.0  0.0     0    0  ??  WL    5:43PM   0:24.84  (irq3: isic0)
root      31  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq0: clk)
root      32  0.0  0.0     0    0  ??  WL    5:43PM   0:00.00  (irq8: rtc)
root       2  0.0  0.0     0    0  ??  DL    5:43PM   0:00.10  (pagedaemon)
root       3  0.0  0.0     0    0  ??  DL    5:43PM   0:00.00  (vmdaemon)
root       4  0.0  0.0     0    0  ??  DL    5:43PM   0:00.00  (pagezero)
root       5  0.0  0.0     0    0  ??  DL    5:43PM   0:00.17  (bufdaemon)
root       6  0.0  0.0     0    0  ??  DL    5:43PM   0:03.06  (syncer)
root     363  0.0  0.0  2848    0  ??  DLs   3:43PM   0:00.62  (sendmail)
root     486  0.0  0.0  2940    0  ??  Ss    3:43PM   0:00.04  (xdm)
root    9837  0.0  0.0   828    0  ??  S     7:28PM   0:00.00  (sh)
root       0  0.0  0.0     0    0  ??  DLs   5:43PM   0:00.06  (swapper)
root    9838  0.0  0.0   368    0  ??  DL    7:28PM   0:00.00  (rotatelogs)
root       1  0.0  0.0   680    0  ??  SLs   5:43PM   0:00.03  (init)
---snip---

Bye,
Alexander.

-- 
   "One world, one web, one program"  -- Microsoft promotional ad
         "Ein Volk, ein Reich, ein Fuehrer"  -- Adolf Hitler

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


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

Reply via email to