NetBSD-Bugs archive

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

kern/52324: assertion "(target->prt_class == class)" failed: subr_psref.c", line 285

>Number:         52324
>Category:       kern
>Synopsis:       assertion "(target->prt_class == class)" failed: subr_psref.c", line 285
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 22 19:40:00 +0000 2017
>Originator:     Tobias Nygren
>Release:        8.99.1 amd64
I can reliably trigger this panic from userland by running a certain java application.

panic: kernel diagnostic assertion "(target->prt_class == class)" failed: file "/work/src/sys/kern/subr_psref.c", line 285 mismatched psref target class: 0x0 (ref) != 0xffffe400bfe0ed08 (expected)
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip 0xffffffff802249f5 cs 0x8 rflags 0x246 cr2 0x10020f000 ilevel 0x4 rsp 0xffffe40045b75b60
curlwp 0xffffe400beb28200 pid 533.2 lowest kstack 0xffffe40045b722c0
dumping to dev 20,1 (offset=14682167, size=786319):

I'll leave out the exact details since it might be possible for unprivileged userland to mess with the kernel if DIAGNOSTIC/DEBUG is not enabled. Ping me off-list for details.
A workaround seems to be to launch the program with

Home | Main Index | Thread Index | Old Index