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

Bug 164863

Summary: New Agent Controller crashes after launching tests with security enabled.
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Igor Alelekov <igor.alelekov>
Status: CLOSED WORKSFORME QA Contact:
Severity: critical    
Priority: P1 CC: andrew.kaylor, jptoomey, karla.callaghan, kdsiefke, samwai
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
OS Dump
none
Agent Controller log none

Description Paul Slauenwhite CLA 2006-11-16 14:38:24 EST
New Agent Controller crashes after launching tests with security enabled.

Using the TPTP-4.3.0-200611160100 driver and using the following configuration and scenario, the new Agent Controller crashes after launching tests with security enabled.

Configuration: 

Local test execution (Windows XP) using the following JRE (workbench and Agent  Controller):

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20061002a (SR3)
)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2006100
1 (JIT enabled)
J9VM - 20060915_08260_lHdSMR
JIT  - 20060908_1811_r8
GC   - 20060906_AA)
JCL  - 20061002

Steps to Reproduce:

1) With a new workbench/Agent Cotornoler install/config, start the new Agent COntroller lcaoly with security enabled and create/run (twice) a 'hello world' manaul test.

2) Stop the workbench but not the new Agent COntroller.

3) Start worknbench and run the 'hello world' manaul test twice.

4) Stop the workbench and the new Agent Controller will crash.
Comment 1 Paul Slauenwhite CLA 2006-11-16 14:38:51 EST
Created attachment 54010 [details]
OS Dump
Comment 2 Paul Slauenwhite CLA 2006-11-16 14:39:38 EST
Created attachment 54012 [details]
Agent Controller log
Comment 3 Paul Slauenwhite CLA 2006-11-16 15:11:39 EST
Although I did not see this using two XP machines, I have seen the same symptoms on Linux x86 SUSE (Workbench) --> Windows XP (Agent Controller).
Comment 4 Andy Kaylor CLA 2006-11-16 19:52:46 EST
I haven't been able to reproduce this problem.  I have a very slightly different JVM (downloaded today), but I'd be surprised if that's the issue.

I wasn't able to make much sense of the OS dump, but it looked to me like it lists RAServer, ACServer and ACWinService all as running.  Am I interpreting that correctly?
Comment 5 Paul Slauenwhite CLA 2006-11-16 21:56:33 EST
(In reply to comment #4)

I have no idea, to be honest:)  XP provided me with the dump so I though it may be useful.
Comment 6 Andy Kaylor CLA 2006-11-17 11:11:08 EST
Were you running the AC as a service?

Can you reproduce this consistently?
Comment 7 Andy Kaylor CLA 2006-11-17 13:58:40 EST
This is the JVM I was using to try to reproduce the bug:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32devifx-20060124)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-2006
0124 (JIT enabled)
J9VM - 20051027_03723_lHdSMR
JIT  - 20051027_1437_r8
GC   - 20051020_AA)
JCL  - 20060120

I'm not sure how to interpret all that, but it didn't seem likely to me to make a significant difference from what was listed in the original description.
Comment 8 Kevin P O'Leary CLA 2006-11-17 14:08:06 EST
I tried running some smoketests of ACServer with security enabled and was not able to get the AC to crash. (but I have not dug very deep on this issue)
Comment 9 Paul Slauenwhite CLA 2006-11-17 14:12:44 EST
(In reply to comment #7)

This is the IBM 1.5 GA JRE.  I was using the third service release (SR3). 
Comment 10 Paul Slauenwhite CLA 2006-11-17 14:13:01 EST
(In reply to comment #6)
> Were you running the AC as a service?

No.

> Can you reproduce this consistently?

Yes.

Comment 11 Paul Slauenwhite CLA 2006-11-22 10:56:01 EST
Since this defect cannot be consistently reproduced, targeting to 4.4 and increasing the priority to P1 (PMC approval).
Comment 12 Karla Callaghan CLA 2007-02-09 11:52:18 EST
Added effort estimate: 5 days
Comment 13 Igor Alelekov CLA 2007-03-09 06:33:17 EST
I can't reproduce this problem with 4.4i1 AC build.
Comment 14 Paul Slauenwhite CLA 2007-03-13 14:55:53 EDT
(In reply to comment #11)
> Since this defect cannot be consistently reproduced, targeting to 4.4 and
> increasing the priority to P1 (PMC approval).

CORRECTION: This defect can be consistently reproduced.
Comment 15 Paul Slauenwhite CLA 2007-03-13 14:57:29 EDT
(In reply to comment #13)
> I can't reproduce this problem with 4.4i1 AC build.

Igor, I can consistently reproduce this defect using a clean TPTP-4.4.0-200702211545 driver and the Agent Controller running on the following IBM JRE:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070201 (SR4))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2007020
1 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT  - 20070109_1805ifx1_r8
GC   - 200701_09)
JCL  - 20070131
Comment 16 Igor Alelekov CLA 2007-03-14 03:23:27 EDT
Hi Paul,
Could you please describe your test case - "'hello world' manaul test"?
I used standard JUnit tests to reproduce the problem.
Comment 17 Paul Slauenwhite CLA 2007-03-14 07:32:45 EDT
(In reply to comment #16)
> Hi Paul,
> Could you please describe your test case - "'hello world' manual test"?
> I used standard JUnit tests to reproduce the problem.

Create a new Manual Test (File >> New >> Other... >> Test >> Manual Test) and add a couple of test cases to the test suite.  After adding the invocations of the same test cases to the behavioral, save the test suite and run.
Comment 18 Igor Alelekov CLA 2007-03-15 10:07:59 EDT
Thank you, I got it.
But unfortunately I can't reproduce the defect using your test case.
Comment 19 Igor Alelekov CLA 2007-03-16 03:49:47 EDT
Paul, may be it is important to have the same JVM to reproduce the bug?
Could you tell where can I get JVM you used?
JVM, available for download at the IBM site, differs from your one.
Comment 20 Paul Slauenwhite CLA 2007-03-22 13:00:05 EDT
(In reply to comment #19)
> Paul, may be it is important to have the same JVM to reproduce the bug?
> Could you tell where can I get JVM you used?
> JVM, available for download at the IBM site, differs from your one.

You can download the IBM 1.5 SR4 JRE here:

http://www-128.ibm.com/developerworks/java/jdk/linux/download.html
Comment 21 Igor Alelekov CLA 2007-03-23 02:42:48 EDT
This page is for Linux JRE only.
Not for a Windows as it is reported in the bug.
Comment 22 Paul Slauenwhite CLA 2007-03-23 09:23:28 EDT
(In reply to comment #21)
> This page is for Linux JRE only.
> Not for a Windows as it is reported in the bug.

Sorry, I was thinking this was a defect for a Linux issue.  Unfortuantly, the IBM 1.5 SR4 JRE does not appear to be publicly available for Windows.  However, this defect was originally found using the IBM 1.5 SR3 JRE for Windows which is available at:

http://www-128.ibm.com/developerworks/java/jdk/eclipse/index.html

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32pdev-20061002a (SR3
))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2006100
1 (JIT enabled)
J9VM - 20060915_08260_lHdSMR
JIT  - 20060908_1811_r8
GC   - 20060906_AA)
JCL  - 20061002
Comment 23 Samson Wai CLA 2007-05-03 10:40:18 EDT
Hi Paul. I am using the TPTP-4.4.0-200705021157 drivers and cannot make AC to crash on Windows XP (x86). Instead the manual test client crashes after I hit "Next" on the UI. I am using the IBM JDK 1.5.0 SR4 as well.
Comment 24 Samson Wai CLA 2007-05-03 10:44:55 EDT
There is currently a bug in SetConfig (bug 185349) where you cannot turn on security. To workaround you need to do this:
1. run "SetConfig.bat" and accept the default for security
2. run "SetConfig.bat -s SECURITY=true" again to turn security on
Comment 25 Paul Slauenwhite CLA 2007-05-03 11:27:36 EDT
(In reply to comment #23)
> Hi Paul. I am using the TPTP-4.4.0-200705021157 drivers and cannot make AC to
> crash on Windows XP (x86). Instead the manual test client crashes after I hit
> "Next" on the UI. I am using the IBM JDK 1.5.0 SR4 as well.
> 

This did not show up in my unit testing.  I am investigating now and I will provide a fix under 185370.
Comment 26 Samson Wai CLA 2007-05-10 09:14:07 EDT
Hi Paul. Since I cannot reproduce the problem I will close this for now. Please investigate the Manual Test client side. Thanks.
Comment 27 Paul Slauenwhite CLA 2007-05-10 09:35:06 EDT
(In reply to comment #26)
> Hi Paul. Since I cannot reproduce the problem I will close this for now. Please
> investigate the Manual Test client side. Thanks.
> 

The issue with the Manual Test View was resolved on May 3.

Using the TPTP-4.4.0-200705100100 driver with the following JRE on Windows XP Pro SP2, I cannot reproduce this problem:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070201 (SR4))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2007020
1 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT  - 20070109_1805ifx1_r8
GC   - 200701_09)
JCL  - 20070131