NetBSD-Bugs archive

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

kern/51719: rump_server with LOCKDEBUG causes a panic on vfs initialization



>Number:         51719
>Category:       kern
>Synopsis:       rump_server with LOCKDEBUG causes a panic on vfs initialization
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 15 04:50:00 +0000 2016
>Originator:     Ryota Ozaki
>Release:        7.99.48
>Organization:
>Environment:
NetBSD kvm 7.99.48 NetBSD 7.99.48 (KVM) #506: Thu Dec 15 12:56:26 JST 2016  ozaki-r@rangeley:(hidden) amd64
>Description:
rump_server built with RUMP_LOCKDEBUG=yes, which enables LOCKDEBUG in
rump kernels, dies with the following panic message and backtrace:

tc-so:panic: lockdebug_lookup: uninitialized lock (lock=0x7f7ff733af80, from=7f7ff64292cd)
tc-so:rump kernel halting...
tc-so:halted
tc-se:Test program crashed; attempting to get stack trace
tc-se:[New process 1]
tc-se:[New process 14]
tc-se:[New process 13]
tc-se:[New process 12]
tc-se:[New process 11]
tc-se:[New process 10]
tc-se:[New process 9]
tc-se:[New process 8]
tc-se:[New process 7]
tc-se:[New process 6]
tc-se:[New process 5]
tc-se:[New process 4]
tc-se:[New process 3]
tc-se:[New process 2]
tc-se:Core was generated by `t_raw'.
tc-se:Program terminated with signal SIGABRT, Aborted.
tc-se:#0  0x00007f7ff511a41a in _lwp_kill () from /usr/lib/libc.so.12
tc-se:[Current thread is 1 (LWP 1)]
tc-se:#0  0x00007f7ff511a41a in _lwp_kill () from /usr/lib/libc.so.12
tc-se:#1  0x00007f7ff511a025 in abort () from /usr/lib/libc.so.12
tc-se:#2  0x00007f7ff5c0799d in rumpuser_exit () from /usr/lib/librumpuser.so.0
tc-se:#3  0x00007f7ff60a215c in rumpns_cpu_reboot () from /usr/lib/librump.so.0
tc-se:#4  0x00007f7ff6065670 in rumpns_vpanic () from /usr/lib/librump.so.0
tc-se:#5  0x00007f7ff606572b in rumpns_panic () from /usr/lib/librump.so.0
tc-se:#6  0x00007f7ff60575b3 in rumpns_lockdebug_wantlock () from /usr/lib/librump.so.0
tc-se:#7  0x00007f7ff609cc09 in rumpns_rw_enter () from /usr/lib/librump.so.0
tc-se:#8  0x00007f7ff64292cd in rumpns_genfs_lock () from /usr/lib/librumpvfs.so.0
tc-se:#9  0x00007f7ff6059c97 in rumpns_VOP_LOCK () from /usr/lib/librump.so.0
tc-se:#10 0x00007f7ff642e91e in rumpns_vn_lock () from /usr/lib/librumpvfs.so.0
tc-se:#11 0x00007f7ff6445df9 in rumpfs_root () from /usr/lib/librumpvfs.so.0
tc-se:#12 0x00007f7ff643c5a4 in rumpns_VFS_ROOT () from /usr/lib/librumpvfs.so.0
tc-se:#13 0x00007f7ff643e2dd in rumpns_vfs_mountroot () from /usr/lib/librumpvfs.so.0
tc-se:#14 0x00007f7ff6448e62 in ?? () from /usr/lib/librumpvfs.so.0
tc-se:#15 0x00007f7ff60a24b8 in rump_component_init () from /usr/lib/librump.so.0
tc-se:#16 0x00007f7ff60a29e8 in rump_init () from /usr/lib/librump.so.0
tc-se:#17 0x0000000000201f70 in atfu_PRU_SENSE_body ()
tc-se:#18 0x00007f7ff5409bd3 in atf_tc_run () from /usr/lib/libatf-c.so.0
tc-se:#19 0x00007f7ff5406d0d in atf_tp_main () from /usr/lib/libatf-c.so.0
tc-se:#20 0x0000000000201ddb in ___start ()
tc-se:#21 0x00007f7ff7c0570b in _rtld () from /usr/libexec/ld.elf_so
tc-se:#22 0x00007f7fffffef78 in ?? ()
tc-se:#23 0x00007f7fffffef82 in ?? ()
tc-se:#24 0x00007f7fffffef8f in ?? ()
tc-se:#25 0x00007f7fffffef9c in ?? ()
tc-se:#26 0x00007f7fffffefaa in ?? ()
tc-se:#27 0x00007f7fffffefb1 in ?? ()
tc-se:#28 0x0000000000000000 in ?? ()
tc-se:Stack trace complete

>How-To-Repeat:
- Build rump libraries with RUMP_LOCKDEBUG=yes
  - cd sys/rump; /path/to/tools/bin/nbmake-amd64 RUMP_LOCKDEBUG=yes
- Install rump libraries and run a ATF test using rump, e.g., tests/net/net/t_raw
  - cd /usr/tests; atf-run net/net/t_raw
>Fix:
n/a



Home | Main Index | Thread Index | Old Index