Sleeping thread (tid 100033, pid 16): panic in FreeBSD 10.0-CURRENT/amd64 r228662

Andriy Gapon avg at FreeBSD.org
Tue Dec 20 14:00:21 UTC 2011


on 20/12/2011 15:52 John Baldwin said the following:
> -#ifdef DDB
> -			db_trace_thread(td, -1);
> +#ifdef STACK
> +			stack_zero(&st);
> +			stack_save_td(&st, td);
> +			stack_print_ddb(&st);
>  #endif

This leads to an idea - what about an umbrella stack_print() that would call the
best stack printing routine, if any, based on their availabilities (STACK, DDB,
etc?).

P.S. Sorry to hijack the thread.

-- 
Andriy Gapon


More information about the freebsd-current mailing list