OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 03, 2020 1:49 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 751 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 51  Next
Author Message
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Jan 18, 2011 10:56 pm 
Offline

Joined: Mon Jul 12, 2010 10:00 am
Posts: 2
I think my timer tick interrupt was called while handling an exception. (screen 1)

Image

It's happy about something.

Either that happens or my kernel log gets filled with garbage (screen 2)

Image

edit: can't be running my tick isr, irqs are disabled. Must be something else
edit: seems to be have just jumped to random code before.
Result of doing jmp _shell (which is a C function) before the iret in the exception handler (screen 3)
Probably a result of stuff not being declared volatile - I never do end up iretting from my exception ;). Later i'll try hacking up the stack to jump to _shell when I do an iret. This is NOT supposed to be reliable, this is just fun (and it IS fun. I've always loved executing random data, from Pokemon on Gameboy to smashthestack.org pointing somewhere it shouldn't, on purpose :D I love chaos.)
Image

edit: Fixed it all up by using the old eip where the exception occured as an unsigned short pointer, and set the instruction to 0x9090 - two NOPs. It's crap but it works so for the moment, as my OS's 'feature' is that it's unstable, it's staying :P. All exceptions are handled like this, not just interrupt 0, so i'd love to see what happens when I GPF or something :D. I wasn't implying I needed help before. Just idly discussing the state of my kernel :P

_________________
Define the x86 architecture?
Take a turd from every animal that ever existed and put it all around your "ON" switch- the only way to get to the on switch is through the crap.

Projects: QuenchlessOS - no plan no rules
blaRPG - my RPG.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jan 19, 2011 4:55 am 
Offline
User avatar

Joined: Thu Dec 16, 2010 3:05 am
Posts: 8
doublebeta wrote:

edit: can't be running my tick isr, irqs are disabled. Must be something else
edit: seems to be have just jumped to random code before.
Result of doing jmp _shell (which is a C function) before the iret in the exception handler (screen 3)
Probably a result of stuff not being declared volatile - I never do end up iretting from my exception ;). Later i'll try hacking up the stack to jump to _shell when I do an iret. This is NOT supposed to be reliable, this is just fun (and it IS fun. I've always loved executing random data, from Pokemon on Gameboy to smashthestack.org pointing somewhere it shouldn't, on purpose :D I love chaos.)
...
edit: Fixed it all up by using the old eip where the exception occured as an unsigned short pointer, and set the instruction to 0x9090 - two NOPs. It's crap but it works so for the moment, as my OS's 'feature' is that it's unstable, it's staying :P. All exceptions are handled like this, not just interrupt 0, so i'd love to see what happens when I GPF or something :D. I wasn't implying I needed help before. Just idly discussing the state of my kernel :P


Don't panic - all is fine as long as you remember to blink and breathe at predictable intervals ;)

_________________
--
Cheers,
Shirk


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jan 19, 2011 7:53 am 
Offline

Joined: Mon Jul 12, 2010 10:00 am
Posts: 2
Eh? I'm not panicking. Just making a whole lot of edits so people can see my progress, even though they probably don't care(and of course would not be offended). Something to do.

I do forget to breathe+blink though, thankyou for the tip :D

_________________
Define the x86 architecture?
Take a turd from every animal that ever existed and put it all around your "ON" switch- the only way to get to the on switch is through the crap.

Projects: QuenchlessOS - no plan no rules
blaRPG - my RPG.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Thu Feb 24, 2011 4:08 pm 
Offline

Joined: Thu Feb 24, 2011 11:54 am
Posts: 5
Hahahaha, I remember when mine did this back in the day.. err wait.. it still does it.. crap... :/


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Feb 25, 2011 5:50 pm 
Offline
Member
Member

Joined: Sun Sep 06, 2009 3:54 am
Posts: 169
Location: Brighton, United Kingdom
My new project (deleted my old one because I overcomplicated it by trying to make my first kernel "perfect". This one is deliberately simplistic, hence the name).
Beware of the name of the project if you're at work or something.
http://www.youtube.com/watch?v=3_oPhe0o-Vg

Edit: I fixed it a while ago, I don't remember what the problem was, it's almost 3 am.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Apr 11, 2011 2:56 pm 
Offline
Member
Member

Joined: Sat Oct 16, 2010 3:38 pm
Posts: 573
Synon wrote:
My new project (deleted my old one because I overcomplicated it by trying to make my first kernel "perfect". This one is deliberately simplistic, hence the name).
Beware of the name of the project if you're at work or something.
http://www.youtube.com/watch?v=3_oPhe0o-Vg

Edit: I fixed it a while ago, I don't remember what the problem was, it's almost 3 am.


LOL stupid youtube i went on the video (which you deleted), so then this 'missing' message comes up and the polish version says:
Quote:
This video has been removed by the user. sorry for bugs


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jun 08, 2011 12:52 pm 
Offline
User avatar

Joined: Thu May 19, 2011 3:45 pm
Posts: 15
Location: Somewere between a keyboard and a chair.
Now it's time for some serious kprint stress test!!
As you can see my console scroll function works GLORIOUSLY!


Attachments:
buer001.png
buer001.png [ 14.87 KiB | Viewed 4460 times ]
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jun 08, 2011 1:04 pm 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2111
Location: Bucharest, Romania
Why do I get the feeling most screenshots here are fake?

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jun 08, 2011 1:09 pm 
Offline
User avatar

Joined: Thu May 19, 2011 3:45 pm
Posts: 15
Location: Somewere between a keyboard and a chair.
Love4Boobies wrote:
Why do I get the feeling most screenshots here are fake?


Because you assume things must go right on first try ;)


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Thu Jun 09, 2011 1:58 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 26, 2009 2:48 am
Posts: 792
Love4Boobies wrote:
Why do I get the feeling most screenshots here are fake?
I guess you expect weird screen shots to be completely random. But they don't have to be.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sat Jun 11, 2011 11:11 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
Breakthrough innovation : I hereby gloriously introduce the first physical memory manager testing tool (to the best of my knowledge) that works on one virtual machine and fails on another ! =D> Now THAT's useful testing !
Attachment:
bochs_win.png
bochs_win.png [ 25.14 KiB | Viewed 4299 times ]

Attachment:
vbox_fail.png
vbox_fail.png [ 29.98 KiB | Viewed 4299 times ]

Oh, well... Guess there's a very silly bug behind this and I'll feel deeply ashamed when I find out.

EDIT : Not so silly, sadly... But got it anyway.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Jun 12, 2011 3:07 pm 
Offline
User avatar

Joined: Thu May 19, 2011 3:45 pm
Posts: 15
Location: Somewere between a keyboard and a chair.
TDD? Nice idea! Is it a kernel space utility or a user space app?


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Jun 12, 2011 4:41 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
rand wrote:
TDD? Nice idea! Is it a kernel space utility or a user space app?

Not exactly true TDD because I had the idea to write some automated regression tests after having finished the memory manager, but I certainly do think that having these at hand will be pretty good in the future, when I'll have to tweak the code again, as a way to quickly check that everything still works.

Currently, the testing tools are an optional kernel space utility. You can choose to link them into the kernel using a flag in the makefile, and after that it's possible to call the testing functions within the kernel's main function. I don't have user space yet, so I didn't exactly have the choice ^^


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Thu Jun 16, 2011 3:48 am 
Offline
Member
Member
User avatar

Joined: Tue Jun 02, 2009 4:35 pm
Posts: 737
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
Love4Boobies wrote:
Why do I get the feeling most screenshots here are fake?


I always wondered about that myself, cos the effects these people produce with that VGA framebuffer are just purely original, every time :?

_________________
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sat Jun 18, 2011 10:20 am 
Offline
Member
Member

Joined: Sat Oct 16, 2010 3:38 pm
Posts: 573
Take this:

I have implemented some basic support for shared libraries. Normally, the code works perfectly and the exit() function inside a library is called perfectly, but sometimes, the resolve() function fails right before returning (weird, i know..)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 751 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 51  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: davidv1992 and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group