News for hackers. Stuff that matters.
Re:V8 Garbage Collector by Leszek on Friday November 14, 2025 @08:00AM (#45926319)
rr (https://rr-project.org/) and memory watchpoints are a godsend when it comes to analysing heap corruptions.
Re:V8 Garbage Collector by djwatson24 on Friday November 14, 2025 @11:52AM (#45928722)
Absolutely. Things that took hours or days to debug before take mere minutes once I have an rr recording.
Re:V8 Garbage Collector by whizzter on Sunday November 16, 2025 @06:10AM (#45944195)
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.