Subject: Re: uvisor interaction breaks assertion in sys/kern/sys_generic.c
To: None <current-users@netbsd.org>
From: Aleksej Saushev <asau@inbox.ru>
List: current-users
Date: 09/25/2007 21:17:52
  Hello!

Andrew Doran <ad@netbsd.org> writes:

> On Mon, Sep 10, 2007 at 06:47:14PM +0400, Aleksej Saushev wrote:
>
>> 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.

> I believe this should be fixed with sys_generic 1.107, and matching
> kernel source. Unfortunately I don't have hardware to test with.

This problem is gone, thanks. The kernel does not panic now.

$ find /usr/src/sys -name sys_generic.c -exec ident {} \;
/usr/src/sys/kern/sys_generic.c:
     $NetBSD: sys_generic.c,v 1.107 2007/09/25 13:53:11 ad Exp $
     $NetBSD: sys_generic.c,v 1.107 2007/09/25 13:53:11 ad Exp $

>> 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

This problem persists, I'm still unable to perform backup/synchronise
operations with Palm.

Apparently it requires further investigations on my side, I'll report later.


-- 
Thanks,
Aleksej Saushev