KSE test code (src/tools/KDE/ksetest) panic

2003-03-22 Thread Peter Kostouros
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 

KSE test code?

2003-03-10 Thread Ivan Voras

Is there any example code available that just tests (a proof of
concept-like) the KSE system on FreeBSD 5-current?

--
Ashes to ashes, DOS to DOS
ivoras @ fer.hr

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


Re: KSE test code?

2003-03-10 Thread David Schultz
Thus spake Ivan Voras [EMAIL PROTECTED]:
 Is there any example code available that just tests (a proof of
 concept-like) the KSE system on FreeBSD 5-current?

See src/tools/KSE/ksetest.

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


Re: KSE test code?

2003-03-10 Thread Julian Elischer


On Mon, 10 Mar 2003, David Schultz wrote:

 Thus spake Ivan Voras [EMAIL PROTECTED]:
  Is there any example code available that just tests (a proof of
  concept-like) the KSE system on FreeBSD 5-current?
 
 See src/tools/KSE/ksetest.

also the library is mostly working

so:

cd /usr/lib/libpthreads
make
make install
This installs a libkse which, when we are happy with it will become
libpthreads, but until then it has this special name..

get some test threads programs and link with -lkse
remember to disable -pthreads

see what happens.
There is a fix for ^Z being committed in the next day or so..



 
 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


Re: KSE test code?

2003-03-10 Thread leafy
On Mon, Mar 10, 2003 at 11:53:40AM -0800, Julian Elischer wrote:
 cd /usr/lib/libpthreads
 make
 make install
 This installs a libkse which, when we are happy with it will become
 libpthreads, but until then it has this special name..
 
 get some test threads programs and link with -lkse
 remember to disable -pthreads
 
 see what happens.
 There is a fix for ^Z being committed in the next day or so..
 
Hi,

I tried to compile the test under libpthread but ended up waiting for it to finish 
with :
Test static library:
--
Test  c_user c_system c_total chng
 passed/FAILEDh_user h_system h_total   % chng
--
hello_d 0.00 0.000.00
 passed
--
hello_s 0.00 0.010.01
 passed
--
join_leak_d 0.15 0.090.24
 *** FAILED ***
--
mutex_d

Anything I've missed?

Jiawei
-- 
Without the userland, the kernel is useless.
 --inspired by The Tao of Programming

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