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 182584 - java.io.IOException: java.io.IOException: error=13, Permission denied
Summary: java.io.IOException: java.io.IOException: error=13, Permission denied
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
: 182597 182993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-23 15:07 UTC by Alexander Pepin
Modified: 2010-03-29 14:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166832


Attachments
stacktrace (1.33 KB, text/plain)
2010-03-23 15:07 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2010-03-23 15:07:35 UTC
Build: NetBeans IDE Dev (Build cnd-main-3067-on-100322)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux

User Comments:
apepin: Steps to reproduce:
- create local Welcome sample
- set Internal Terminal as a console type
- do setp into
Result: gdb fails due to exception.




Stacktrace: 
java.io.IOException: java.io.IOException: error=13, Permission denied
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
   at java.lang.ProcessImpl.start(ProcessImpl.java:65)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
   at org.netbeans.modules.nativeexecution.pty.PtyCreatorImpl.allocate(PtyCreatorImpl.java:76)
   at org.netbeans.modules.nativeexecution.pty.PtyCreatorImpl.allocate(PtyCreatorImpl.java:62)
   at org.netbeans.modules.nativeexecution.api.pty.PtySupport.allocate(PtySupport.java:147)
Comment 1 Alexander Pepin 2010-03-23 15:07:39 UTC
Created attachment 95609 [details]
stacktrace
Comment 2 Alexander Pepin 2010-03-23 15:21:10 UTC
At the same time 'run in internal terminal' and 'debug in output window' work fine.
Comment 3 Andrew Krasny 2010-03-24 16:01:48 UTC
could be fixed with http://hg.netbeans.org/cnd-main/rev/05b98aa88ac6
Comment 4 Maria Tishkova 2010-03-29 09:26:51 UTC
*** Bug 182993 has been marked as a duplicate of this bug. ***
Comment 5 Maria Tishkova 2010-03-29 09:28:22 UTC
*** Bug 182597 has been marked as a duplicate of this bug. ***
Comment 6 Alexander Pepin 2010-03-29 13:16:13 UTC
it's still reproducible in dev build #3127 (100329)
Please fix it ASAP.
Comment 7 Alexander Pepin 2010-03-29 13:17:15 UTC
Now it also happens while run in internal terminal.
Comment 8 Alexander Pepin 2010-03-29 13:23:42 UTC
If I manually set execution permissions for 
./netbeans/ide/bin/nativeexecution/Linux-x86/pty_open
 then I get the following exception when try to run Welcome sample:

java.io.IOException: PID of process 'ap153252@localhost /home/ap153252/NetBeansProjects/Welcome_44/dist/Debug/GNU-Linux-x86/welcome_44 "arg 1" "arg 2" "arg 3" "arg 4"' is not received!
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.getPID(AbstractNativeProcess.java:173)
	at org.netbeans.modules.nativeexecution.pty.IOConnectorImpl$Reaper.run(IOConnectorImpl.java:181)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1369)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1907)
Comment 9 Alexander Pepin 2010-03-29 13:25:53 UTC
and one more exception:

java.io.IOException: PID of process 'ap153252@localhost /home/ap153252/NetBeansProjects/Welcome_44/dist/Debug/GNU-Linux-x86/welcome_44 "arg 1" "arg 2" "arg 3" "arg 4"' is not received!
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.getPID(AbstractNativeProcess.java:173)
	at org.netbeans.modules.nativeexecution.PtyNativeProcess$Reaper.run(PtyNativeProcess.java:152)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1369)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1907)
Comment 10 Andrew Krasny 2010-03-29 14:24:40 UTC
http://hg.netbeans.org/cnd-main/rev/d3503c7799d1
Comment 11 Andrew Krasny 2010-03-29 14:39:28 UTC
*** Bug 182669 has been marked as a duplicate of this bug. ***