This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193211 - Cancelling debugging task does not stop debugger (64-bit only)
Summary: Cancelling debugging task does not stop debugger (64-bit only)
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 09:15 UTC by mienamoo
Modified: 2012-04-05 06:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot after stopping process (113.02 KB, image/jpeg)
2010-12-10 09:18 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2010-12-10 09:15:12 UTC
[ BUILD # : 201012090001 ]
[ JDK VERSION : 1.6.17 ]

When cancelling the debugging task in the IDE, the debugging session is not
terminated correctly.

Steps to reproduce:

1. Debug a platform application.
2. Cancel the debug process by clicking on the X on the status bar next to the
process.
3. The application continues running.

On occasion this also causes all the debugger windows to stay open after
debugging terminates. However, I have found no reliable way to reproduce that
behaviour.

This appears to be a 64-bit operating system only issue. I have not been able
to reproduce it on 32-bit Windows XP.
Comment 1 mienamoo 2010-12-10 09:18:27 UTC
Created attachment 103914 [details]
Screenshot after stopping process

The screenshot shows the inconsistent state of the debugger after stopping the process. The output window shows that the build has been stopped, and the task is no longer on the status bar, but the debugger is still running.
Comment 2 Martin Entlicher 2010-12-10 10:19:38 UTC
Can you reproduce this behavior also when you execute the platform application via Run?
The problem seems to be in the way how the application is terminated, which should be the same for Run and Debug. Also, when debugging, does Debug -> Finish Debugger Session terminate the application?
Comment 3 mienamoo 2010-12-10 14:28:49 UTC
(In reply to comment #2)

I have indeed reproduced this behaviour when running the application. 

Debug -> Finish Debugger Session does terminate the application as expected, including closing all the debug top components.
Comment 4 Martin Entlicher 2010-12-15 09:23:48 UTC
Then it's a problem of the execution termination in general...
Comment 5 Jesse Glick 2011-01-07 01:18:36 UTC
Maybe an issue with netbeans.exe. If it's not reproducible in 32-bit XP then I cannot evaluate it.
Comment 6 mienamoo 2011-01-07 05:34:23 UTC
There is something else that I have noticed, which may or may not be related. When running or debugging an application on the same 64-bit OS, none of the output of the actual application is shown in the output Window. The output generated while executing the ant script to run the app is displayed. But after that, one the application is running, no output whatsoever.
Comment 7 TFruehbeck 2011-03-11 15:02:13 UTC
Same problem on 64 bit linux.
The debugger is not usable anymore after some steps.
It looks like the debugger has lost connection to the app, the process being debugged is not visible anymore in the process list.
Start/Stop/Continue is shown active, but IDE doesnt react anymore.

Very annoying, means to stop and restart netbeans every 5-10 breakpoints!

>Log Session: Friday, March 11, 2011 4:02:47 PM CET
>System Info: 
  Product Version         = NetBeans IDE 7.0 Beta 2 (Build 201102140001) (#c4653c02b9b3)
  Operating System        = Linux version 2.6.34.7-0.7-desktop running on amd64
  Java; VM; Vendor        = 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_24-b07
  Java Home               = /usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre
Comment 8 Jiri Rechtacek 2012-02-16 16:57:20 UTC
Assigned to new owner.
Comment 9 Jiri Rechtacek 2012-03-27 09:13:01 UTC
fixed in trunk - core-main/rev/34fef02e9b05.
Builds for verification are available at
http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 10 mienamoo 2012-04-05 06:53:28 UTC
Verified with build 201204040400 on Windows 7 64-bit with JDK 7u3 64-bit.