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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to