#15226: KDL: attempt to acqure lock twice on non-SMP system
-------------------------+----------------------------
Reporter: nephele | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------
Comment (by nephele):
this is also quite easily reproducible by attaching a debugger to
something and killing the debugger (similar to 15223 maybe)
{{{
KERN: kdebug> contiunueKERN: PANIC: acquire_spinlock: attempt to acquire
lock 0xffffffff81f225a0 twice on non-SMP system (last caller:
0x0000000000000000, value 81f225ac)
KERN: Welcome to Kernel Debugging Land...
KERN: Thread 588 "team 457 debug task" running on CPU 0
KERN: stack trace for thread 588 "team 457 debug task"
KERN: kernel stack: 0xffffffff81f1e000 to 0xffffffff81f23000
KERN: frame caller <image>:function +
offset
KERN: 0 ffffffff81f222c8 (+ 24) ffffffff8014db7c <kernel_x86_64>
arch_debug_call_with_fault_handler + 0x16
KERN: 1 ffffffff81f222e0 (+ 80) ffffffff800ad638 <kernel_x86_64>
debug_call_with_fault_handler + 0x88
KERN: 2 ffffffff81f22330 (+ 96) ffffffff800aefc1 <kernel_x86_64>
kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
KERN: 3 ffffffff81f22390 (+ 80) ffffffff800af2be <kernel_x86_64>
kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) +
0x6e
KERN: 4 ffffffff81f223e0 (+ 240) ffffffff800af627 <kernel_x86_64> panic
+ 0xb7
KERN: 5 ffffffff81f224d0 (+ 48) ffffffff80077869 <kernel_x86_64>
acquire_spinlock + 0x129
KERN: 6 ffffffff81f22500 (+ 64) ffffffff80055614 <kernel_x86_64>
ConditionVariable::_Notify(bool, int) + 0x34
KERN: 7 ffffffff81f22540 (+ 32) ffffffff800c5429 <kernel_x86_64>
finish_debugger_change(BKernel::Team*) + 0x49
KERN: 8 ffffffff81f22560 (+ 304) ffffffff800c56cd <kernel_x86_64>
nub_thread_cleanup(BKernel::Thread*) + 0x14d
KERN: 9 ffffffff81f22690 (+2336) ffffffff800c6d78 <kernel_x86_64>
debug_nub_thread(void*) + 0x9b8
KERN: 10 ffffffff81f22fb0 (+ 32) ffffffff8008a6a7 <kernel_x86_64>
common_thread_entry(void*) + 0x37
KERN: 11 ffffffff81f22fd0 (+2114834480) ffffffff81f22fe0
KERN: kdebug> continueKERN: acquire_advisory_lock(vnode =
0xffffffffa1eeeb80, flock = 0xffffffff81d91e90, wait = no)
Last message repeated 1 time
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15226#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.