[sheepdog] [PATCH 0/4] show more debug info when program terminates unexpectedly

Liu Yuan namei.unix at gmail.com
Thu Feb 28 09:50:49 CET 2013


On 02/28/2013 01:15 AM, MORITA Kazutaka wrote:
> This patch dumps function arguments and local variabls for each stack,
> and cluster info with GDB when the program terminates unexpectedly.
> 
> Example:
> 
> If the following diff is added,
> ==
> --- a/sheep/sheep.c
> +++ b/sheep/sheep.c
> @@ -719,6 +719,7 @@ int main(int argc, char **argv)
>  	check_host_env();
>  	sd_printf(SDOG_NOTICE, "sheepdog daemon (version %s) started",
>  		  PACKAGE_VERSION);
> +	abort();
>  
>  	while (sys->nr_outstanding_reqs != 0 ||
>  	       (sys->status != SD_STATUS_KILLED &&
> 
> ==

Applied, thanks

Yuan



More information about the sheepdog mailing list