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.
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.