benfred / py-spy

Sampling profiler for Python programs
MIT License
12.87k stars 431 forks source link

Don't include undef sym refs when building map of symbol definitions #629

Closed andrewjcg closed 3 weeks ago

andrewjcg commented 1 year ago

Previously, we'd count undefined symbols references in the map of symbols defined in a binary, which could cause e.g. py-spy to misattribute an undefined ref to _PyRuntime in some location other than libpython.so as the definition.