Skip to content

Provide a way to mock symbol resolution #1355

@josefbacik

Description

@josefbacik

I had some test code that was abusing the process dispatcher to resolve test addresses so that I could validate that systing was doing the correct thing wrt generating stack trace tracks.

However I changed the systing code to no longer emit anything if we got an error other than MissingSyms, and then my tests broke. Turns out my mock dispatcher thing never actually worked, because I was using random test PIDs that didn't have a /proc/$PID/ directory, so blazesym was just throwing an UnknownAddr error.

I looked through the code and there doesn't appear to be a way to mock out what I need to provide custom symbolization since the /proc/$PID thing is internal. I'd love a way to mock this out so I can have unit testing around stack trace generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions