Community
Participate
Working Groups
"Anindya" <xxxxxxxxx@hotmail.com> wrote in message news:1215805828.1565.13.camel@hal... > ...... > I think I know now what the problem is, at least > in my case. I started eclipse with the -consoleLog command line option > which shows the standard output on the terminal. It appears that the > ACServer binary which is being called by ACStart.sh is compiled against > gcc 2.95 and thus needs a really old version of libstdc++. All new Linux > distros ship with gcc 4 (and maybe 3) libraries installed, but not the > older version. In Ubuntu, it is still available on the repository, > however. I installed this, and immediately the IAC started working (I > didn't even need to restart eclipse, probably because IAC is launched > externally using a script). I have not checked all profiling options > yet, but execution time analysis at least is working, which is what I > needed. > Maybe it will be possible for the Eclipse team to compile the Agent > Controller against a newer version of gcc? Just a suggestion. The > problem is that the error message from Eclipse gives you no clue as to > what went wrong with the IAC. Thanks again for your reply. > ...... >
A similar problem also existed for the Europa build.
The libstdc++2.10-glibc2.2 package is no longer present in Ubuntu 8.04 "Hardy", not even in the universe repository. Therefore it is now not possible to use TPTP on Ubuntu without manually pulling in the old libraries. This library was obsolete in 2001. It's expecting a lot from people to keep this lib laying around on their systems for decades. If nothing else, it should be noted in the release notes or in the prerequisites that Linux users need to have an antique libstdc++.
Confirmed on my Ubuntu 8.04 machine: "jgwest@jgwest1:~/rac-test/rac/bin$ ./RAStart.sh Starting Agent Controller. ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory"
Confirmed on standard RHEL 5.1 installation: [jgwest@localhost bin]$ ./ACStart.sh Starting Agent Controller. ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory ACServer started successfully. [jgwest@localhost bin]$
Version to look into upgrading to: gcc 3.2.3 20030502, glibc-2.3.2-95.50, libstdc++-3.2.3-59
That's not new enough, if you're targeting Ubuntu. The oldest one in Ubuntu 8.04 is 3.3. 3.4, 4.0, 4.1, and 4.2 are also available. This is also true of the upcoming Debian 5.0 release.
For reference, on RHEL5, the following package can be installed to fix the problem: compat-libstdc++-296 - 2.96-138.i386.rpm
What is the risk factor of resolving in 4.5.1?
Completing in 4.5.1 may require code change to the AC.
Completing in 4.5.1 may require code change to the AC which may not be containable.
Thanks. Not containable in 4.5.1, moving to 4.5.2. Eugene, please open a defect for a release note.
Bug 244432 is created for release note.
*** Bug 243474 has been marked as a duplicate of this bug. ***
*** Bug 244213 has been marked as a duplicate of this bug. ***
Are there any plans to fix this for the next release? If you need help testing the fix let me know. Thanks !
(In reply to comment #7) > For reference, on RHEL5, the following package can be installed to fix the > problem: compat-libstdc++-296 - 2.96-138.i386.rpm On Alt Linux 4.0, the following package can be installed: cpp2.95-2.95.3-alt3.i586.rpm gcc2.95-2.95.3-alt3.i586.rpm libstdc++2.96-2.96-alt3.i586.rpm libstdc++2.96-devel-2.96-alt3.i586.rpm libstdc++2.95-devel-2.95.3-alt3.i586.rpm gcc2.95-c++-2.95.3-alt3.i586.rpm Packages must be installed in this order with command: rpm -iv <package.file.name> You can get this packages in: http://ftp.altlinux.org/pub/distributions/ALTLinux/2.2/Master/ALTLinux/RPMS/
*** Bug 255434 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > The libstdc++2.10-glibc2.2 package is no longer present in Ubuntu 8.04 "Hardy", > not even in the universe repository. Therefore it is now not possible to use > TPTP on Ubuntu without manually pulling in the old libraries. > > This library was obsolete in 2001. It's expecting a lot from people to keep > this lib laying around on their systems for decades. If nothing else, it > should be noted in the release notes or in the prerequisites that Linux users > need to have an antique libstdc++. > I can confirm that. This package is no longer in Ubuntu 8.10 either. It would be nice as well that if one downloads eclipse for Linux, the scripts ACStart.sh and ACStop.sh had #!/bin/bash instead of #!/bin/sh, as it gives you an error: Starting Agent Controller. ./ACStart.sh: 52: [[: not found
I'd like to share some successful workarounds I discovered today: A workaround for Ubuntu 8.10 (Intrepid) is available here: http://www.mesdn.net/blog/index.php?entry=entry081211-114653 For the 64-bit version, installing libstdc++5 or running ia32 versions of Java and Eclipse along with libstdc++2.10-glibc2.2, gcc-3.3-base and libuuid1 from Gutsy does the trick. For Red Hat/Fedora, there is the compat-libstdc++-296-2.96-141 package (did not test it). After getting the AC to start, the profiled Java process would segfault on both Ubuntu and Windows. Downgrading to Java 5 and creating a new workspace from scratch resolved that problem.
Not containable in 4.5.2
i've got the same/similar issue on eclipse windows xp + 3.4 + tptp 4.5.1 fresh install of myeclipse 7.0 (eclipse 3.4) i installed tptp via ganymede 3.4 by selecting all under the "testing and performance section" i'm trying to profile a stand alone java application. i select "run" > "profile configurations" and click my java app when i click the monitor tab, i get the following error message: "IWAT043E An error occured when connecting to the host" i then found that if i waited long enough the "revert" button would become available and clicking it would populate this pane. however when trying to "run" the configuration it would exception out: org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException Error: Unable to connect to the Agent Controller.Connection refused: connect org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException: Error: Unable to connect to the Agent Controller.Connection refused: connect at org.eclipse.tptp.platform.execution.client.core.internal.NodeImpl.connect(NodeImpl.java:128) at org.eclipse.tptp.platform.execution.util.internal.AgentControllerFactory$EstablishConnection.run(AgentControllerFactory.java:126) at java.lang.Thread.run(Unknown Source) therefore i cannot use tptp as far as i know. this may be the last time i try and get tptp to work as it's never worked for me over the years. is there any workaround for windows that doesn't involve a fresh workspace?
Hi Paul, Your exception does not appear to be related to these libraries not being present as you are running on Windows. The error indicates your Agent Controller cannot be found. Can you verify the ACServer.exe process has started? Another option is testing the profiling works by using the standalone Agent Controller (http://www.eclipse.org/tptp/home/downloads/). Some Documentation links that you may find useful: http://wiki.eclipse.org/Profiling_with_TPTP_-_plug-in_development http://www.eclipse.org/tptp/home/documents/documentation.php?version=4.5.0&audience=user Lets try to get your TPTP working by continuing this discussion on the TPTP newsgroup (http://www.eclipse.org/tptp/home/project_info/general/mailnews.php) or offline.
yes you're right, i'd just figured that out, installed the agent controller, tested the connection then tried to profile again, only to be met with various new exceptions. this is the 4th time in 2 years that i've tried to use tptp, each time i'm met with daunting configuration and errors. this is the 4th time i've given up - i'm just a java developer! anyway, jprofiler does what i need. shame it's so expensive. thanks anyway.
FYI: On mandriva 2009.0 this resolves the problem. # urpmi libstdc++-libc6.2-2.so.3
Jonathan is the next action taker on this.
*** Bug 271136 has been marked as a duplicate of this bug. ***
Created attachment 132093 [details] Patch - AC Shared Memory Changes This is a patch to the agent controller to replace the platform specific implementations of atomic compare and swap used by the shared memory code. At present, this implementation will only be enabled for Linux, but is available for use by all other UNIX platforms.
Patch checked into HEAD.
Necessary code changes have been delivered to CVS, next step is build process changes. All yours, Josh. :)
Is there any way to actually get Eclipse TPTP 4.5.2 to work with Ubuntu 8.04 and Java6? I have tried every "workaround" I've been able to find through Google and nothing works. Running ACStart.sh just gives me this: Starting Agent Controller. /opt/tptpAC/bin/ACStart.sh: line 70: 7865 Segmentation fault ACServer $* ACServer started successfully. But ACServer is never actually started.
No workarounds, other than those listed above, are currently known to get 4.5.2 with newer libstdc++'s. The "ACServer started successfully" issue is being covered in bug #263712.
(In reply to comment #31) I didn't really follow the thread here, but how about statically linking libstdc++.so.5 or shipping one with the AC?
Created attachment 135438 [details] New libverifier compiled with gcc 3.4.6 New libverifier compiled with gcc 3.4.6 to replace the old one under platform/org.apache.harmony_vmcore_verifier/lib/linux/release/IA-32. Do not commit till the rest of the build changes are in.
Good news! We are finally able to complete builds using a more up to date gcc (3.4.6). As of TPTP-4.6.0-200905241529 these changes will be in affect in the linux_ia32 AC and JVMTI. Early adapters can try this driver out now, but it is suggested that you wait for a stable release as there are still changes being made to the code. Bug #277765 has been opened for automating the build process for the new machine.
Documentation should be updated in the Getting_Started.html to indicate the libraries that are no longer required. For example "The Agent Controller is compiled using libstdc++-libc6.2-2.so.3 shared library. Ensure that this shared library exists under the /usr/lib directory. If it does not exist, you have to install the RPM package compat-libstdc++ that comes with the operating system installation media.".
Created attachment 137254 [details] Patch for getting_started.html
Jonathan, Please review the update to the getting_started.html. Thanks
Patch is good.
This change will also affect Agent Controller SDK Samples such as ConsoleTestClient etc. It should be noted that all samples should be built with updated GCC in Test Pass, otherwise segmentation fault will be encountered for AC manual testing.
Chengrui, Josh confirmed that the samples are already compiled with the new GCC with the latest build. Joel, Please fill in the PMC approval template to get approval for TPTP 4.6.
I would like to request that the following defect be considered for PMC approval for 4.6.0. 1. Explain why you believe this is a stop-ship defect. How does the defect manifest itself, and how will users of TPTP / consuming products be affected if the defect is not fixed? The gcc used to compile the Agent Controller and other native components (e.g. JVMTI) have been upgdated to a newer version that is supported on newer Operating Systems. The corresponding documentation requirements need to be updated to reflect this change. 2. Is there a work-around? If so, why do you believe the work-around is insufficient? No. 3. Is this a regression or API breakage? Explain. No. 4. Does this require new API? No. 5. Who performed the code review? Jonathan 6. Is there a test case attached to the bugzilla record? No, documentation is checked as part of Platform.Doc.RAC_Getting_Started. 7. What is the risk associated with this fix? Low. 8. Is this fix related to any standards that TPTP adheres to? If so, who has validated that the fix continues to adhere to the standard? No.
Requesting PMC approval for Joel.
PMC approved.
Patch for getting started checked into HEAD with PMC approval.
close bug.