Worst memory bug ever

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
stdcall
Member
Member
Posts: 78
Joined: Thu Mar 14, 2013 1:30 am

Worst memory bug ever

Post by stdcall »

Just found the @#$@#$. it took me a while.

Well, it all started with me placing an assert when populating a page table entry. the assert checks that there isn't a previous address in it.
Just when I started implementing clone(), the assert was triggered. and I couldn't understand where the previous address came from.

Turns out that in my copy_page_table function I did some temporary mapping to allow me to write to destination PDT. It was copied also...

damn.

I had to tell someone and my wife doesn't understand :)
“Meaningless! Meaningless!”
says the Teacher.
“Utterly meaningless!
Everything is meaningless.” - Ecclesiastes 1, 2

Educational Purpose Operating System - EPOS
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: Worst memory bug ever

Post by NunoLava1998 »

I tried to write to video memory once. And i somehow wrote to ROM (Read Only Memory), according to a memory map.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
Post Reply