Skip to content

BUG: miss breakpoint for multi-thread program #38

Open
@WuBingzheng

Description

@WuBingzheng

Steps:

  1. memleax set breakpoints at the entry of malloc and free at beginning;
  2. one thread runs in free;
  3. memleax catches it, set a breakpoint at the exit of free, and deletes the breakpoint at the entry of free temporarily to let the thread continue;
  4. if another thread runs in free now, memleax will miss it because the breakpoint is deleted!!! Then this memory block record will live for ever in memleax, and will be considered as a memory leak.

Similarly, if this happens at malloc, we will miss a memory block allocation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions