panic: deadlkres: possible deadlock detected for 0xfffff80141b04560, blocked for 1801695 ticks
Andriy Gapon
avg at FreeBSD.org
Thu Apr 12 06:11:50 UTC 2018
On 12/04/2018 07:00, Eitan Adler wrote:
> How to reproduce?
>
> # kldload sem
> # kldunload sem
> < wait debug.deadlkres.slptime_threshold seconds >
>
> https://reviews.freebsd.org/P168
> Reading symbols from ./kernel/kernel...Reading symbols from
> /usr/home/eax/crashes/sem_load_dklres/kernel/kernel.debug...done.
> done.
>
> Unread portion of the kernel message buffer:
> [29474] panic: deadlkres: possible deadlock detected for
> 0xfffff80141b04560, blocked for 1801695 ticks
The debugging information you provided does not help.
You need to do
(gdb) p *(struct thread*)0xfffff80141b04560 <=== taken from the panic message
find td_tid value and then do
(gdb) tid <td_tid>
And then examine that thread.
I guess that the deadlkres could be enhanced to print the tid and the stack
trace of the deadlocked thread, so that it is faster to get started.
--
Andriy Gapon
More information about the freebsd-hackers
mailing list