Re: trap 12 with interrupts disabled, need 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
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Contributing to FreeBSD documentation (was: Re: no ath0 on new system with good card)
    ... > freebsd site. ... IIRC it is mentioned in the Developer's Handbook, ... documentation people hang out. ... The primary method of disabling drivers ...
    (freebsd-questions)
  • Timedia 8 port serial pci card problem
    ... I run FreeBSD 7-Stable on my soekris net 5501 with a "8 Port Timedia Serial PCI Card". ... only adds 3 uart ports instead of 8. ... isa_probe_children: disabling PnP devices ...
    (freebsd-stable)
  • Re: no ath0 on new system with good card
    ... which doesn't show up anywhere on the freebsd site. ... Further, I'd like to write a handbook page on "freebsd and laptops", ... Can you try disabling this controller and see if ... In "safe mode" ACPI is disabled, and this may be why your cbb0 ...
    (freebsd-questions)
  • Re: vlan issues with 7.0-RC3
    ... Any attempt to ssh to OpenWRT or dig ... When I try to connect *to* the FreeBSD box from the other lan segment, ... Thinking it was a problem with the not-so-cheap Linksys POS (bitterness ... Try disabling hardware features one by one in mskand see how ...
    (freebsd-net)
  • Re: vlan issues with 7.0-RC3
    ... Any attempt to ssh to OpenWRT or dig ... If I do a tcpdump, I see the SYN or A? ... When I try to connect *to* the FreeBSD box from the other lan segment, ... Try disabling hardware features one by one in mskand see how ...
    (freebsd-net)