debugging frequent kernel panics on 8.2-RELEASE

Andriy Gapon avg at FreeBSD.org
Wed Aug 17 11:26:55 UTC 2011


on 17/08/2011 14:12 Andriy Gapon said the following:
> A little bit later I will send you another patch that, I hope, will produce better
> diagnostics for this crash (without DDB in kernel).

The patch:
Index: sys/amd64/amd64/trap.c
===================================================================
--- sys/amd64/amd64/trap.c	(revision 224782)
+++ sys/amd64/amd64/trap.c	(working copy)
@@ -198,6 +198,10 @@
 	PCPU_INC(cnt.v_trap);
 	type = frame->tf_trapno;

+	if ((uintptr_t)frame->tf_rip >= (uintptr_t)&lim_rlimit
+	    && (uintptr_t)frame->tf_rip < (uintptr_t)&lim_rlimit + 40)
+		panic("trap in lim_rlimit");
+
 #ifdef SMP
 	/* Handler for NMI IPIs used for stopping CPUs. */
 	if (type == T_NMI) {

-- 
Andriy Gapon


More information about the freebsd-stable mailing list