bochs exception 13

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
firas981

bochs exception 13

Post by firas981 »

what is the meaning of this bochs message :

[CPU ] exception(): 3rd (13) exception with no resolution

thanks
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:bochs exception 13

Post by Pype.Clicker »

it means that your kernel issued an illegal instruction that raised a General Protection Fault (invalid segment loading, or something alike), but that you have no proper IDT or exception handler installed for that one, therefore a triple fault occured.

Check out the EIP and other registers values reported by bochs to trace back what went wrong.
firas981

Re:bochs exception 13

Post by firas981 »

thanks
jinksys

Re:bochs exception 13

Post by jinksys »

>edit<
n/m
thought you were someone else with a similar problem.
Therx

Re:bochs exception 13

Post by Therx »

Just a side thought. A while ago I tried searching the intel manual (vol 3) for "triple fault" and it didn't turn up once IIRC. Does intel try to hide that it exists?

Pete
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:bochs exception 13

Post by Brendan »

Hi,
Pete wrote: Just a side thought. A while ago I tried searching the intel manual (vol 3) for "triple fault" and it didn't turn up once IIRC. Does intel try to hide that it exists?
Have a look in the double fault (int 0x08) docs:

"If another exception occurs while attempting to call the double-fault handler, the processor
enters shutdown mode. This mode is similar to the state following execution of an HLT instruction.
In this mode, the processor stops executing instructions until an NMI interrupt, SMI interrupt,
hardware reset, or INIT# is received. The processor generates a special bus cycle to
indicate that it has entered shutdown mode. Software designers may need to be aware of the
response of hardware when it goes into shutdown mode. For example, hardware may turn on an
indicator light on the front panel, generate an NMI interrupt to record diagnostic information,
invoke reset initialization, generate an INIT initialization, or generate an SMI."

I think the term "triple fault" isn't Intel's...

Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply