Skip to content

ASan needs to keep track of all the libraries loaded during the process lifetime #89

@ramosian-glider

Description

@ramosian-glider

Originally reported on Google Code with ID 89

In the following situation:

> malloc or free gets calls from xyz.dylib
> xyz.dylib gets unloaded 
> a bug happens and we want to report the stack trace of malloc/free which has xyz.dylib
in it. 

we need to restore the library layout at the stack collection time in order to symbolize
it correctly.

Possible solution:

> We keep an epoch counter that is incremented for each dlopen and 
> dlclose (we also write down the [un]loaded library and the slide value 
> each time we do that). For each stack we just sacrifice one frame to 
> keep the corresponding counter. When symbolizing, it's easy to replay 
> the sequence of dlopen/dlclose events and find out which libraries 
> were loaded.

Reported by ramosian.glider on 2012-07-18 09:21:08

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions