by bkallus on 2/6/25, 4:54 AM with 5 comments
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 :)
by dzaima on 2/7/25, 9:05 AM
gdb /lib/x86_64-linux-gnu/libc.so.6 -ex 'p &main_arena' -ex 'p malloc'
Also, can attach to an existing process via: sudo gdb -p <PID_OF_PROCESS> -ex 'call (void*) dlopen("/path/to/libheap_explorer.so", 2)' -ex 'p explore_heap()'
by jamesy0ung on 2/7/25, 9:42 AM
by heinrichhartman on 2/6/25, 10:20 PM