pwndbg/pwndbg

heap tracker: display object type or a symbol from backtrace?

Open

#3,092 opened on Jun 7, 2025

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (5,820 stars) (776 forks)batch import
featuregood first issueheaphelp wanted

Description

Currently the track-heap enable shows us only that a malloc/calloc/free etc. happened and which size/address it was passed or returned, but it would be awesome to show where in the program the allocation or deallocation happened - or - for what kind of object.

This would need to be smart somehow so it is useful, as we probably don't want to display the whole backtrace for each malloc/calloc/free etc. but just one symbol - like "SomeObject::SomeMethod".

This could also work e.g. only if sources are available or maybe the user should pass some regex for the backtrace and we should only show a symbol that matches?

Contributor guide