Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 125103

Summary: Basic Client & Agent compatibility on Linux IA32
Product: z_Archived Reporter: Karla Callaghan <karla.callaghan>
Component: TPTPAssignee: Igor Alelekov <igor.alelekov>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P1 CC: christophe.telep, jkubasta, kevin.p.o'leary, randy.d.smith
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
URL: http://www.eclipse.org/tptp/groups/Architecture/documents/features/hf_125103.html
Whiteboard: closed460
Bug Depends on: 154587, 159677, 161096, 161285, 161289    
Bug Blocks: 108584, 119571, 121658, 159817    

Description Karla Callaghan CLA 2006-01-24 19:47:55 EST
Support existing RAC clients and agents through compatibility layers on Linux IA32 platform.  Work estimate assumes the Windows version is working and this work is focused on porting.

Basic support does not include file transfer, SSL, or dynamic discovery (aka peer2peer) support.

(enhancement 119571 is being broken down to better track the work through the iterations - start using this bugzilla for committing work in this area)
Comment 1 Randy D. Smith CLA 2006-03-17 17:56:56 EST
Indications are this needs a couple of makefile changes, changes to the top-level build script, and a few fixes where the Linux compiler balks at code let through by MSDEV.
Comment 2 Randy D. Smith CLA 2006-03-17 19:18:00 EST
src-native-new/build/build_tptp_ac.script adds new library builds (and removes TPTPConfigBinding which is long gone).
src-native-new/src/transport/TPTPAgentCompTL/TPTPAgentCompTL.make -- Fixed library name to shortened tptpACTL form
src-native-new/src/transport/TPTPAgentCompTL/AgentCmdHandlers.c -- removed casts which made for invalid lvalues
src-native-new/src/transport/TPTPClientCompTL/TPTPClientCompTL.make -- Fixed library name to shortened tptpCCTL form
src-native-new/src/transport/TPTPClientCompTL/ClientCTL.c -- expanded += to avoid having cast make for invalid lvalue
src-native-new/src/transport/TPTPClientCompTL/RACmdHandler.c -- added static to function declaration to match definition
Comment 3 Randy D. Smith CLA 2006-03-17 19:20:17 EST
Took about half the time estimated. Great job backward compatibility guys to make this so easy!
Comment 4 Karla Callaghan CLA 2006-06-16 14:17:31 EDT
Reopening this feature so can track it for 4.3 planning.

Could not get a few pieces completed and tested on the Linux platforms in time for 4.2, so this feature was deferred for official completion in the next release.
Comment 5 Karla Callaghan CLA 2006-06-16 14:24:39 EDT
Making this an enhancement - needs tracking as such for 4.3 planning.
Comment 6 Sri Doddapaneni CLA 2006-06-23 03:12:22 EDT
Proposed for 4.3 plan.
Comment 7 Valentina Popescu CLA 2006-07-17 13:53:35 EDT
Reviewed and approved by the AG on July 13
Comment 8 Kevin P O'Leary CLA 2006-08-15 13:40:09 EDT
I have just completed my checkins to allow BC to work on linux.
This included loading plugins and setting the environment correctly.

To test this work I was able to correctly profile java applications using
a an AC running under linux-ia32.

This code is specific to linux, I also believe this will complete our AC/BC solution on linux-ipf and linux-em64t.

The only question is if we should close this bug right now or wait for a complete test pass run.
Comment 9 Randy D. Smith CLA 2006-08-23 17:55:21 EDT
Karla, does this need to be assigned to Kevin?

Still, with the 200608230100 nightly build, getting the NoClassDefFound exception. Logfile still has "startProcesses Thread: Error waiting for a startProcess cmd" in servicelog.log when DEBUG on. Thus still can't profile out of the box.

Note that I've also added a dependency on bug 154587 ... the SetConfig/security side of things has moved out from under us since the 4.2.0 release.
Comment 10 Randy D. Smith CLA 2006-08-23 18:10:55 EDT
The JVM loading *is* working now... if Jrockit's jre/lib/i386 and jre/lib/i386/jrockit paths are added to LD_LIBRARY_PATH. This will allow the file server testing... but even with the JVM loaded, the profiling fails.
Comment 11 Kevin P O'Leary CLA 2006-08-23 18:29:25 EDT
I was just able to successfully profile using 0823 build

This was running ACServer on sw-opt007 ... 
Launching java (jrockit) from the command-line as controlled.

I then do a remote profile and it seems to work fine.

This needs a complete test pass to claim full functionality... but it would
be helpful to know if someone else could duplicate my success in this... our env's are different... maybe there is a dependency we are missing.
Comment 12 Randy D. Smith CLA 2006-08-23 19:01:25 EDT
But this is missing the "top priority use case" ... I predict that much higher than attaching external to a running Java process, the most likely use case is straightforward:

Start the AC (or not, or RAC),
Start the workbench,
Profile

That is *the* use case in my mind. If we can't do that, I don't think we can say with a straight face to users that "we can profile".
Comment 13 Kevin P O'Leary CLA 2006-08-23 19:07:34 EDT
are you saying the RAC is not working for you as well?

I'm not saying that the use case that you have specified isn't the main
use case. We will do a complete test pass which includes all profiling.

From the perspective of the AC the messages should be the same for each use case.

I was just trying to see if anyone else had been able to get any profiling to work. (if there was something unique to my env or the machine I was running on)
Comment 14 Randy D. Smith CLA 2006-09-01 18:54:34 EDT
Moving over to Kevin, since he's been doing all the work on this.
Comment 15 Karla Callaghan CLA 2006-09-05 12:56:03 EDT
Reassign to Kevin.
Comment 16 Kevin P O'Leary CLA 2006-09-18 15:50:28 EDT
I have passed the automated test suites using the AC/BC. I have also verified
the latest 4.3 builds passed as well. I am still waiting for indepedent confirmation of the tests passes  from Thay, but I am closing this bug. If there are further issues with Linux AC/BC I will address as new defects.
Comment 17 Karla Callaghan CLA 2006-10-24 12:53:32 EDT
Re-opening as this feature will not be a part of the 4.3 GA.

Intermitent connection problems were discovered when a client tries to attach to the AC when it was started in Secure mode. The code for this support was not platform-specific and worked fine for Windows, but now shows failures on Linux and the reasons are not clear. Discovery occurred late in 4.3 due to the 4.2.1 schedule overlap causing resource conflicts. In order to reduce risk to the 4.3 schedule which has had to be pushed out, have choosen to rollback to using the RAC on Linux IA32 rather than the new AC's backwards compatibility as it has had too little air time.

Note that the code for this work is not being removed, the only change is in putting the RAC pkg as the Linux IA32 agent controller download link vs. the new AC pkg.  When 4.4 commences and the security connection issues are resolved, the new AC pkg should be put back so that it is tested throughout all the iterations giving time to find/fix other issues that might be lurking. The secure connection issues have been added as dependencies to this bug (159677, 161096, 161285, 161289).
Comment 18 Karla Callaghan CLA 2007-01-25 13:07:36 EST
Assigning AC backwards compatibility Linux enhancemet to Igor.
Comment 19 Igor Alelekov CLA 2007-03-13 06:56:10 EDT
resolving as fixed
Comment 20 Paul Slauenwhite CLA 2009-06-30 12:04:52 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.