On Mon, Jul 03, 2017 at 09:20:51PM +0200, Gregor Best wrote:
> With this commit in, I get a panic like the one below. That's a
> transcription from a photo of the screen, the photo itself is at [0].
I can reproduce it with regress /usr/src/regress/lib/libtls on i386.
root@ot1:.../libtls# make regress
===> gotls
cd /usr/src/regress/lib/libtls/gotls && go test -test.v .
=== RUN TestTLSBasic
login: panic: rw_enter: netlock locking against myself
Stopped at db_enter+0x7: leave
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*391817 97290 0 0x3 0x4000000 1 gotls.test
db_enter(d09ffd84,f5778d78,d0b0c268,f5778d78,7c966) at db_enter+0x7
panic(d0b0c268,d0ab74ae,f5778dcc,d04468de,d5d9f700) at panic+0x71
_rw_enter(d0bded30,1,f5778e3c,d04462b4,d0c3a6a0) at _rw_enter+0x1b4
_rw_enter_write(d0bded30,0,d55215f4,80,14) at _rw_enter_write+0x3c
solock(d56079dc,0,da46f314,0,d50122e4) at solock+0x2c
filt_solisten(d565716c,0,f5778e6c,d05c3f8c,d0bded30) at filt_solisten+0x48
knote(d5607a58,0,f5778ec8,f5778ec0,0) at knote+0x2d
doaccept(d50122e4,3,4c51fe0c,4c51fe04,2000) at doaccept+0x31a
sys_accept(d50122e4,f5778f54,f5778f7c,0,f5778fa8) at sys_accept+0x37
syscall() at syscall+0x250
--- syscall (number 0) ---
*97290 391817 69172 0 7 0x4000003 gotls.test
bluhm