Subject: uvisor interaction breaks assertion in sys/kern/sys_generic.c
To: None <current-users@netbsd.org>
From: Aleksej Saushev <asau@hotbox.ru>
List: current-users
Date: 09/10/2007 18:47:14
  Hello!

I use pilot-xfer package (from pkgsrc's comms/pilot-link)
to communicate to Palm device. But since few weeks ago I'm unable to.

I've rebuilt kernel with DIAGNOSIC, DEBUG, UVISOR_DEBUG,
USB_DEBUG, and LOCKDEBUG.  Now I find that pilot-xfer call
results in

panic: kernel diagnostic assertion "sip->sel_lwp == l" failed;
file "/usr/src/sys/kern/sys_generic.c", line 1215

According to the source sys_generic.c 1.106 is used.

In messages I see this:

ehci0: handing over full speed device on port 7 to uhci3
uhub4: port 7, device disappeared after reset
uvisor0 at uhub3 port 1
<empty message>
uvisor0: Palm, Inc. Palm-Handheld, rev 1.00/1.00, addr 3
ucom0 at uvisor0 portno 0: sync
uvisor0: at uhub3 port 1 (addr 3) disconnected
ucom0 detached
uvisor0 detached

Panic occurs after "uvisor0 detached" message.

Unfortunately I cannot provide more information, because system
hangs after DDB "sync" command (is it intentional?).
Any help is appreciated.

Please, CC me when answering, I'm not subscribed to the list.