Bug 368217 - [remotecdt] Cannot debug application on remote embedded target when logon script (.profile) runs resize command
Summary: [remotecdt] Cannot debug application on remote embedded target when logon scr...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 02:52 EST by Jan Pohanka CLA
Modified: 2020-09-04 15:19 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?