riastradh / netbsd-src

Automatic conversion of the NetBSD src CVS module, use with care
https://www.NetBSD.org
3 stars 1 forks source link

panic: LOCKDEBUG: Mutex error: mutex_vector_enter,512: assertion failed: !cpu_intr_p() #21

Open alarixnia opened 3 years ago

alarixnia commented 3 years ago
[   204.963263] i915drmkms0: notice: Resetting rcs0 for stopped heartbeat on rcs0
[   204.963263] i915drmkms0: notice: X[2811] context reset due to GPU hang
[   241.051281] fatal breakpoint trap in supervisor mode
[   241.051281] trap type 1 code 0 rip 0xffffffff80221a35 cs 0x8 rflags 0x202 cr2 0x7f7ff7e9d000 ilevel 0x6 rsp 0xff
ffc380aaa04d58
[   241.051281] curlwp 0xfffff42aa6a17040 pid 0.2 lowest kstack 0xffffc380aaa002c0
fatal breakpoint trap in supervisor mode
[   241.051281] trap type 1 code 0 rip 0xffffffff80221a35 cs 0x8 rflags 0x202 cr2 0x7f7ff7e9d000 ilevel 0x8 rsp 0xff
ffc380aaa04620
[   241.051281] curlwp 0xfffff42aa6a17040 pid 0.2 lowest kstack 0xffffc380aaa002c0
Mutex error: mutex_vector_enter,512: assertion failed: !cpu_intr_p()

[   241.051281] lock address : 0xffffffff818a4580 type     :     sleep/adaptive
[   241.051281] initialized  : 0xffffffff80da7159
[   241.051281] shared holds :                  0 exclusive:                  0
[   241.051281] shares wanted:                  0 exclusive:                  0
[   241.051281] relevant cpu :                  0 last held:                  0
[   241.051281] relevant lwp : 0xfffff42aa6a17040 last held: 000000000000000000
[   241.051281] last locked  : 0xffffffff80dc0180 unlocked*: 0xffffffff80d4e965
[   241.051281] owner field  : 000000000000000000 wait/spin:                0/0
[   241.051281] Turnstile: no active turnstile for this lock.
[   241.051281] panic: LOCKDEBUG: Mutex error: mutex_vector_enter,512: assertion failed: !cpu_intr_p()
alarixnia commented 3 years ago

Trace (unsure if useful)

[   241.051281] vpanic() at netbsd:vpanic+0x156
[   241.051281] device_printf() at netbsd:device_printf
[   241.051281] lockdebug_more.part.0() at netbsd:lockdebug_more.part.0
[   241.051281] mutex_enter() at netbsd:mutex_enter+0x641
[   241.051281] suspendsched() at netbsd:suspendsched+0x19
[   241.051281] cpu_reboot() at netbsd:cpu_reboot+0x46
[   241.051281] sys_reboot() at netbsd:sys_reboot
[   241.051281] db_sifting_cmd() at netbsd:db_sifting_cmd
[   241.051281] db_command() at netbsd:db_command+0x123
[   241.051281] db_command_loop() at netbsd:db_command_loop+0xa6
[   241.051281] db_trap() at netbsd:db_trap+0xe9
[   241.051281] kdb_trap() at netbsd:kdb_trap+0x106
[   241.051281] trap() at netbsd:trap+0x2f2
[   241.051281] --- trap (number 1) ---
[   241.051281] breakpoint() at netbsd:breakpoint+0x5
[   241.051281] wskbd_translate() at netbsd:wskbd_translate+0x10a9
[   241.051281] wskbd_cngetc() at netbsd:wskbd_cngetc+0xcb
[   241.051281] wsdisplay_getc() at netbsd:wsdisplay_getc+0x1c
[   241.051281] cngetc() at netbsd:cngetc+0x3c
[   241.051281] db_putchar() at netbsd:db_putchar+0x13f
[   241.051281] kprintf() at netbsd:kprintf+0x277
[   241.051281] db_printf() at netbsd:db_printf+0x4a
[   241.051281] db_show_regs() at netbsd:db_show_regs+0x7e
[   241.051281] db_command() at netbsd:db_command+0x123
[   241.051281] db_command_loop() at netbsd:db_command_loop+0x1af
[   241.051281] db_trap() at netbsd:db_trap+0xe9
[   241.051281] kdb_trap() at netbsd:kdb_trap+0x106
[   241.051281] trap() at netbsd:trap+0x2f2
[   241.051281] --- trap (number 1) ---
[   241.051281] breakpoint() at netbsd:breakpoint+0x5
[   241.051281] wskbd_translate() at netbsd:wskbd_translate+0x10a9
[   241.051281] wskbd_input() at netbsd:wskbd_input+0xbe
[   241.051281] pckbd_input() at netbsd:pckbd_input+0x65
[   241.051281] pckbcintr() at netbsd:pckbcintr+0x6a
[   241.051281] intr_biglock_wrapper() at netbsd:intr_biglock_wrapper+0x21
[   241.051281] Xhandle_ioapic_edge1() at netbsd:Xhandle_ioapic_edge1+0x74
[   241.051281] --- interrupt ---
[   241.051281] x86_mwait() at netbsd:x86_mwait+0xd
[   241.051281] acpicpu_cstate_idle() at netbsd:acpicpu_cstate_idle+0x19b
[   241.051281] idle_loop() at netbsd:idle_loop+0x13a
[   241.051281] cpu0: End traceback...
riastradh commented 3 years ago

Got a line number for rip 0xffffffff80221a35? (or whatever the faulting rip is if you can reproduce this)

riastradh commented 3 years ago

ddb reboot might work better in the branch now too