tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ne(4) mismatched psref target class



Hi!

I am trying to fix a kernel panic with the NE2000-based ne(4) network device
on port-amiga for 8.0. It occurs as soon as ifconfig(8) is used.

panic: kernel diagnostic assertion "(target->prt_class == class)" failed:
file /home/frank/netbsd/8/src/sys/kern/subr_psref.c", line 239 mismatched
psref target class: 0x0 (ref) != 0x6d502b0 (expected)

The backtrace:
- kern_assert
- psref_acquire
- ifa_acquire
- sysctl_iflist
- sysctl_rtable
- sysctl_dispatch
- sys___sysctl
- syscall_plain
- syscall(ca)

The problem disappears when I remove the ne(4) device from the kernel. Users
told me that there is no such problem with other network devices (e.g. the
PCMCIA-based ne(4)).

It looks like the prt_class was not correctly set up for ne(4)? But I don't
know why and where this should happen. Neither the MD
sys/arch/amiga/dev/if_ne_xsurf.c nor any of the MI sys/dev/ic/ne2000* files
changed over the last four years, and a 7.99.29 kernel didn't crash. So I'm
quite confused what has changed to break it.

Any hints?

-- 
Frank Wille



Home | Main Index | Thread Index | Old Index