stable/11 debugging kernel unable to produce crashdump

Eugene Grosbein eugen at grosbein.net
Sat Jan 14 11:40:22 UTC 2017


> I suspect that this is because we only stop the scheduler upon a panic
> if SMP is configured. Can you retest with the patch below applied?
> 
> Index: sys/kern/kern_shutdown.c
> ===================================================================
> --- sys/kern/kern_shutdown.c	(revision 312082)
> +++ sys/kern/kern_shutdown.c	(working copy)
> @@ -713,6 +713,7 @@
>  		CPU_CLR(PCPU_GET(cpuid), &other_cpus);
>  		stop_cpus_hard(other_cpus);
>  	}
> +#endif
>  
>  	/*
>  	 * Ensure that the scheduler is stopped while panicking, even if panic
> @@ -719,7 +720,6 @@
>  	 * has been entered from kdb.
>  	 */
>  	td->td_stopsched = 1;
> -#endif
>  
>  	bootopt = RB_AUTOBOOT;
>  	newpanic = 0;
> 
> 

Indeed, my router is uniprocessor system and your patch really solves the problem.
Now kernel generates crashdump just fine in case of panic. Please commit the fix, thanks!

Eugene Grosbein




More information about the freebsd-stable mailing list