Search code examples
linuxshared-librariesposixqnx

Error on dlclose: "shared objects still referenced"


I have the following error on a dlclose()'d .so: "Shared objects still referenced". I didn't find too much information about it. Did you have such a problem before? What kind of programming errors (or compiling options?) can cause this?

The only thing I tried is to find if MY module has successfully released all of the referenced shared objects, but all of them was ok as I see. At least hopefully. I could not really use LD_DEBUG yet.


Solution

  • I can't find "Shared objects still referenced" error message in Linux or in opensource libraries. This message only mentioned in context of QNX.

    This QT patch https://qt.gitorious.org/qt/qtbase/commit/4af257eb3cfeef93adefda5f981742ffb58ba0ad says that this error is informative and can be ignored

    On QNX that's only "informative"

    Shared objects still referenced" dlerror should actually be treated as "for your information" only, not as an actual error.

    We can say more about error only with additional information: