[HN Gopher] Show HN: Heap Explorer
___________________________________________________________________
Show HN: Heap Explorer
I wrote a little LD_PRELOAD library that makes it easy to inspect
and interact with a running program's glibc heap. It's fun to
pause processes, free a bunch of their allocations, then resume
them. Most of the time, the processes continue as though nothing
happened, but sometimes they do interesting things :)
Author : bkallus
Score : 35 points
Date : 2025-02-06 04:54 UTC (18 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| heinrichhartman wrote:
| Can you modify this to listen to a signal (e.g. SIGUSR) instead,
| for triggering the REPL?
| heinrichhartman wrote:
| OK. RTFM. You already did! Wonderful.
| bkallus wrote:
| I went with SIGINT because it's more fun to press ctrl-c than
| to pgrep and kill. If you'd rather use SIGUSR1, just change
| SIGINT to SIGUSR1 line 654.
___________________________________________________________________
(page generated 2025-02-06 23:00 UTC)