Debugging via DDB

Kip Macy kmacy at freebsd.org
Fri May 29 06:04:31 UTC 2009


On Thu, May 28, 2009 at 9:27 PM, David N <davidn04 at gmail.com> wrote:
> Hi,
>
> I know this might sound like a newbie question.
>
> I'm trying to debug a "Lockup" on 7.2-RELEASE. I've compiled DDB and
> KDB into the kernel and make installkernel. (Can this be called a
> deadlock?)
>
> The machine still response to pings, but it looks like all disk
> activity has stopped.
>
> I can break into the debugger using CTRL-ALT-ESC, but after that, i
> dont know what I'm looking for in particular.
>
> bt (backtrace) gives me the stuff like the keyboard mutex ( i assume
> it was the last thing that happened, but obviously it was the break)
>
> Should I be including WITNESS?

Include WITNESS.  "ps" to list processes, "show proc" to see proc
info, "thread <no>" to switch to a thread, "show locks" to see locks
held, show sleepc to see what you're blocked on (if a sleepq), and
"show alllocks" to see all locks held
-Kip


More information about the freebsd-hackers mailing list