News for hackers. Stuff that matters.
Re:After 5 days, my OS doesn't crash when I press a key by vidarh on Thursday December 05, 2013 @10:46AM (#6854940)
> like it's some bug that takes 2 days is just lame.

Unless she was spending full time on it, it was not some bug that takes 2 days.

At the same time: If you've never come across some trivial, stupid little bug that has left you stumped for far longer than it should have, you're either superhuman (or have selective memory), or you're a total beginner.

Your dismissive tone is really offputting.

Re:After 5 days, my OS doesn't crash when I press a key by abshack on Thursday December 05, 2013 @01:05PM (#6855936)
When I did Operating Systems in University (in a group), I remember distinctly only 3 bugs that we had difficulty debugging:

* re-using a loop variable from the outer loop in an inner loop (damn you `int i`!)

* putting a char[256] on the stack when the stack size was only 256 bytes and getting stack corruption (this one wasn't me, thankfully)

* signed vs unsigned code being passed between user mode and kernel mode causing problems (no idea why it was causing issues; i just made it all unsigned and the issue went away)

In hindsight, -Wall would have probably caught everything and saved a couple hours of "wtf" at 2-3 in the morning.

Often the simplest things are the hardest to discover.

Re:After 5 days, my OS doesn't crash when I press a key by optymizer on Thursday December 05, 2013 @05:27PM (#6857823)

  > THE OS IS STILL CRASHING WHEN I PRESS A KEY. This continues for 2 days.
In case you didn't read the article.