Closed korniltsev closed 2 months ago
And I also spotted this for the first time 🙂
Yesterday I found another issue with the way the code detects class name.
f_code->co_varnames
may contain same name multiple times. It may look like ('self', 'foo', 'bar', 'self')
and f_localsplus[0] == NULL
and f_localsplus[3] == 0x7f....
Fixes "invalid utf string" issue in our dev cluster.
The issue was caused by ebpf profiler type confusing - trying to use
PyCellObject
asPyTypeObject
In addition fixes issue when first argument name is incorrectly detected by zeroing the arg name buffer. (previously if could contain garbage from previous frame)