Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 203018 - detach from JVMTI agent fails
Summary: detach from JVMTI agent fails
Status: CLOSED DUPLICATE of bug 202550
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Alexander N. Alexeev CLA
QA Contact:
URL:
Whiteboard: closed471
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 22:05 EDT by Alan Haggarty CLA
Modified: 2016-05-05 10:50 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 Alan Haggarty CLA 2007-09-11 22:05:14 EDT
Build ID: M20070822-0800

Steps To Reproduce:
1. launch an application profiling execution statistics
(for example the InOut class from the automation framework)
2. select and detach the profile monitor

The result is an error:
[Error: Detach failed]

to the console.

This happens for enabled or controlled. If I launch a 
controlled app from the command line:

D:\alan\tptp\441\09101254\workspace\org.eclipse.tptp.ac.testautomation\automatio
n-files\external_classes>java -agentlib:JPIBootLoader=JPIAgent:server=controlled
;CGProf InOut

I can successfully attach (unlike 203013) but if I detach
I get the same error as above.

More information:
InOut class used is: 
/org.eclipse.tptp.ac.testautomation/automation-files/external_classes/InOut.class
Comment 1 Alan Haggarty CLA 2007-09-11 22:07:14 EDT
This was originally found on Vista
Comment 2 Guru Nagarajan CLA 2007-09-12 00:09:55 EDT
What JVM are you using

Does the app terminate after that
Comment 3 Alan Haggarty CLA 2007-09-12 09:47:20 EDT
I am using IBM 1.5 SR5 and the app does terminate. This is not
readily apparent until you try to do something else if the app. was
launched by the gui but from the cli it is obviously terminated.
Comment 4 Asaf Yaffe CLA 2007-10-15 09:15:19 EDT
This is another duplicate of bug 202550 and the root-cause is the same.
In the case of "controlled" mode, dynamic byte-code instrumentation is required only upon detach. Therefore the workbench can successfully attach but fails to detach.


*** This bug has been marked as a duplicate of bug 202550 ***
Comment 5 Kathy Chan CLA 2010-11-18 18:47:52 EST
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.