Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 186003 - Process hangs at 51% when running and AGR test of a probekit Profile with JVMTI in standard mode
Summary: Process hangs at 51% when running and AGR test of a probekit Profile with JVM...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Igor Alelekov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 187399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-08 14:16 EDT by Liz Dancy CLA
Modified: 2016-05-05 10:53 EDT (History)
10 users (show)

See Also:


Attachments
Log File for error in Probe Insertion JVMTI (20.49 KB, application/octet-stream)
2007-05-08 14:16 EDT, Liz Dancy CLA
no flags Details
Log file with DEBUG and CBE format (22.11 KB, application/octet-stream)
2007-05-14 14:26 EDT, Liz Dancy CLA
no flags Details
patch (1.03 KB, patch)
2007-05-29 12:37 EDT, Igor Alelekov CLA
no flags Details | Diff
Sample Test Case (12.96 KB, application/x-zip-compressed)
2007-06-01 16:16 EDT, Liz Dancy CLA
no flags Details
Test case (12.96 KB, application/x-zip-compressed)
2007-06-07 08:24 EDT, Liz Dancy CLA
no flags Details
patch #2 (1.48 KB, patch)
2007-06-09 06:36 EDT, Igor Alelekov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Liz Dancy CLA 2007-05-08 14:16:01 EDT
This is a pretty specific defect but it is affecting my tests.

In AGR standard mode, a test of a probe Insertion Profile will hang at 51% giving errors in the agent controller's log file that I will attach.

In quick mode these pass as well as when launching the same workbench in debug or standard mode and then manually executing the Profile. 

Navid, can you add any other occurrences where you are seeing a hang at 51%? I can't reproduce in the may 8 driver except in this one circumstance. If this proves to be the only case then I am willing to wait on this being fixed as I can run my tests for the test pass in quick mode (the verifications are file output comparisons so it won't take a lot longer).
Comment 1 Liz Dancy CLA 2007-05-08 14:16:33 EDT
Created attachment 66337 [details]
Log File for error in Probe Insertion JVMTI

I have attached the log
Comment 2 Navid Mehregani CLA 2007-05-08 14:29:08 EDT
I've also experienced this problem intermittently when working with the Agent Controller. 
Comment 3 Guru Nagarajan CLA 2007-05-08 14:53:19 EDT
Liz, can you rerun with the AC logging set to Simple instead of CBE and also the level of logging to be DEBUG.

Can you elaborate as to how you root caused this to JVMTI vs. other components.
The reason I ask is because I have seen a number of defects where in the AC stalled during execution
Comment 4 Liz Dancy CLA 2007-05-08 16:04:45 EDT
Hi Guru,

I have not root caused this to the JVMTI agent. However, I feel this is agent-related. It may be with the AC and/or with the probekit agent extension although Navid reports this with other JVMTI analysis types. I will reset those log parameters and attach.
Thanks for looking into it. Like I said, its not critical for me at this stage.
Comment 5 Liz Dancy CLA 2007-05-14 14:26:04 EDT
Created attachment 67111 [details]
Log file with DEBUG and CBE format

Please find attached the requested log file. Eugene, can you comment on whether you have run into this? I am wondering if it could be a configuration problem on my end.
Comment 6 Navid Mehregani CLA 2007-05-15 15:04:44 EDT
Raising severity as I think this defect should be fixed in i4.  
Comment 7 Cindy Jin CLA 2007-05-18 15:35:53 EDT
I see the same error for JVMPI
Comment 8 Liz Dancy CLA 2007-05-18 16:05:51 EDT
In light of Cindy's comment Guru please re-assign to the AC Team.
Comment 9 Igor Alelekov CLA 2007-05-21 04:36:05 EDT
(In reply to comment #2)
> I've also experienced this problem intermittently when working with the Agent
> Controller. 

Navid, what a test case are you using?
Comment 10 Navid Mehregani CLA 2007-05-22 08:29:20 EDT
Igor,
I've noticed this problem from time to time when profiling a simple Java application.
Comment 11 Cindy Jin CLA 2007-05-22 16:25:15 EDT
I see the same problem while manually profile a java application using RAC4.3.1 on all other platforms.
Comment 12 Paul Slauenwhite CLA 2007-05-28 10:35:59 EDT
*** Bug 187399 has been marked as a duplicate of this bug. ***
Comment 13 Igor Alelekov CLA 2007-05-29 12:37:58 EDT
Created attachment 69085 [details]
patch

Hi Samson,
Could you please review the patch? 
I've tested it on Vista, Win NT, and Linux. Thanks.
Comment 14 Samson Wai CLA 2007-05-29 12:52:30 EDT
Hi Igor. Patch looks good. Please request for approval. Thanks.
Comment 15 Liz Dancy CLA 2007-05-29 13:14:50 EDT
Thanks Igor, I appreciate it!
Comment 16 Igor Alelekov CLA 2007-05-30 01:08:11 EDT
(In reply to comment #14)
> Hi Igor. Patch looks good. Please request for approval. Thanks.

Hi Samson, the patch is approved. Could you check the patch in?
Comment 17 Samson Wai CLA 2007-05-30 09:58:42 EDT
Patch checked in. Igor, you can mark this as fixed. Thanks.
Comment 18 Igor Alelekov CLA 2007-05-30 10:00:18 EDT
fixed
Comment 19 Igor Alelekov CLA 2007-05-30 10:01:24 EDT
(In reply to comment #15)
> Thanks Igor, I appreciate it!

Hi Liz, could you test the patch?
Does it work for you?
Comment 20 Liz Dancy CLA 2007-05-31 12:06:08 EDT
I will test it with the driver that comes out today and report back to the defect.
Comment 21 Liz Dancy CLA 2007-06-01 11:18:54 EDT
I am seeing the same 51% hang in the 200705310943 driver. I will attach an AGR test suite you can use to validate.
Comment 22 Liz Dancy CLA 2007-06-01 16:16:07 EDT
Created attachment 69784 [details]
Sample Test Case

Please find attached a sample test suite showing the problem. You can run this one as-is (I have only enabled one test case) in standard mode with Java5 to see the process hang at 51%. Please let me know if you need anything else.
Comment 23 Igor Alelekov CLA 2007-06-02 01:05:28 EDT
(In reply to comment #22)
> Created an attachment (id=69784) [details]
> Sample Test Case
> Please find attached a sample test suite showing the problem. You can run this
> one as-is (I have only enabled one test case) in standard mode with Java5 to
> see the process hang at 51%. Please let me know if you need anything else.

Liz,
I've never work with AGR before.
Could you please give me details. What do I need to reproduce the defect?
Comment 24 Liz Dancy CLA 2007-06-04 11:03:31 EDT
1) Open a fresh workspace
2) Create  plugin project (File > New > Project > Plugin Project (complete the required fields)
3) Import the attached test suite into this plugin project
4) Ensure the AC or IAC are running
5) Select the test suite (right click) and select Run As > Test
6) You will see a new runtime workbench open where the test suite will playback events. Note that there are some intentional pauses in the execution.
The correct outcome would be for it to launch a profile
The actual outocome is that the profile gets stuck at 51%. 

If you use the mouse or change the focus of the runner in any way the test case will fail. You need to allow the runner to have control over the UI while the test is executing. 
Comment 25 Igor Alelekov CLA 2007-06-07 08:05:29 EDT
Hi Liz,
I can't import test case you attached (How can I do it?).

I recorded and successfully playing back my own ui test with profiling session on remote machine.

Could you repeat you test with the last AC build from June 7th?

Your issue might be caused by too short timeout value for process launching.
Currently it is set in execution framework to 5 seconds only.
If issue remains, it could be reasonable to increase timeout value.
Comment 26 Liz Dancy CLA 2007-06-07 08:24:42 EDT
Created attachment 70490 [details]
Test case
Comment 27 Liz Dancy CLA 2007-06-07 08:28:12 EDT
Hi Igor, I have sent you the test case in .testsuite form via email. You should be able to just import it as a General File system import in Eclipse: File > Import > General > File System> Browse to it, import.

This only fails when running AGR tests as described belwo. Manual profiles on a remote machine will pass.
Comment 28 Igor Alelekov CLA 2007-06-09 06:36:26 EDT
Created attachment 70767 [details]
patch #2

Hi Samson, 
could you please review the patch?
It fixes stack memory violation.
Tnanks.

Liz,
With this patch I've successfully launched your (bit modified) AGR test suite.
Comment 29 Liz Dancy CLA 2007-06-11 17:04:24 EDT
I tested the patch after some difficulties and it does allow a process to be launched. Thanks for your hard work.
Comment 30 Samson Wai CLA 2007-06-12 13:16:15 EDT
Fix checked into CVS 2007/06/12 13:16 EDT.
Comment 31 Liz Dancy CLA 2007-06-19 09:25:34 EDT
Verified in TPTP 200706140100 driver
Comment 32 Liz Dancy CLA 2007-06-19 09:25:45 EDT
Closing