benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

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

Open andrewjcg opened 8 months ago

andrewjcg commented 8 months 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.