Community
Participate
Working Groups
This started happening very frequently when I use the Terminate button to kill a debug session on an Eclipse Application or JUnit Plug-In Test. org.eclipse.debug.core.DebugException: Terminate failed at org.eclipse.debug.core.model.RuntimeProcess.terminate(RuntimeProcess.java:230) at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.terminate(JDIDebugTarget.java:1774) at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.shutdown(JDIDebugTarget.java:1966) at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin.stop(JDIDebugPlugin.java:368) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:838) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:831) at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1019) at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:362) at org.eclipse.osgi.container.Module.doStop(Module.java:643) at org.eclipse.osgi.container.Module.stop(Module.java:505) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1824) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743) at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:275) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:195) at org.eclipse.osgi.container.Module.doStop(Module.java:643) at org.eclipse.osgi.container.Module.stop(Module.java:505) at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:207) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:213) at java.lang.Thread.run(Thread.java:748) eclipse.buildId=4.10.0.I20181206-0815 java.version=1.8.0_171 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.committers.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.committers.product
Does it terminate with this exception or doesn't terminate?
Please provide steps to reproduce, your exact Eclipse version and explain what exactly is not working.
Sorry for not responding earlier. The issue with Terminate failed started occurring frequently a few months ago. When I noticed the Error log entry mentioned above, I thought it was directly related, so I wrote the bug. But now I have noticed that, while the Terminate failed issue still occurs, it does not log this in the Error log when it happens. I have since updated to 2019-03 and I still have the occasional Terminate failed. After the pop-up error dialog, the Debug view shows the process as terminated, but the application is still running and must be killed from the OS. My current setup is: eclipse.buildId=4.11.0.I20190307-0500 java.version=1.8.0_171 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.committers.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.committers.product
Next time, can you watch out for the Details shown on "Details" button click from the Pop up dialog ? And what kind of program are you trying to terminate? How does Debug view look before terminate action ?
Not sure if this is all directly related but... I just had a "Terminate failed" dialog, after doing File -> Restart on a launched Eclipse application. The dialog does not have a Details button. The application was closed. The Debug view shows the process <terminated>. In the Console I see the following in red: pure virtual method called terminate called without an active exception And I had a "Ubuntu has crashed" popup with details that seemed to show Java had crashed.
I could find these JDK bugs - https://bugs.openjdk.java.net/browse/JDK-8146009 https://bugs.openjdk.java.net/browse/JDK-8169634
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.