Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4090516
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:14:54+00:00 2026-05-20T19:14:54+00:00

I have the same shared library in three different paths in the system. Let’s

  • 0

I have the same shared library in three different paths in the system. Let’s say the paths are PATH1, PATH2 & PATH3.

Shared library name is libmylib.so

Now, in PATH1 if I replace the libmylib.so with a broken soft link, it goes and searches in PATH2 for the library.

But, in PATH1 if I replace libmylib.so with some other text file (or some unrelated file) which has the name libmylib.so, then application execution fails stating “not an ELF Header”

I am a little confused by the behaviour? Why does it search the other paths incase of a broken soft link and fails in case of an incorrect file. I was expecting it to search other paths for incorrect file also.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:14:55+00:00Added an answer on May 20, 2026 at 7:14 pm

    It probably just try to open it. Dangling symbolic link or not present, it will returns the same error. You’d need to do test explicitly for symbolic link if you wanted to do something different. Few programs care.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two Windows processes have memory mapped the same shared file. If the file consists
We have couple different web-apps that share the same db link. The hibernate layer
I have two separate applications (both part of the same system) that share a
Is it possible to have same table name on different schema with different data
Let's say we have an array defined as a global variable. int array[] =
I have a C library, which I build as a shared object for Linux
I have two different asp.net web applications both referencing the same dll e.g. SharedLibrary.dll
I have .so (shared library) written in C++, lets call it functionality.so in which
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3. Edited for clarity. I have a shared library in which
Question about JS Knockout library - I have three inputs, all data-Bind-ed to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.