Date: Wed, 17 Aug 2011 14:26:51 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Steven Hartland <killing@multiplay.co.uk> Cc: freebsd-stable@FreeBSD.org Subject: Re: debugging frequent kernel panics on 8.2-RELEASE Message-ID: <4E4BA57B.6050407@FreeBSD.org> In-Reply-To: <4E4BA21F.6010805@FreeBSD.org> References: <47F0D04ADF034695BC8B0AC166553371@multiplay.co.uk><A71C3ACF01EC4D36871E49805C1A5321@multiplay.co.uk><4E4380C0.7070908@FreeBSD.org><EBC06A239BAB4B3293C28D793329F9CA@multiplay.co.uk> <4E43E272.1060204@FreeBSD.org> <62BF25D0ED914876BEE75E2ADF28DDF7@multiplay.co.uk> <4E440865.1040500@FreeBSD.org> <6F08A8DE780545ADB9FA93B0A8AA4DA1@multiplay.co.uk> <4E441314.6060606@FreeBSD.org> <2C4B0D05C8924F24A73B56EA652FA4B0@multiplay.co.uk> <4E48D967.9060804@FreeBSD.org> <9D034F992B064E8092E5D1D249B3E959@multiplay.co.uk> <4E490DAF.1080009@FreeBSD.org> <796FD5A096DE4558B57338A8FA1E125B@multiplay.co.uk> <4E491D01.1090902@FreeBSD.org> <570C5495A5E242F7946E806CA7AC5D68@multiplay.co.uk> <4E4AD35C.7020504@FreeBSD.org> <6A7238AED44542A880B082A40304D940@multiplay.co.uk> <4E4BA21F.6010805@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E4BA57B.6050407>