libheap: gdb.error 'Cannot find thread-local storage'

I installed via the instructions in the installation guide and also changed ~/.local/lib/python3.5/site-packages/libheap/libheap.cfg to 2.23, which is my installed libc version, but I still get this issue:

gdb-peda$ heapls
[!] No gdb frame is currently selected.

Python Exception <class 'gdb.error'> Cannot find thread-local storage for process 20952, shared library /lib/x86_64-linux-gnu/libc.so.6:
Cannot find thread-local variables on this target: 
Error occurred in Python command: Cannot find thread-local storage for process 20952, shared library /lib/x86_64-linux-gnu/libc.so.6:
Cannot find thread-local variables on this target
➜  /home apt-cache policy libc6
libc6:
  Installed: 2.23-0ubuntu7
  Candidate: 2.23-0ubuntu7
  Version table:
 *** 2.23-0ubuntu7 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

I am running this on Ubuntu 16.04 Xenial 64-bit.

Any suggestions on how I can fix this?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

First, thanks for your great job @cloudburst .

I met the same problem, as @wbowling mentioned, line 137 in pydbg/pygdbpython.py was generating an different exception than ValueError. By debugging, I found a possible solution: try to catch RuntimeError before ValueError in line 137.

It works well now, althougth I don’t know what effects it may have.