Crash screenshot

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
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Crash screenshot

Post by Candy »

Just thought I'd let you know I'm not dead and that I've been working on AtlantisOS. Yes, it's still the same OS. No it's not dead, it's just crashed.

I'm still working on the stack trace a bit... want it to print the function names and offsets, which it doesn't right now. It's pretty useful though.

Image
jgraef
Member
Member
Posts: 47
Joined: Wed Jan 16, 2008 7:37 am
Location: Wonsheim, Germany

Post by jgraef »

Hi,

Your exception handler looks nice, but I would change a few things:
* Print name of exception
* For some exceptions you have an errorcode. This can be quite useful for Pagefaults because it says you if the PF was caused by a read or write operation.
* You can get the address of a PF from CR2
* You can also get if a PF was caused by a normal read or by executing wrong memory (just compare CR2 with EIP)

This is a screenshot of my exception handler. The exception is caused by "*((char*)0) = 0". I know the stack trace isn't something special...
Image

EDIT: oh I see, you already print the errorcode, but you could write this a bit user friendlier to screen, because this safes time everytime you have to decode the errorcode to something usable.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

jgraef wrote: * You can also get if a PF was caused by a normal read or by executing wrong memory (just compare CR2 with EIP)
Or, the less ham-handed way, test bit 4 of the error code (1 = faulted on instruction fetch) ;)

Also, Candy's a big boy, I'm 100% certain he knew about CR2 before you were born!

Cheers,

James
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

JamesM wrote:Also, Candy's a big boy, I'm 100% certain he knew about CR2 before you were born!
:lol: :P
User avatar
stevenup7002
Member
Member
Posts: 60
Joined: Tue Sep 20, 2005 11:00 pm
Location: Ireland
Contact:

Post by stevenup7002 »

Image
Nothing wrong with a bit of fun :wink:
Post Reply