[Bug 34183] New: Remote debugging ARM linux target from x86 linux host - process launch fails

Bug ID 34183
Summary Remote debugging ARM linux target from x86 linux host - process launch fails
Product lldb
Version 5.0
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter ramana.venkat83@gmail.com
CC llvm-bugs@lists.llvm.org

The issue is mentioned on lldb-dev list here
[http://lists.llvm.org/pipermail/lldb-dev/2017-August/012594.html](http://lists.llvm.org/pipermail/lldb-dev/2017-August/012594.html).

The remote debugging under the same environment works with lldb v4.0.1.

In lldb v5.0, it appears that GDBRemoteCommunication::StartDebugserverProcess()
is not able to allocate/find new port for the spawned gdbserver which is
evident from the log line

GDBRemoteCommunication::StartDebugserverProcess() debugserver listens 0 port

causing the following error on the client side.

Socket::TcpConnect (host/port = 10.10.2.3)
TCPSocket::Connect (host/port = 10.10.2.3)
error: connect remote failed (invalid host:port specification: '10.10.2.3')

Chris Bieneman changed bug 34183

What | Removed | Added |

Comment # 7 on bug 34183 from Chris Bieneman

I've committed a fix in r312008. Can you please see if that resolves the issue
for you?