Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 15:37:45 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        chandrabhagat@gmail.com, Sharad Chandra <sharadc@in.niksun.com>
Subject:   Re: trap 12 with interrupts disabled, need help
Message-ID:  <200712281537.46201.jhb@freebsd.org>
In-Reply-To: <200712281127.53084.sharadc@in.niksun.com>
References:  <200712281127.53084.sharadc@in.niksun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 28 December 2007 12:57:52 am Sharad Chandra wrote:
> Hi,
> 
> 	I got a message on first boot "pid <no> (<name>): trap 12 with interrupts 
> disabled", then it hanged and hard boot is required.
> It does not appears all the time.
> 
> I tried to figure out the problem, trap 12 is stack exception, find at the 
> last
> http://www.acm.uiuc.edu/sigops/roll_your_own/i386/idt.html
> and is coming from kernel,
> The location of this message is /usr/src/
> sys/amd64/amd64/trap.c:                     "pid %ld (%s): trap %d with 
> interrupts disabled\n",
> 
> What does this exception mean, and what could be possible reason that my 
> program is doing wrong? How to handle it
> 
> Platform: freebsd 6.1 on amd64

Trap numbers in FreeBSD don't quite match up to x86 IDT indices, so trap 12 ia 
actually a page fault.  If it's from userland then somehow userland is 
disabling interrupts which is bad.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712281537.46201.jhb>