OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: What have you wasted most time on?
PostPosted: Mon Sep 18, 2017 10:04 am 
Offline
Member
Member

Joined: Fri Jan 04, 2013 6:56 pm
Posts: 98
I think most people here have had one or more bugs that they have spent multiple days of work on without getting anywhere.
It's even worse to spend countless hours on something that you ultimately lose interest in and ditch.

What did you waste an incredible amount of time on (both in your OS, and in other programs)?
I never got beyond the point of a kernel that echoes the input of a PS/2 keyboard. Even then, I had a weird printf bug that kept me busy for days. Eventually I made a topic about it (which you can find somewhere here, but I won't link to it because I'm always slightly embarrassed when I see older posts by myself) and of course, someone saw fairly quickly that I didn't respect the ABI.

More recently, I worked in a high-level synthesis language that is an extension of Java, and I made the famous 'comparing objects with ==' error. Which is not too bad once you figure out the problem, but unfortunately for me this was an environment without a debugger (since the Java-ish code was only to generate (V)HDL code, the developers just assumed that you'd never need something so complicated that it would need debugging), and the resulting error was quite hard to spot.

Both cases made me lose my mind because they were in a place that I thought that the error could not possibly be (having wrong assumptions seems to be of the most difficult things to fix - so I try to work on this: If something seems off, check your assumptions).


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Mon Sep 18, 2017 10:47 am 
Offline
Member
Member

Joined: Mon Jul 05, 2010 4:15 pm
Posts: 595
ACPI


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Thu Sep 21, 2017 1:38 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
The most time-wasting bug I've ever had in a project of my own was in the printf() code for PDCLib. I stared at it, I tried to trace it, I step-debugged it, and this cockroach just avoided "being seen". In the end it turned out that I was adding to the wrong variable, leading to not-all-the-time off-by-one errors in space padding.

Funny enough, I found the bugger during the Breakpoint 2006 demo party (hence the dedication in the source comment). Couldn't find it sober for weeks. But after three days of beer and junk food, in a packed and noisy and smelly coder party hall, it jumped at me and said "here I am, you twerp".

#-o

As for time-wasting projects... as I don't consider PDCLib a wasted effort in the least, I don't count the hours spend on it. I am not so sure about one other non-computing project. I re-edited the rules for Rolemaster 2nd Ed. and translated them to German. For copyright reasons, I will never be able to distribute this work to any extend -- "fair use" allows me to pass out copies of it to my players, but that's it.

588 pages of table-rich 10pt two-column roleplaying goodnees, layed out in LaTeX glory. Took me about five years, working on it basically all my spare time.

The former C.E.O. of Iron Crown Enterprises, Coleman Charlton, called me "a little nuts" for doing this. :P

I have yet to actually start a group, because "life happened" between completion of the tome and now. But things are looking better these days.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Mon Sep 25, 2017 11:54 am 
Offline
User avatar

Joined: Fri Oct 14, 2016 7:37 pm
Posts: 24
Location: Canada
OSwhatever wrote:
ACPI

ACPI yeah

_________________
LiquiDOS, my weird hobbyist OS.
"Strive for progress, not perfection" - Anonymous


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Mon Sep 25, 2017 12:41 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
open source linux builds, python libraries. all waste of time and energy.

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Tue Sep 26, 2017 12:58 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
TheCool1Kevin wrote:
ACPI yeah

Did you guys write your own AML interpreters?

_________________
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Sat Sep 30, 2017 4:52 pm 
Offline

Joined: Sat Sep 30, 2017 4:51 pm
Posts: 1
OSwhatever wrote:
ACPI

This. So much of this. :evil:


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Thu Oct 05, 2017 7:31 am 
Offline
Member
Member

Joined: Sat Jan 21, 2017 7:35 am
Posts: 35
A few days back, I was implementing runqueue balancing in my kernel. Everything was working fine except that on removing the task from on CPU and adding it on the other, a GPF was happening. This didn't happen with all or even the first task to transfer so that it made it confusing because the error wasn't consistent. I spent checking my list-struct handling code, then checking my scheduler, debugging NULL pointers, and so on for 2 days. Later, it came in my mind that a task running/going to run on a CPU cannot be transferred. I had to just add a check that if the current task is being executed or not.

Also, once in my PMA (physical-memory allocator) which I call KFrameManager, I was implementing a function which would set a field in every pageframe-descriptor for a region of physical memory - RegionStart to RegionEnd. Now, a triple-fault was occuring (no interrupts enabled before initializing KFrameManager). On turning O2/1 optimization off in GCC, it was fine. Then after 3 days I found that the function was going to after-end-of-RAM memory and causing a paging-related fault.


Top
 Profile  
 
 Post subject: Re: What have you wasted most time on?
PostPosted: Sat Oct 07, 2017 7:26 am 
Offline

Joined: Thu Aug 17, 2017 9:47 am
Posts: 2
Location: United States
I was stuck for several months trying to get IRQs to work. Whenever I enabled interrupts, I would get a lot of Stack-Segment Faults. It was extremely frustrating because I had IRQs working once but I wasn't using git and later that day I messed them up and I didn't have any backups of it working. Finally, I found the problem and it was that I hadn't realized that I needed my IRQ wrappers to push dummy error codes.

_________________
If you do nothing, nothing happens!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 21 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