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

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Tue, 20 Dec 2011 16:00:15 +0200
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
Received on Tue Dec 20 2011 - 13:00:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC