nowfound

Life & fun · February 6, 2025

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 :)

Heap Explorer launched on February 6, 2025 with 73 votes, #435 of 5,999 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.

In plain words

Heap Explorer is an LD_PRELOAD library that lets developers inspect and manipulate a running program's glibc heap. Users can pause processes, free memory allocations, then resume execution to observe how the program responds. It's designed for developers interested in understanding heap behavior and memory management, offering a hands-on way to experiment with how applications handle unexpected memory changes.

written from the facts on this page · September 2026

From the sources

LD_PRELOADable library for exploring the glibc heap - heap-exploitation/heap-explorer

void explore_heap ( void ); explore_heap starts a REPL that allows the user to perform a few different actions, such as free ing chunks, malloc ing chunks, printing freelists, etc. libheap_explorer.so installs explore_heap as the SIGINT handler at load time, so you can do stuff like this: $ LD_PRELOAD=/the/path/to/libheap_explorer.so python3 -c 'while True: print("Dave and Dale are cool cats")' Dave and Dale are cool cats Dave and Dale are cool cats Dave and Dale are cool cats ... ^C Welcome to Heap Explorer! You are TID 821537, viewing arena 0 (main_arena) 1. Allocate chunk(s). 2. Free a chunk. 3. Print this arena. 4. Print a tcache list. 5. Print a fastbin list. 6. Print a bin list. 7.…from github.com

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, February 2025

the whole month →
  • Beautiful screen recordings with instant shareable links

    Growth · 2025 · screen.studio

  • Tana▲1,665

    Put your notes to work with voice and AI

    AI · 2025 · tana.inc

  • IG

    I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time (a lifelong interest, and I even worked in AA(A?) back ca. ~2000), and in October 2023 I stumbled upon the idea of a roguelike pachinko/plinko game inspired by Luck Be A Landlord. Things snowballed quickly, I started talking to publishers, then worked like crazy through all of 2024, almost the hardest I've ever worked in my career, and launched the game in December 2024. It's sold…

    Work · 2025

  • Tanka▲1,410

    AI Messenger with smart reply & long term memory for teams

    AI · 2025 · tanka.ai

  • Tool Finder▲1,327

    Your shortcut to better software

    AI · 2025 · toolfinder.com

  • i wanted to change the habit of reaching for my phone in the morning and doomscrolling away an hour so i built an app to help me. now i have to literally touch grass before accessing my most distracting apps the app is built in swiftui, uses the screen time apis provided by apple and google vision to recognise grass or not i'd love to get your thoughts on the concept.

    Life & fun · 2025 · touchgrass.now