Bug 66334

Summary: Remote Debug Connection not disconnected when JDIDebugModel.newDebugTarget(...) fails
Product: [Eclipse Project] Platform Reporter: Richard Birenheide <richard.birenheide>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 Keywords: core
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Richard Birenheide CLA 2004-06-09 11:44:23 EDT
In the method SocketAttachConnector.connect(....) a virtual machine is created 
by 
VirtualMachine vm = connector.attach(map);
This obviously connects to the remote debug process. If the subsequent call to 
debugTarget= JDIDebugModel.newDebugTarget(launch, vm, vmLabel, null, 
allowTerminate, true);
fails (eg. by a time-out), the connection to the remote VM is not terminated 
leaving the debug port of the remote VM blocked. Since there is no means to get 
the associated VirtualMachine object I can cannot do this in my 
LaunchConfigurationDelegate. Either there should be a method getVm(): 
VirtualMachine in the IVMConnector interface or you catch all Throwables and 
release the connection on catching the error (eventually in method abort()).

Cheers
Richard
Comment 1 Darin Wright CLA 2004-06-09 11:47:59 EDT

*** This bug has been marked as a duplicate of 66330 ***