<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 --- - android adb connection can sometimes fail"
   href="https://llvm.org/bugs/show_bug.cgi?id=26439">26439</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>android adb connection can sometimes fail
          </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@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>labath@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have observed this happen on the darwin->android buildbot, build #8401
<<a href="http://lab.llvm.org:8011/builders/lldb-x86_64-darwin-13.4/builds/8401/steps/test1/logs/stdio">http://lab.llvm.org:8011/builders/lldb-x86_64-darwin-13.4/builds/8401/steps/test1/logs/stdio</a>>

======================================================================
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..</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>