P403n1x87 / echion

Near-zero-overhead, in-process CPython frame stack sampler with async support
MIT License
14 stars 2 forks source link

fix: task link origin lookup #39

Closed P403n1x87 closed 1 year ago

P403n1x87 commented 1 year ago

Ensure that we actually have the origin in the origin map before attempting to dereference it. Since we do not hold the task link map lock for longer than we need, the trade-off for performance is a potential loss os sync with the data collected in earlier stages of the unwind_tasks method. Therefore we do not make the assumption that the lookup is always successful to prevent potential invalid memory dereferencing.