<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [5.0] check-lldb-unit hangs with lldb-server running"
href="https://bugs.llvm.org/show_bug.cgi?id=34192">34192</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[5.0] check-lldb-unit hangs with lldb-server running
</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>enhancement
</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@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hahnjo@hahnjo.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>As said in the title, check-lldb-unit hangs while a process 'lldb-server' is
still running and consuming 100% CPU.
If I run tools/lldb/unittests/tools/lldb-server/tests/LLDBServerTests manually,
I get:
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ThreadsInJstopinfoTest
[ RUN ] ThreadsInJstopinfoTest.TestStopReplyContainsThreadPcsLlgs
lldb-server-local_buildConnection established.
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:171::
Send Packet:
A214,0,2F746D702F6A683336363237362F636C75737465722D6870635F31373334342F6275696C642D352E302E307263322F66696E616C2F746F6F6C732F6C6C64622F756E697474657374732F746F6F6C732F6C6C64622D7365727665722F7468726561645F696E666572696F72,2,1,34
1502787553.110960007 < 1> read packet: +
1502787553.111004114 < 232> read packet:
$A214,0,2F746D702F6A683336363237362F636C75737465722D6870635F31373334342F6275696C642D352E302E307263322F66696E616C2F746F6F6C732F6C6C64622F756E697474657374732F746F6F6C732F6C6C64622D7365727665722F7468726561645F696E666572696F72,2,1,34#1a
1502787553.111036062 < 1> send packet: +
Launched
'<...>/build-5.0.0rc2/final/tools/lldb/unittests/tools/lldb-server/thread_inferior'
as process 31142...
1502787553.146780014 < 6> send packet: $OK#9a
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:174::
Read Packet: OK
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:171::
Send Packet: qLaunchSuccess
1502787553.146975040 < 1> read packet: +
1502787553.147003889 < 18> read packet: $qLaunchSuccess#a5
1502787553.147032976 < 1> send packet: +
1502787553.147064924 < 6> send packet: $OK#9a
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:174::
Read Packet: OK
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:171::
Send Packet: qProcessInfo
1502787553.147120953 < 1> read packet: +
1502787553.147138119 < 16> read packet: $qProcessInfo#dc
1502787553.147159100 < 1> send packet: +
1502787553.147363901 < 166> send packet:
$pid:79a6;parent-pid:79a4;real-uid:651e;real-gid:651e;effective-uid:651e;effective-gid:651e;triple:7838365f36342d2d6c696e7578;ostype:linux;endian:little;ptrsize:8;#1f
1502787553.147422075 < 1> read packet: +
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:174::
Read Packet:
pid:79a6;parent-pid:79a4;real-uid:651e;real-gid:651e;effective-uid:651e;effective-gid:651e;triple:7838365f36342d2d6c696e7578;ostype:linux;endian:little;ptrsize:8;
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:171::
Send Packet: QListThreadsInStopReply
1502787553.147484064 < 27> read packet: $QListThreadsInStopReply#21
1502787553.147500992 < 1> send packet: +
1502787553.147512913 < 6> send packet: $OK#9a
1502787553.147535086 < 1> read packet: +
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:174::
Read Packet: OK
[ INFO ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:171::
Send Packet: vCont;c
1502787553.147579908 < 11> read packet: $vCont;c#a8
1502787553.147593975 < 1> send packet: +
1502787553.147814035 < 443> send packet:
$O2f746d702f6a683336363237362f636c75737465722d6870635f31373334342f6275696c642d352e302e307263322f66696e616c2f746f6f6c732f6c6c64622f756e697474657374732f746f6f6c732f6c6c64622d7365727665722f7468726561645f696e666572696f723a206572726f72207768696c65206c6f6164696e6720736861726564206c69627261726965733a206c6962632b2b2e736f2e313a2063616e6e6f74206f70656e20736861726564206f626a6563742066696c653a204e6f20737563682066696c65206f72206469726563746f72790d0a#09
[ INFO ] 1502787553.147836924 < 1> read packet: +
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:174::
Read Packet:
O2f746d702f6a683336363237362f636c75737465722d6870635f31373334342f6275696c642d352e302e307263322f66696e616c2f746f6f6c732f6c6c64622f756e697474657374732f746f6f6c732f6c6c64622d7365727665722f7468726561645f696e666572696f723a206572726f72207768696c65206c6f6164696e6720736861726564206c69627261726965733a206c6962632b2b2e736f2e313a2063616e6e6f74206f70656e20736861726564206f626a6563742066696c653a204e6f20737563682066696c65206f72206469726563746f72790d0a
1502787553.147871971 < 7> send packet: $W7f#f4
[ ERROR ]
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp:223::
Unable to parse StopReply: thread ID at [0].
<...>/src-5.0.0rc2/tools/lldb/unittests/tools/lldb-server/tests/ThreadIdsInJstopinfoTest.cpp:33:
Failure
Value of: client.ContinueAll()
Actual: false
Expected: true
[ FAILED ] ThreadsInJstopinfoTest.TestStopReplyContainsThreadPcsLlgs (76 ms)
[----------] 1 test from ThreadsInJstopinfoTest (76 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (76 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] ThreadsInJstopinfoTest.TestStopReplyContainsThreadPcsLlgs
1 FAILED TEST</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>