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 8910565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:43:15+00:00 2026-06-15T03:43:15+00:00

If I execute a binary in a clearcase view, and look at /proc/self/exe for

  • 0

If I execute a binary in a clearcase view, and look at /proc/self/exe for that on Linux, I see something like the following:

$ cd /proc/19220
$ ls -l exe
lrwxrwxrwx 1 peeterj pdxdb2 0 2012-11-30 13:04 exe -> /home/peeterj/views/peeterj_clang-7.vws/.s/00024/8000028250b8f1d1llvm-config

The clang llvm-config program, not unreasonably, uses this output to try to figure out the absolute fully qualified path that it is located in (I assume in case argv[0] isn’t fully qualified).

Is there a way to find the location within the view that this corresponds to. For example, in this case, the llvm-config exe is actually in:

/vbs/bldsupp/linuxamd64/clang/debug/bin

(I’m wondering if it’s feasible to modify clang’s GetExecutablePath() function to figure this out.)

  • 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-06-15T03:43:16+00:00Added an answer on June 15, 2026 at 3:43 am

    No trivial solution here (for an old version of ClearCase though):

    The technote "PK27447: WITHIN A CLEARCASE DYNAMIC VIEW, THE READLINK() CALL ON LINUX RETURNS THE WRONG PATH FOR THE EXECUTABLE’S /PROC/SELF/EXE VALUE" suggests:

    Local fix

    1. Use getcwd(), get_current_dir_name(), getwd() in applications slated for a VOB/View context
      2. Create an interposer library to intercept the readlink() call, and modify to use any of the above calls to return the proper data

    The cause:

    /proc/self/exe returns the improper path while getcwd succeeds.

    Unfortunately, for /proc/self/exe to return the proper value [from within a VOB/View context] would require a change within the Linux kernel to allow MVFS to "override" the present setting.

    IBM LTC has been working on having the Linux community adopt this change so that we can then incorporate the new features within MVFS.

    Related: Bug Sun 6189256.

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

Sidebar

Related Questions

Is there a way to execute the following command through C#? .\binary.exe < input
I've got a Haskell program that needs to execute a separate (third party) binary;
I keep getting the following error: $ ./test.py -bash: ./test.py: cannot execute binary file
Is there a way to execute a flat binary image in Linux, using a
PHP is execute line by line or just like java that it's compiled form
I am trying to execute a binary wrapped inside my own assembly code, there
I execute some tests within my application, but before doing that I have to
I execute the ftp.exe cmd through a C# System.Diagnostics.Process type. And I use the
I downloaded a binary file that was compiled (a C program) using GCC 4.4.4
Linux-based (Ubuntu 11.10) Before my computer crashed I had a binary on my computer:

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.