OSDev.org
https://forum.osdev.org/

When your OS goes crazy - Screenshots
https://forum.osdev.org/viewtopic.php?f=1&t=18924
Page 52 of 54

Author:  Structure [ Tue Sep 15, 2020 4:03 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

Attachment:
clusterfuck.jpg
clusterfuck.jpg [ 30 KiB | Viewed 31535 times ]

Author:  SaulloSilva [ Sun Oct 11, 2020 8:15 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

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 31262 times ]

Author:  bgg [ Sat Oct 17, 2020 9:40 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

Something about this tells me I didn't set up the terminal correctly

Attachments:
Capture.PNG
Capture.PNG [ 41.19 KiB | Viewed 31165 times ]

Author:  yuukidesu9 [ Fri Nov 13, 2020 9:24 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

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:

Author:  clementttttttttt [ Fri Dec 04, 2020 12:36 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

NetDOS-32 (again) completely freaks out while testing multitasking.

Attachments:
Screenshot_20201204_143406.png
Screenshot_20201204_143406.png [ 35.21 KiB | Viewed 30743 times ]

Author:  8infy [ Mon Dec 07, 2020 2:40 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

While fixing a bunch of technical debt i've accumulated in the 32 bit version of the kernel.
Image

Author:  zaval [ Mon Dec 07, 2020 3:57 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

the font looks soo gewd. :)

Author:  8infy [ Tue Dec 08, 2020 12:16 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

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

Author:  AndrewAPrice [ Mon Feb 01, 2021 4:42 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

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.

Author:  PeterX [ Tue Feb 02, 2021 11:40 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

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

Author:  sj95126 [ Mon Feb 22, 2021 9:41 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

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.

Author:  akasei [ Fri Feb 26, 2021 5:48 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

I am rebuilding the window display system with transparency support, so far I'm doing fine ;)

Image

Author:  AndrewAPrice [ Fri Mar 12, 2021 6:06 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

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.

Author:  nullplan [ Fri Mar 12, 2021 11:27 pm ]
Post subject:  Re: When your OS goes crazy - Screenshots

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.

Author:  AndrewAPrice [ Tue Mar 16, 2021 8:28 am ]
Post subject:  Re: When your OS goes crazy - Screenshots

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 29314 times ]

Page 52 of 54 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/