OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Dec 06, 2022 5:14 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 797 posts ]  Go to page Previous  1 ... 49, 50, 51, 52, 53, 54  Next
Author Message
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Sep 15, 2020 4:03 pm 
Offline

Joined: Tue Aug 25, 2020 8:56 am
Posts: 8
Attachment:
clusterfuck.jpg
clusterfuck.jpg [ 30 KiB | Viewed 16247 times ]


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Oct 11, 2020 8:15 pm 
Offline

Joined: Tue Feb 25, 2020 1:58 pm
Posts: 1
Try to load ELF file


Attachments:
Screenshot from 2020-10-11 23-14-51.png
Screenshot from 2020-10-11 23-14-51.png [ 125.45 KiB | Viewed 15974 times ]
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sat Oct 17, 2020 9:40 pm 
Offline

Joined: Wed Aug 15, 2018 7:43 pm
Posts: 10
Something about this tells me I didn't set up the terminal correctly


Attachments:
Capture.PNG
Capture.PNG [ 41.19 KiB | Viewed 15877 times ]
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Nov 13, 2020 9:24 am 
Offline
User avatar

Joined: Wed Nov 11, 2020 4:27 pm
Posts: 12
bgg wrote:
Something about this tells me I didn't set up the terminal correctly

I think the last two letters from that
Code:
"w ft"
part are swapped :lol:


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Dec 04, 2020 12:36 am 
Offline
Member
Member

Joined: Tue Jul 14, 2020 4:01 am
Posts: 63
NetDOS-32 (again) completely freaks out while testing multitasking.


Attachments:
Screenshot_20201204_143406.png
Screenshot_20201204_143406.png [ 35.21 KiB | Viewed 15455 times ]
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Dec 07, 2020 2:40 pm 
Offline
Member
Member

Joined: Sun Apr 05, 2020 1:01 pm
Posts: 177
While fixing a bunch of technical debt i've accumulated in the 32 bit version of the kernel.
Image


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Dec 07, 2020 3:57 pm 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 613
Location: Ukraine, Bachmut
the font looks soo gewd. :)

_________________
future big goal: ANT - NT-like OS for mips, arm and x86.
current smaller goal: efify - UEFI for a couple of boards (mips and arm).


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Dec 08, 2020 12:16 am 
Offline
Member
Member

Joined: Sun Apr 05, 2020 1:01 pm
Posts: 177
zaval wrote:
the font looks soo gewd. :)

Lol thanks, its hand-drawn with bitmasks actually so I didn't expect it to look well :D


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Feb 01, 2021 4:42 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2258
Location: USA (and Australia)
Not really a screenshot, but my kernel was acting very strangly and I wasted a lot of time on debugging it.

I had a very strange heisenbug where local variables in my kernel were being overritten, but commenting out random code or adding extra debugging code either stopped it or made it modify other random variables!!

I was using the QEMU monitor and halting the world and inspecting the memory location of the variables that should not have modified, that they started looking suspiciously like addresses in my kernel address range. They lined up with addresses in my disassembled kernel (in kind of a reverse stack trace of functions that would have called each other.) I printed rsp in the QEMU monitor and it was pointing into my kernel's BSS section!

I discovered this in my interrupt handler:
Code:
    mov rsp, interrupt_stack_top

Instead of:
Code:
    mov rsp, [interrupt_stack_top]

I was setting the stack to the location of the variable 'interrupt_stack_top', rather than the address that the variable 'interrupt_stack_top' was pointing to.

The reason it went undetected was because the linker had been putting 'interrupt_stack_top' at the very start of my BSS section, and BSS is page aligned, so there was a little bit of empty padding and it was never an issue. But, some new code added global variables before 'interrupt_stack_top', and that's when I noticed my bug.

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Feb 02, 2021 11:40 am 
Offline
Member
Member

Joined: Fri Nov 22, 2019 5:46 am
Posts: 590
Ha, I didn't know the term "Heisenbug". I had indeed bugs that seem to disappear when trying to isolate them. That was quite puzzling every time it happened. Then you normally have done something wrong where you were sure to do it right. So you have to question what you view as a safe assumption.

Good to see that I'm not the only one who has such problems occasionally. :)

Greetings
Peter


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Feb 22, 2021 9:41 pm 
Offline
Member
Member

Joined: Tue Aug 11, 2020 12:14 pm
Posts: 151
More of an "OS not going crazy when it should" story. My kernel doesn't do much yet, it's just a learning project. But still, it's 64-bit, paging, protections, preemptive multitasking, etc. I recently implemented fork() in a fairly simplistic way, and after verifying it worked, I figured why not stress test it, so I made it recursively re-fork ad infinitum, and it was juggling something like 2,000 active processes when I finally stopped it. I guess that's a good sign.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Feb 26, 2021 5:48 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 11, 2014 4:59 pm
Posts: 72
I am rebuilding the window display system with transparency support, so far I'm doing fine ;)

Image

_________________
https://blackdev.org/ - system programming, my own 64 bit kernel and software.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Mar 12, 2021 6:06 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2258
Location: USA (and Australia)
I was seeing random crashes in my userspace window manager. The stack trace was showing seemingly random locations for the crashes. For example:
  • std::map::find was page faulting when my map was global and my key was on the stack.
  • My linked list was pointing to phantom elements, even though I printed the values of every element I was adding to the list.

The cause of my problems: stack overflows. Turns out, 4KB isn't big enough for everybody.

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Mar 12, 2021 11:27 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1388
AndrewAPrice wrote:
The cause of my problems: stack overflows. Turns out, 4KB isn't big enough for everybody.
I recommend guard pages. That way, you will notice if someone exceeds the limit. But yeah, 4kB is a bit tight.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Mar 16, 2021 8:28 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2258
Location: USA (and Australia)
First attempt to draw widgets to the screen.

First attempt for my window manager (which is in userland) to compose the screen using a buffer from a different process.


Attachments:
widgets.jpg
widgets.jpg [ 26.4 KiB | Viewed 14026 times ]

_________________
My OS is Perception.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 797 posts ]  Go to page Previous  1 ... 49, 50, 51, 52, 53, 54  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot] and 6 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