top | item 45926319

(no title)

Leszek | 3 months ago

rr (https://rr-project.org/) and memory watchpoints are a godsend when it comes to analysing heap corruptions.

discuss

order

whizzter|3 months ago

Ah that looks like a great tool, will try to keep it in mind if I run into those kinds of issues again.

Couldn't have caught one of the worst bug I had to track down that was a memory corruption on the PS2, we had some dynamic async loading that used DMA channels and someone had carelessly released memory used by these async loads.

Back then memory addresses was fairly deterministic so I thought I could add a memory breakpoint to catch it (i thought), bewildered me when I first witnessed the memory addresses with breakpoints being corrupted... until it clicked and became the clue that it had to be caused by a system (DMA) that didn't care about the systems hardware memory breakpoints.

djwatson24|3 months ago

Absolutely. Things that took hours or days to debug before take mere minutes once I have an rr recording.