Hi

I receive panics when running this test program. The system was cvsup'ed and built on Mar 21. I hope the attached trace is helpful.

--

Regards

Peter

As always the organisation disavows knowledge of this email


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


Script started on Sat Mar 22 22:56:08 2003
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
panic: mi_switch: switch in a critical section
panic messages:
---
panic: blockable sleep lock (sleep mutex) process lock @ 
/mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c:728

syncing disks, buffers remaining... panic: mi_switch: switch in a critical section
Uptime: 2h5m17s
Dumping 511 MB
ata0: resetting devices ..
done
 16 32 48 64[CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort]  80 96 112 128 144 
160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496
---
Reading symbols from 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/linux/linux.ko.debug
Reading symbols from 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/acpi/acpi.ko.debug
Reading symbols from 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/linprocfs/linprocfs.ko.debug...done.
Loaded symbols for 
/usr/obj/mnt/cvs/FreeBSD/usr/src/sys/EVA/modules/mnt/cvs/FreeBSD/usr/src/sys/modules/linprocfs/linprocfs.ko.debug
#0  doadump () at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:239
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:239:6799:beg:0xc02397eb
(kgdb) bt
#0  doadump () at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:239
#1  0xc0239e13 in boot (howto=260) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:371
#2  0xc023a113 in panic () at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:542
#3  0xc0240731 in mi_switch () at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_synch.c:466
#4  0xc0240075 in msleep (ident=0xc0478c14, mtx=0xc0478c20, priority=68, 
wmesg=0xc03cf9a1 "wdrain", 
    timo=0) at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_synch.c:248
#5  0xc027d542 in bwrite (bp=0xcc26bdf0) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/vfs_bio.c:357
#6  0xc027dcec in bawrite (bp=0x0) at /mnt/cvs/FreeBSD/usr/src/sys/kern/vfs_bio.c:1143
#7  0xc02858da in cluster_wbuild (vp=0xc40f0b68, size=16384, start_lbn=48, len=8)
    at /mnt/cvs/FreeBSD/usr/src/sys/kern/vfs_cluster.c:965
#8  0xc027f099 in vfs_bio_awrite (bp=0xcc2a3d68) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/vfs_bio.c:1681
#9  0xc032cc72 in ffs_fsync (ap=0xd32029f8) at 
/mnt/cvs/FreeBSD/usr/src/sys/ufs/ffs/ffs_vnops.c:255
#10 0xc032be1e in ffs_sync (mp=0xc204fa00, waitfor=2, cred=0xc150ae00, td=0xc0417540) 
at vnode_if.h:612
#11 0xc029242b in sync (td=0xc0417540, uap=0x0) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/vfs_syscalls.c:138
#12 0xc0239973 in boot (howto=256) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:280
#13 0xc023a113 in panic () at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:542
#14 0xc025bb2f in witness_lock (lock=0xc151ea68, flags=8, 
    file=0xc03e12df "/mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c", line=728)
    at /mnt/cvs/FreeBSD/usr/src/sys/kern/subr_witness.c:574
#15 0xc02304a1 in _mtx_lock_flags (m=0xc151fa00, opts=0, 
    file=0xc03e12df "/mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c", line=-1051596184)
    at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_mutex.c:336
#16 0xc03868ed in trap_pfault (frame=0xd3202bc0, usermode=0, eva=404)
    at /mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c:728
#17 0xc038658d in trap (frame=
      {tf_fs = 24, tf_es = -752877552, tf_ds = -1037565936, tf_edi = 0, tf_esi = 400, 
tf_ebp = -752866288, tf_isp = -752866324, tf_ebx = 49, tf_edx = -1051592192, tf_ecx = 
-1040472000, tf_eax = -1069424904, tf_trapno = 12, tf_err = 2, tf_eip = -1071385900, 
tf_cs = 8, tf_eflags = 66118, tf_esp = -1069765046, tf_ss = -1040472000}) at 
/mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c:444
#18 0xc0376e48 in calltrap () at {standard input}:96
#19 0xc024be4f in sched_rem (ke=0x31) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:252
#20 0xc023efe0 in setrunqueue (td=0x31) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_switch.c:345
#21 0xc024b95c in sched_wakeup (td=0xc3c99400) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:604
#22 0xc02409d0 in setrunnable (td=0xc3c99400) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_synch.c:582
#23 0xc02403ad in endtsleep (arg=0xc3c99400) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_synch.c:339
#24 0xc024842c in softclock (dummy=0x0) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_timeout.c:195
#25 0xc0227732 in ithread_loop (arg=0xc151d180) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_intr.c:536
#26 0xc0226804 in fork_exit (callout=0xc15139c0, arg=0x0, frame=0x0)
    at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_fork.c:875
(kgdb) up 20
#20 0xc023efe0 in setrunqueue (td=0x31) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_switch.c:345
/mnt/cvs/FreeBSD/usr/src/sys/kern/kern_switch.c:345:10789:beg:0xc023efe0
(kgdb) l
340                             ke = tda->td_kse;
341                             tda->td_kse = NULL;
342                             ke->ke_thread = NULL;
343                             tda = kg->kg_last_assigned =
344                                 TAILQ_PREV(tda, threadqueue, td_runq);
345                             sched_rem(ke);
346                     }
347             } else {
348                     /* 
349                      * Temporarily disassociate so it looks like the other cases.
(kgdb) p ke
$1 = (struct kse *) 0x0
(kgdb) down 1
#19 0xc024be4f in sched_rem (ke=0x31) at 
/mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:252
/mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:252:8496:beg:0xc024be4f
(kgdb) l
247     }
248     static __inline void
249     kseq_rem(struct kseq *kseq, struct kse *ke)
250     {
251             kseq->ksq_load--;
252             runq_remove(ke->ke_runq, ke);
253     #ifdef SMP
254             kseq->ksq_rslices -= ke->ke_slice;
255     #endif
256     }
(kgdb) p kseq
No symbol "kseq" in current context.
(kgdb) p ke
$2 = (struct kse *) 0x31
(kgdb) q

Script done on Sat Mar 22 23:00:42 2003

Reply via email to