News for hackers. Stuff that matters.
Re:Fantastic Bugs and Where to Find Them by masswerk on Wednesday January 22, 2020 @06:20AM (#22116531)
I really love debugging stories like this as they provide an opportunity for learning about things, you'd normally won't touch, by providing relatable context.
Re:Fantastic Bugs and Where to Find Them by twhitmore on Wednesday January 22, 2020 @12:15AM (#22114839)
When you start stack-swapping, at some point you're going to need to deal with unwinding the stack (exceptions).

What surprises me is that they said that, in most cases, throwing exceptions seemed to work OK!

I would have assumed that if it wasn't properly supported by the Boost Context object, it would have frequently been corrupting memory. Maybe they just never noticed the corruption.

Re:Fantastic Bugs and Where to Find Them by AstralStorm on Wednesday January 22, 2020 @03:18AM (#22115646)
The instant they told about null registers I though "someone has corrupted the stack".

From there enabling ASAN or perhaps even stack-protector (even in Release) should've caught it rather quick... (First context switch, likely resume with exception raised.)

Now seeing a crash in exception handler, that is something. It's rather sad they didn't fix Boost.Context, seems like it could always use more platform ifdefs.

Re:Fantastic Bugs and Where to Find Them by xiphias2 on Tuesday January 21, 2020 @09:43PM (#22114067)
It's crazy that the devs could do all this debugging in just 1 week. I think at least 99% of us programmers wouldn't be able to do it. I sometimes hunt for much simpler bugs for much longer time.
Re:Fantastic Bugs and Where to Find Them by g82918 on Tuesday January 21, 2020 @11:12PM (#22114544)
I don't know about 99%, honestly a lot of this is them working around the tooling in VS.