systemtap-python-tools icon indicating copy to clipboard operation
systemtap-python-tools copied to clipboard

_PyObject_Malloc function not found

Open sanketplus opened this issue 7 years ago • 0 comments

Looks like debug symbols on Ubuntu 18.04 Python 2.7.15rc1 does not contain said symbol. Instead one without underscore seems to work. PyObject_Malloc . Same for free function as well.

sanket@tfs:~/workspace/systemtap-python-tools$ sudo !!
sudo ./scripts/memtrace -x 13046 -t 60
semantic error: while resolving probe point: identifier 'process' at /home/sanket/workspace/systemtap-python-tools/scripts/memtrace.stp:4:7
        source: probe process.function("_PyObject_Malloc").return {
                      ^

semantic error: no match (similar functions: PyObject_Malloc, PyObject_Realloc, _PyObject_GC_Malloc, PyCObject_dealloc, PyObject_Call)

sanketplus avatar Dec 30 '18 16:12 sanketplus