News for hackers. Stuff that matters.
Re:My favorite bug: segfaults in Java by TheLoneWolfling on Sunday March 29, 2015 @05:13PM (#9286500)
May not even be a compiler bug in that case.

That's a classic symptom (and "fix") for an array that was {over}/{under}run by one (or some small number of) element(s): the extra allocated space on the stack may have prevented it walking into unallocated memory (and segfaulting).

Now, if he'd run it under valgrind and it showed no problems of that sort, and it still segfaulted...

Re:My favorite bug: segfaults in Java by hawkice on Sunday March 29, 2015 @07:19PM (#9286879)
My understanding is that it was reversed from that, where with stack canaries and debug tracing nothing odd was happening, but when things are run without defenses it _stops_ working, instead of starting to work because you're paying less attention. That was why it was so odd -- obviously the array overrunning (or passing (void*) &local_var into subroutines where it's cast to a different type, etc) would be a pretty obvious candidate.