Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368217

Summary: [remotecdt] Cannot debug application on remote embedded target when logon script (.profile) runs resize command
Product: [Tools] CDT Reporter: Jan Pohanka <xhpohanka>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: major    
Priority: P3 CC: cdtdoug, mohamed_hussein, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jan Pohanka CLA 2012-01-10 02:52:51 EST
Build Identifier: 20110916-0149

I have a remote connection defined (SSH only). The user name for the target is root. In the RSE perspective I can do anything (browse files, transfer files, launch terminals and commands in them ...) but when I create a debug configuration using this remote connection the only action that is performed is the transfer of the executable file. No application is executed on remote target. When I try the same but with normal user (not root) on the remote target everything works great. root account is not disabled on the target (I can log in there with ssh without problems). I have tried it with or without password, with or without ssh key, but no success.

Tried in Helios and Indigo eclipse releases.

Reproducible: Always

Steps to Reproduce:
1. Create a new remote connection as a normal user on host computer.
2. Chose root as a user for the target
3. Try browsing files and terminals in RSE perspective - it works
4. Create a new debug configuration using this remote connection
5. Run debug - executable file is transfered but nothing is executed on the target - gdb connection timeouts
Comment 1 Jan Pohanka CLA 2012-01-17 01:37:16 EST
I have discovered the source of problem - it was not the user specification but the fact, that root had resize command on the last line of the .profile script. This command outputs COLUMNS=90;LINES=39;export COLUMNS LINES; on stdout and then the eclipse remote debug does not run anything else.
Comment 2 Martin Oberhuber CLA 2012-01-17 02:40:20 EST
Remote Debug is managed by CDT.
Comment 3 Mohamed Hussein CLA 2020-04-27 12:20:57 EDT
We hit this issue recently in CDT 9.5 as well.

Any clues where in CDT might the issue be?