yanqi27 / core_analyzer

A power tool to debug memory-related issues
376 stars 72 forks source link

fix ptmalloc 2.34 failure due to dynamic arena's struct heap_info #87

Closed yanqi27 closed 1 year ago

yanqi27 commented 1 year ago

The current ptmalloc parser uses a predefined struct for dynamic arena's header struct _heap_info. This structure is not stable over various versions. The fix is to read the type info at runtime instead of the fixed definition.