warning: Corrupted shared library list
g++, gcc, linux, shared-libraries
Solution
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.
Problem
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 ```