X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



16080 Rate this article:
5.0

IDL CALL_EXTERNAL error: Failed to map segment from shared object: Operation not permitted...

Topic:
Problem description

Some IDL users on Linux may encounter a error when accessing a remotely located shared library file with IDL CALL_EXTERNAL call, for example:

    ...
    % CALL_EXTERNAL: Error loading sharable executable.
    Symbol: mysymbol_c, File = mylib.so
    mylib.so: failed to map segment from shared object: Operation not permitted
    % Execution halted at: ...

This error may be caused by one of the following issues:

  1. "noexec" mounting of the /tmp partition
  2. Some sort of "noexec" mounting permissions issue with the network mounted drive that contains the shared library
  3. Restrictive SELinux security policy settings afftecting access to remote shared libraries

Discussion:
Possible solutions

For the first two items above, check the file system mounting configuration settings for /tmp and for the remote network mounted drive that contains the shared library file in question. If either or both of these partitions are mounted with noexec permissions, this may prevent the remote shared library file from being properly loaded by the program. Configuring one or both of these partition to have "exec" permissions for users may resolve this problem.

For the third item above, a restrictive SELinux security policy configuration may be preventing remotely located shared library files from being loaded by locally running processes. Reconfiguring your SELinux policy to allow access of remote shared libraries may resolve this problem.

Another approach to solving this problem would be to move or copy the sharable library file to a local directory, whose path must subsequently be included in the library file search path.

For information on how to configure SELinux security policies, how to configure remotely mounted file systems, and to understand possible ramifications of such changes, please check your operating system documentation or contact your system/network adminstrator for assistance.


Keywords: % call_external: error loading sharable executable fstab selinux exec noexec linux /tmp remote network drive

Solution:
[Edit this field in the IDL-based Tech Tip Editor, v62]

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »