Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: Corrupted shared library list

Under linux, when debugging my program with gdb the following message appears:

warning: Corrupted shared library list: 0x639130 != 0x7ffff7fd9598

In my program I am loading several .so files via dlopen(). After calling dlopen(), the message appears.

Then, when I load the next .so, the message appears again, but this time with different addresses:

warning: Corrupted shared library list: 0x63c9e0 != 0x639130

I have looked for references about this message on the internet but have not found anything. There are some references about a corrupted shared library, but not about a corrupted shared library list.

Does anyone know what might be the cause for this?

I am running Ubuntu AMD64 and compile in 64bit with g++ command line options:

-std=c++11 -fPIC
like image 991
Kai Neumann Avatar asked Oct 25 '16 07:10

Kai Neumann


1 Answers

This seems to be occurring when one of the shared library dlopen()ed by the program also has code to dlopen() a library that has already been loaded previously.

like image 141
srinivirt Avatar answered Oct 17 '22 09:10

srinivirt