Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 203013 - TI profiling attach fails in 'Enabled' mode
Summary: TI profiling attach fails in 'Enabled' mode
Status: CLOSED DUPLICATE of bug 202550
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Guru Nagarajan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 20:28 EDT by Jonathan West CLA
Modified: 2016-05-05 10:48 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan West CLA 2007-09-11 20:28:31 EDT
Build ID: M20070905-1045

Steps To Reproduce:
1. Run the java profiling agent from the command line, in enabled mode. e.g.:
java -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf StartStop

Program should start as usual w/ program output on the console.

2. Connect to the agent in eclipse using 'Attach to Agent'.

Command line Java program terminates with an "[Error: Attach failed]" message. Eclipse client receives no profiling data.



More information:
Using TPTP-4.4.1-200709101254, IBM Java 1.5, external AC, on Windows XP.
Comment 1 jkubasta CLA 2007-09-11 21:22:57 EDT
Also, reproduced on Vista
Comment 2 Alan Haggarty CLA 2007-09-11 21:46:50 EDT
Maybe a symptom of the same problem:
testing DetachAttachTest1 on Vista when I try to detach from the
agent I get in the console (was launched as an external java application which
is enabled mode)

...
Please enter a string : 
[Error: Detach failed]
...

the monitor does report detached but when I try to reattach I get:
"The JVMTI agent appears to be inactive"
and the monitor state changes to terminated.
Comment 3 Jonathan West CLA 2007-09-11 22:00:47 EDT
Alan, I've seen the message that you describe on all of my attach/detach tests, and I believe that that symptom is as a result of bug 202550.
Comment 4 Alan Haggarty CLA 2007-09-11 22:09:52 EDT
(In reply to comment #3)
> Alan, I've seen the message that you describe on all of my attach/detach tests,
> and I believe that that symptom is as a result of bug 202550.

I think you're right. I also just logged a probable duplicate 203018.
Please ignore that comment on this log.
Comment 5 Guru Nagarajan CLA 2007-09-12 00:08:16 EDT

*** This bug has been marked as a duplicate of bug 202550 ***
Comment 6 Jonathan West CLA 2010-06-10 14:02:23 EDT
Closing.