Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 00:28:11 +0800
From:      Huang wen hui <hwh@mail.gddsn.org.cn>
To:        freebsd-current <freebsd-current@freebsd.org>, freebsd-java@freebsd.org
Subject:   Crash -CURRENT BOX while jdk-p7 with gdb
Message-ID:  <3D46BE9B.5000906@mail.gddsn.org.cn>

next in thread | raw e-mail | index | archive | help
I got a problem with jdk-p7+XIM input server. I try to use gdb to find out.
But if I run gdb on X11, -CURRENT(07/29) box will crash immediately:

gdb> file /usr/local/jdk1.3.1/bin/i386/green_threads/java_g
gdb> run -version

panic: blockable sleep lock (sleep mutex) sellck @
../../../kern/sys_generic.c:1178
Debugger("panic")
Stopped at Debugger+0x45: xchgl %ebx, in_Debugger.0
db>tr
Debugger(c043bffc) at Debugger+0x45
Panic(.....) at panic+0x7c
witness_lock(...) at witness_lock+0x7f
_mtx_lock_flags(...) at _mxt_lock_flags+0x6b
selwakeup(...) at selwakeup+0x1e
ptcwakeup(...) at ptcwakeup+0x23
ptsstart(...) at ptsstart+0x2c
ttstart(...) at ttstart+0x16
tputchar(...) at tputchar+0x35
putchar(...) at putchar+0x55
kvprintf(...) at kvprintf+0x77
printf(...) at printf+0x43
userret(...) at userret+0xd9
ast(...) at ast+02b5
doreti_ast() at doreti_ast+0x1a


On text console, -CURRENT box will not crash. and I got msg:
gdb> file /usr/local/jdk1.3.1/bin/i386/green_threads/java_g
gdb> run -version

lock order reversal
1st 0xc44e0180 pipe mutex (pipe mutex) @ ../../../kern/sys_pipe.c:451
2nd 0xc04af6c0 sigio lock (sigio lock) @ ../../../kern/kern_sig.c:2014

failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()
failed to set signal flags properlyt for ast()

I comment printf in function "userret " in file
/usr/src/sys/kern/subr_trap.c

the box does not crash now. so It is not safe for using printf in
/usr/src/sys/kern/subr_trap.c ?

--hwh



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D46BE9B.5000906>