22

I was getting a segmentation fault and was very confused and had no idea why and the first thing I changed fixed it totally so that was great

Comments
  • 2
    Congrats! What did you change?
  • 4
    Start adding or removing * to variables until it works. That's what we did on our first year.
  • 1
    All fun and games until it turns out to have actually been a nasty memory corruption bug that your changes only "fixed" because now something else is getting corrupted...
    Fun times.
  • 0
    @CristCD Reducing the optimisation level also helps. You know, it's always the compiler that has an optimisation bug. ;-)
  • 1
    @Fast-Nop yeah that too. The creators of gcc? Just noobs, we are better than that.
Add Comment