Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » TITAN Parallel launcher fails to start dynamically linked binaries(The launcher fails to find the shared libs)
TITAN Parallel launcher fails to start dynamically linked binaries [message #1703315] Thu, 30 July 2015 14:26 Go to next message
Lars M. is currently offline Lars M.Friend
Messages: 2
Registered: July 2015
Junior Member
I had two related issues when creating a titan project:

1. The launcher fails to find the shared libs

Steps to reproduce:


  1. In TITAN Project properties activate "link dynamically"
  2. Clean the project or delete the bin directory
  3. Build the project
  4. Right click the project -> Run as.. -> TITAN parallel launcher

In TITAN RUNTIME Console you will observe an error like:

Quote:
error while loading shared libraries: libname.so: cannot open shared object file: No such file or directory


However, the lib is installed to the working directory "bin".

Please note, that in a newly created project this error prevents TITAN from creating a functioning launch configuration.

Steps to reproduce:


  1. In TITAN Project properties activate "link dynamically"
  2. Clean the project or delete the bin directory
  3. Build the project
  4. Delete the any existing TITAN run configuration for the project.
  5. Right click the project -> Run as.. -> TITAN parallel launcher


TITAN will fail to launch the executable:

Quote:
The executable is not actually executable. Please set an executable generated for parallel mode execution as the executable.


2. When in TITAN finds a shared library in the library search path it implicitly links dynamically.

One of our dependency is a library build with Autotools. Per default Autotools builds shared and static libraries. If TITAN finds a shared library (*.so) it implicitly links dynamically although a static version (*.a) of the lib exists.

In this case the launcher also fails to find the shared lib on execution time.

We pass "--disable-shared" to configure to work around this issue.
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1703319 is a reply to message #1703315] Thu, 30 July 2015 15:30 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 60
Registered: July 2015
Member
Hi Lars,

Thank you for reporting this issue.

To run binaries with shared libraries, the folders of the shared libraries has to be listed on the LD_LIBRARY_PATH.
Looking at your issue we have found that in some situations we configured this environmental variable incorrectly.
This makes the executables unable to execute.

We have made the needed changes to the source code and started testing the functionalities.
The next build of the product should already contain this fix.
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1703600 is a reply to message #1703319] Mon, 03 August 2015 14:11 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Lars,

please download the one we just published from :

https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_plugin-5.3.pl1-opensource.zip

It should have this issue fixed.

Best regards

Elemer
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1740765 is a reply to message #1703319] Thu, 18 August 2016 11:19 Go to previous messageGo to next message
Adrian A. is currently offline Adrian A.Friend
Messages: 2
Registered: August 2016
Junior Member
Kristof Szabados wrote on Thu, 30 July 2015 15:30
Hi Lars,

Thank you for reporting this issue.

To run binaries with shared libraries, the folders of the shared libraries has to be listed on the LD_LIBRARY_PATH.
Looking at your issue we have found that in some situations we configured this environmental variable incorrectly.
This makes the executables unable to execute.

We have made the needed changes to the source code and started testing the functionalities.
The next build of the product should already contain this fix.


It seems the problem persists (version 5.5.0.CRL_113_200_5_R5A_20160527-1201). Linking against static libs solved the issue.

Moreover, the error message displayed in the "Run Configurations" dialog is quite misleading (see attachment):
"The executable was built for parallel mode execution, it can not be launched in a single mode launcher."
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1740865 is a reply to message #1740765] Fri, 19 August 2016 08:21 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 80
Registered: September 2013
Location: Budapest, Hungary
Member

Hi Adrian,

"The executable was built for parallel mode execution, it can not be launched in a single mode launcher." - This error message is sent if your project is compiled in parallel mode but in you tried to execute it in single mode. Choose Run As> TITAN Parallel Launcher. See the Chapter 2.3 in the User Guide ($TTCN3_DIR/help/docs/userguide.pdf).
It is not clear that dynamic linking is not working for you? Can we discuss it?

Best regards
Jeno Balasko
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1740884 is a reply to message #1740865] Fri, 19 August 2016 11:05 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 80
Registered: September 2013
Location: Budapest, Hungary
Member

Hi Adrian and Lars,

we could reproduce the erroneous launch config.
Bug has been reported:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=499978

We are going to fix it asap ( in the next week).

Best regards
Jeno
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1741035 is a reply to message #1740884] Mon, 22 August 2016 13:32 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 80
Registered: September 2013
Location: Budapest, Hungary
Member

Hi Adrian and Lars,

The bug has been fixed.
It is available on https://github.com/eclipse/titan.EclipsePlug-ins and plugin packages will be available soon in zipped form.
Thank you for your cooperation.

Best regards
Jeno Balasko
Re: TITAN Parallel launcher fails to start dynamically linked binaries [message #1741587 is a reply to message #1741035] Fri, 26 August 2016 06:55 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Adrian,

thank you for bringing this to our attention. This was caused by a piece of code committed during summer.
You can download the corrected package from
https://projects.eclipse.org/projects/tools.titan/downloads

Eclipse plug-ins 5.5.1 plus dependencies

It will take some time as it is distributed to mirrors; if no mirrors yet , use the
"Direct link to file" on the right.

If you have the possibility to do so, please confirm it's OK.

Thank you and best regards
Elemer



Previous Topic:Client and server perspective in testing
Next Topic:Eclipse Titan on Win 10 WSL part 1: command line
Goto Forum:
  


Current Time: Thu Apr 25 19:45:34 GMT 2024

Powered by FUDForum. Page generated in 0.03632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top