▲ | Veserv 4 days ago | |
A modern debugger would have made that trivial. Just turn on time travel debugging mode and you would have been done after the first time it occurred. Wait until the memory is corrupted and causes a crash. Set a hardware breakpoint on the corrupted memory location and run backward until the memory location was written in the signal handler. Problem solved. Memory corruption bugs in single-threaded code are a solved problem. |