Re:Things you can do with a debugger but not with print debu...
by jesse__ on Wednesday September 10, 2025 @11:17AM
(#45199014)
Oh yeah, I've done that trick before, it's quite handy. Sometimes catches bugs that would be tricky to find with watchpoints. I wrote an allocator that allocates an extra page either before or after the users allocation, and aligns the user allocation such that it is as close as possible (while respecting user-requested alignment) to butting up against that extra page (marked PROT_NONE). Can catch underflows or overflows with this method, but not both simultaneously. Very handy from time to time.
[ Parent
| on HN ]
There are no comments on this comment yet.