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.
While running automatic tests which use internal terminal we get such exception in the messages log file: .... SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$2 java.lang.IllegalThreadStateException at org.netbeans.modules.nativeexecution.AbstractNativeProcess.exitValue(AbstractNativeProcess.java:322) at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$ProcessChangeListener$1.run(DefaultProjectActionHandler.java:459) at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$ProcessChangeListener.run(DefaultProjectActionHandler.java:543) at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1$3$1.run(NativeExecutionService.java:188) [catch] at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$2.run(NativeTaskExecutorService.java:79) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1415) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1954) WARNING [gdb.logger]: Unexpected gdb error: "ptrace: No such process." .....
fixed with http://hg.netbeans.org/cnd-main/rev/4fcc07a3d45a and http://hg.netbeans.org/cnd-main/rev/2fd6faee4ad6
It's reproducible in rc1 Steps to reproduce: - create remote Quote project - run it using Internal terminal - press Stop on the toolbar in Internal terminal Result: Exception appears. java.lang.IllegalThreadStateException at org.netbeans.modules.nativeexecution.AbstractNativeProcess.exitValue(AbstractNativeProcess.java:340) at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$ProcessChangeListener$1.run(DefaultProjectActionHandler.java:462) at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$ProcessChangeListener.run(DefaultProjectActionHandler.java:546) at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1$3$1.run(NativeExecutionService.java:191) at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$2.run(NativeTaskExecutorService.java:82) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
The key note is that the profiler should be switched OFF. If the profiler is ON then execution stops without exception.
The reason is understood. This is the problem of handling cancel() of task that runs program in internal terminal (NativeExecutionService). The problem is not reproduced in case when profiler is ON only because it handles cancellation event in a different way than DefaultProjectActionHandler does. (DefaultProjectActionHandler does it more correctly).
Created attachment 99515 [details] Proposed fix
Vladimir, please review the proposed fix (attached)
pushed to cnd-main [http://hg.netbeans.org/cnd-main/rev/c7a682eb85ce]
verified in rc1 build with provided jar file. Please push the fix into release69 clone.
integrated in http://hg.netbeans.org/release69/rev/cf6b6c3bad44
verified in rc2 build.