The task_backtrace (aliased as tbt) command allows viewing the backtrace of a task which is currently not running.
task_backtrace
tbt