<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - lldb (local debugging) hangs with no output if lldb-server exits during launch"
href="https://llvm.org/bugs/show_bug.cgi?id=23344">23344</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb (local debugging) hangs with no output if lldb-server exits during launch
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vince@nethacker.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>lldb waits forever for the lldb-server to reverse connect.
repro steps: hack lldb-server to return at start of main
OBSERVED (threads in lldb)
python [40725] [cores: 12,31]
Thread #1 [python] 40725 (Exiting) [core: 12] (Suspended : User Request)
pthread_join() at pthread_join.c:92 0x7fa90d93c66b
lldb_private::HostThreadPosix::Join() at 0x7fa908b1439c
lldb_private::HostThread::Join() at 0x7fa907c123cd
lldb_private::process_gdb_remote::GDBRemoteCommunication::JoinListenThread() at
0x7fa907d80d46
lldb_private::process_gdb_remote::GDBRemoteCommunication::StartDebugserverProcess()
at 0x7fa907d8296d
lldb_private::process_gdb_remote::ProcessGDBRemote::LaunchAndConnectToDebugserver()
at 0x7fa907dabc40
lldb_private::process_gdb_remote::ProcessGDBRemote::DoLaunch() at
0x7fa907daf71b
lldb_private::Process::Launch() at 0x7fa907ebdfd2
lldb_private::platform_linux::PlatformLinux::DebugProcess() at
0x7fa908ab16ef
lldb_private::Target::Launch() at 0x7fa907ee1550
<...more frames...>
Thread #2 [1:0] 40781 [core: 31] (Suspended : Container)
accept4() at accept4.c:37 0x7fa90d669b1f
lldb_private::Socket::BlockingAccept() at 0x7fa907c1a2df
lldb_private::ConnectionFileDescriptor::SocketListenAndAccept() at
0x7fa908b12ab6
lldb_private::ConnectionFileDescriptor::Connect() at 0x7fa908b13007
lldb_private::process_gdb_remote::GDBRemoteCommunication::ListenThread() at
0x7fa907d80010
lldb_private::HostNativeThreadBase::ThreadCreateTrampoline() at
0x7fa907c11f56
start_thread() at pthread_create.c:312 0x7fa90d93b182
clone() at clone.S:111 0x7fa90d66847d
EXPECTED:
lldb outputs a nice error message</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>