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.
Steps to reproduce: 1. Run MemoryView with External execution 2. try to "Terminate" the process from the runtime tab Will attach the thread dump - JVM is creating more and more Terminator threads!
Created attachment 3561 [details] Thread dump after the freeze
More details: Using [JDK 1.4 b87] NB dev build from 20011123 and the problem is around org.netbeans.core.CoronaClipboard.getContents(CoronaClipboard.java:174)
fixed in release33 branch, will be merged into trunk later.
Even with the fix this can be reproduced.
When the same is done with JDK 1.3.1_01 you get this exception and the process is not stopped. Fri Nov 23 17:48:55 CET 2001: java.lang.IllegalMonitorStateException: <no message> java.lang.IllegalMonitorStateException [catch] at sun.awt.motif.SelectionThread.run(X11Selection.java:312)&Z If you do this and exit the IDE the MemoryView is still running.
Peter, please investigate. We know that Thread.stop() is not safe but what we can use instead?
On my Linux 2.4.15 + JDK 1.3.1_01 I does not see any exception but "Terminate Process" really does not have any effect on the externally executed process.
Just CCing me.
Created attachment 3573 [details] patch against release33 to fix the bug
fixed in release33 branch and marked as a candidate for NB 3.3.0. Hrebejk, please review the fix. Also look at ProcessExecutor class. It's ugly to my tastes.
The process is killed now. But on JDK1.4-rc-b87 the JVM still hangs in my setup.
merged release33 -> release330
release33 #200111300330 BTW the problem that externaly executed processes are still running after the ide shutdown still persist. I'll file new issue against this behaviour.
Resolved for 3.4.x or earlier, no new info since then -> closing.