The 'memleak' script fails to determine the address of symbol b'malloc'

Solution In Progress - Updated -

Issue

  • The memleak script fails with Exception: could not determine address of symbol b'malloc'
# /usr/share/bcc/tools/memleak --command ls
Executing 'ls' and tracing the resulting process.
file1  file2
Attaching to pid 373715, Ctrl+C to quit.
Traceback (most recent call last):
  File "/usr/share/bcc/tools/memleak", line 449, in <module>
    attach_probes("malloc")
  File "/usr/share/bcc/tools/memleak", line 437, in attach_probes
    bpf.attach_uprobe(name=obj, sym=sym,
  File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 1151, in attach_uprobe
    (path, addr) = BPF._check_path_symbol(name, sym, addr, pid, sym_off)
  File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 788, in _check_path_symbol
    raise Exception("could not determine address of symbol %s" % symname)
Exception: could not determine address of symbol b'malloc'

Environment

  • Red Hat Enterprise Linux release 9.0 Beta (Plow)
  • bcc-tools
  • memleak

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content