Linux executable on Mac shared folder cannot load shared object file

Discussion in 'Linux Virtual Machine' started by Eric Brunel, Nov 17, 2009.

  1. Eric Brunel

    Eric Brunel Junior Member

    Messages:
    13
    Hi all,

    I have a Linux executable dynamically linked with a shared object file (.so) that both reside on a Mac shared folder. The executable refuses to run. When I try, it says:
    Inconsistency detected by ld.so: rtld.c: 1237: dl_main: Assertion `_rtld_local._dl_rtld_map.l_libname' failed!
    The exact same executable and shared object, copied from the shared folder to a local directory in the VM, works without problem.
    Does anyone know what's happening here? Why can't I put shared object files in a shared folder?

    Context: Parallels Desktop 4.0.3848 on Mac OS X 10.5; guest OS is Linux Fedora Core 10.

    TIA.
     
    Last edited: Nov 18, 2009
  2. Eric Brunel

    Eric Brunel Junior Member

    Messages:
    13
    Replying to myself: the problem actually seems to happen only sometimes, not always. Can't figure out right now in which cases it does happen. It doesn't seem to be related to the executable or the shared object file, since with the exact same ones, sometimes it works, sometimes not.

    Does anyone have any idea of what can be the cause of the error, and if there is any way to make sure it doesn't happen again?
     
  3. Eric Brunel

    Eric Brunel Junior Member

    Messages:
    13
    Replying to myself again: just in case someone has the same problem one day, upgrading to latest versions of the Linux kernel and the C library (2.6.27 and 2.9-3 resp.) seemed to solve the problem. Hard to be sure, since it doesn't happen each time.
     

Share This Page