[lldb-dev] [Bug 26439] New: android adb connection can sometimes fail

via lldb-dev lldb-dev at lists.llvm.org
Tue Feb 2 07:15:01 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26439

            Bug ID: 26439
           Summary: android adb connection can sometimes fail
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: labath at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I have observed this happen on the darwin->android buildbot, build #8401
<http://lab.llvm.org:8011/builders/lldb-x86_64-darwin-13.4/builds/8401/steps/test1/logs/stdio>

======================================================================
FAIL: test_c_global_variables_dwo (TestGlobalVariables.GlobalVariablesTestCase)
   Test 'frame variable --scope --no-args' which omits args and shows scopes.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 2299, in dwo_test_method
    return attrvalue(self)
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 617, in wrapper
    func(*args, **kwargs)
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 617, in wrapper
    func(*args, **kwargs)
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py",
line 44, in test_c_global_variables
    'stop reason = breakpoint'])
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 2677, in expect
    self.runCmd(str, msg=msg, trace = (True if trace else False), check = not
error, inHistory=inHistory)
  File
"/Users/lldb_build/lldbSlave/buildDir/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 2603, in runCmd
    msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Process should be stopped due to breakpoint
Config=aarch64-/Users/lldb_build/Toolchains/aarch64-21/bin/aarch64-linux-android-gcc


Logs are a bit scarce, but they seem to indicate this was caused by a failed
adb connection while attempting to install liba.so.
1454384745.166052000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::ConnectionFileDescriptor ()
1454384745.166061000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::Connect (url = 'connect://localhost:5037')
1454384745.166066000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::CloseCommandPipe()
1454384745.166078000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::OpenCommandPipe() - success readfd=16 writefd=17
1454384745.166085000 [ced5/0713]: Socket::TcpConnect (host/port =
localhost:5037)
1454384745.166098000 [ced5/0713]: TCPSocket::Connect (host/port =
localhost:5037)
1454384745.166318000 [ced5/0713]: 0x7fcfec5099d0 Socket::Close (fd = 18)
1454384745.166341000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::~ConnectionFileDescriptor ()
1454384745.166348000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::Disconnect ()
1454384745.166353000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::Disconnect(): Nothing to disconnect
1454384745.166359000 [ced5/0713]: 0x7fff5a6affd0
ConnectionFileDescriptor::CloseCommandPipe()
1454384745.166379000 [ced5/0713]: SBTarget(0x7fcfee005400)::Launch (...) =>
SBProcess(0x7fcfef82ea00)

Normally, the TCPSocket::Connect should be followed by a bunch of socket
traffic. Instead, we seem to be closing the socket without sending any data.

It's hard to tell what to do at the moment, but I'll try to add more logging to
better understand the problem..

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160202/51dab1f3/attachment.html>


More information about the lldb-dev mailing list