Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-tm-dev] SSH/SFTP Remote launch pipe closed

Anna,

Thank you for the suggestion. Using a Linux connection type and
specifying the SSH subsystem does not correct the issue or otherwise
change its behavior.

I have a few observations:

1. Using the same Linux connection that I created, I can reproduce the
bug that you referenced below. However, I noticed that it only occurs if
'exit' is the first command that is run. If I enter any other commands
first, 'exit' works as expected with no exceptions.

2. Although the exception is the same, the bug that I am experiencing is
different in that it happens when the connection is first initiated
(resulting in the reader being killed but the connection remaining open)
rather than when the connection is closed by logging out.

3. From the information displayed on the console and briefly looking at
the code, it seems like the reader is incorrectly interpreting some
output as the command prompt and sending the command string to the board
before the shell is available to execute commands; it then catches an
exception and is terminated, leaving the connection open.

Thank you,

Travis


On Sun, 2009-10-25 at 14:51 +0300, Anna Dushistova wrote:
> Hi Travis,
> Could you please try "Linux" connection type instead of "SSH only"?
> You can also make it use SSH.
> 
> There is a bug about this exception already:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=274153
> 
> Let me know if using "Linux" connection type helps.
> Thanks!
> Anna.
> 
> Dr. Anna Dushistova
> MontaVista Software Inc.
> 
> 
> 
> On Oct 23, 2009, at 1:33 AM, Travis Stratman wrote:
> 
> > Hello,
> >
> > I am trying to use RSE/CDT Remote launch feature on an ARM board  
> > running
> > OpenSSH/SFTP (I tried version 4.2p1 and then upgraded to 5.2p1 with  
> > the
> > same result) under Linux. I am able to start an SSH terminal to the
> > board through the Terminal plugin and browse SFTP files through RSE
> > without any issue. I can also do a remote launch on another Linux PC
> > using the SSH/SFTP connection with no issues.
> >
> > I am seeing some strange behavior that I am in the process of  
> > debugging
> > on both sides but I also wanted to see if anyone familiar with the
> > plugin code would be able to point me in the right direction.
> >
> > After compiling the executable, I right click and open the Run As
> > dialog. Here I create a new connection to the board using the "SSH  
> > Only"
> > configuration. When I attempt to "Run" the executable, it is copied to
> > the board correctly (but never made executable like it should be). The
> > focus is redirected to the console view, where rather than seeing the
> > program execution, it is actually logged into a session on the  
> > board. If
> > I type commands here (including running the executable) they succeed.
> > For example:
> > ----
> > echo $PWD'>'
> > /tmp/hello;exit
> > root@SOM9G20M:~#
> > ls
> > ls
> > hello
> > root@SOM9G20M:~#
> > root@SOM9G20M:~#
> > root@SOM9G20M:~# echo $PWD'>'
> > /root>
> > root@SOM9G20M:~#
> > exit
> > exit
> > ----
> >
> > I typed one 'ls' command into the console above and then 'exit' after
> > the ls finished.
> >
> > The full debugging output on the SSH server shows nothing of interest
> > that I can see.
> >
> > Eclipse does report an "Unexpected exception". This happens before I
> > close the console session by logging out. Here are the event details:
> > ----
> > eclipse.buildId=M20090917-0800
> > java.version=1.5.0_14
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> > Framework arguments:  -product org.eclipse.epp.package.cpp.product
> > Command-line arguments:  -os linux -ws gtk -arch x86 -product  
> > org.eclipse.epp.package.cpp.product
> >
> >
> > Error
> > Thu Oct 22 14:01:59 CDT 2009
> > Unexpected exception
> >
> > java.io.IOException: Pipe closed
> > 	at java.io.PipedInputStream.read(PipedInputStream.java:241)
> > 	at java.io.PipedInputStream.read(PipedInputStream.java:305)
> > 	at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java: 
> > 411)
> > 	at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java: 
> > 453)
> > 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
> > 	at java.io.InputStreamReader.read(InputStreamReader.java:167)
> > 	at java.io.BufferedReader.fill(BufferedReader.java:136)
> > 	at java.io.BufferedReader.read(BufferedReader.java:157)
> > 	at  
> > org 
> > .eclipse 
> > .rse 
> > .internal 
> > .services 
> > .shells 
> > .TerminalServiceShellOutputReader 
> > .internalReadLine(TerminalServiceShellOutputReader.java:60)
> > 	at  
> > org 
> > .eclipse 
> > .rse 
> > .services 
> > .shells 
> > .AbstractHostShellOutputReader 
> > .handle(AbstractHostShellOutputReader.java:74)
> > 	at  
> > org 
> > .eclipse 
> > .rse 
> > .services 
> > .shells 
> > .AbstractHostShellOutputReader 
> > .run(AbstractHostShellOutputReader.java:180)
> >
> > ----
> >
> > Any ideas on where to start with this?
> >
> > Thank you,
> >
> > Travis
> >
> >
> > _______________________________________________
> > dsdp-tm-dev mailing list
> > dsdp-tm-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> 
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev



Back to the top