Skip to content

elfmalloc: Detect or eliminate frees from other allocators #110

Open
@joshlf

Description

@joshlf

When dynamically loading on Mac, the loader seems to free a pointer to us that was not allocated by us (presumably it was allocated by malloc before our symbols were loaded). As I see it, we have two options:

  • Figure out how to load on Mac so that this doesn't happen
  • Figure out how to detect whether a pointer is ours; if it isn't, just leak it (or maybe free it to libc free?)

@davidtgoldblatt Have you folks run into this problem with jemalloc?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions