Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GDB Error Installation error: gdb.execute_unwinders function is missing

I have suddenly started seeing this message on nearly every GDB output line whilst debugging:

Python Exception Installation error: gdb.execute_unwinders function is missing

What is this? How do I rectify it?

like image 759
user997112 Avatar asked Feb 23 '16 10:02

user997112


2 Answers

I have the same, with gdb 8.0.1 compiled on Ubunutu 14.04 LST. Turns out the installation misses the necessary Python files. One indication was that "make install" stopped complaining about makeinfo being missing - although I did not change any of the .texi sources.

My fix was to go into into the build area, into gdb/data-directory, and do "make install" once more, which installed the missing python scripts.

Must be some weird tool-bug somewhere.

like image 120
Kai Schuetz Avatar answered Oct 12 '22 17:10

Kai Schuetz


This starting occurring for me after a yum update updated some Python 3.6 RPMs I had installed via a prior manual yum install. I can't quite figure out how the yum update is involved, because I can't connect the updated Python RPMs to the following files/directories. So, I suppose the yum update may be a red herring.

What I found, though, was the permissions need to be opened up on GDB-specific Python files in /usr/local/share:

[root@nacelle gdb]# cd /usr/local/share/
[root@nacelle share]# ls -ltrd gdb
drwxr-x---   5 root root 4096 Jul  3 09:56 gdb
[root@nacelle share]# chmod -R o+rx gdb/
[root@nacelle share]# ls -ltrd gdb
drwxr-xr-x   5 root root 4096 Jul

After opening up these permissions, the gdb/Python errors regarding missing functions went away.

like image 1
jefe2000 Avatar answered Oct 12 '22 18:10

jefe2000