[Lldb-commits] [PATCH] Fix TestGdbRemote* on remote Linux

Vince Harron vince at nethacker.com
Thu Mar 26 11:23:42 PDT 2015


Is fixes the test but I'm getting these stack traces prints.  What do they mean?  (I'm in calibration now)

vharron at tifa:~/ll/svn/llvm/tools/lldb/test$ ./dotest.py -m --executable $HOME/ll/svn/build/host/bin/lldb -s $HOME/ll/svn/build/host/lldb-test-traces -A x86_64 -C clang-3.5 -u CFLAGS -u CXXFLAGS --platform-name remote-linux --platform-url connect://192.168.100.130:5432 --platform-working-dir /tmp -p TestLldbGdbServer.py
LLDB library dir: /usr/local/google/home/vharron/ll/svn/build/host/bin
lldb version 3.7.0 ( https://vharron@llvm.org/svn/llvm-project/lldb/trunk revision 233281 clang revision 233281 llvm revision 233281)
Setting up remote platform 'remote-linux'
Connecting to remote platform 'remote-linux' at 'connect://192.168.100.130:5432'...
Connected.
Setting remote platform working directory to '/tmp'...
lldb.pre_flight: None
lldb.post_flight: None

Session logs for test failures/errors/unexpected successes will go into directory '/usr/local/google/home/vharron/ll/svn/build/host/lldb-test-traces'
Command invoked: ./dotest.py -m --executable /usr/local/google/home/vharron/ll/svn/build/host/bin/lldb -s /usr/local/google/home/vharron/ll/svn/build/host/lldb-test-traces -A x86_64 -C clang-3.5 -u CFLAGS -u CXXFLAGS --platform-name remote-linux --platform-url connect://192.168.100.130:5432 --platform-working-dir /tmp -p TestLldbGdbServer.py
compilers=['clang-3.5']

Configuration: arch=x86_64 compiler=clang-3.5
---------------------------------------------

Collected 69 tests

.=success F=fail E=error s=skipped x=expected-fail u=unexpected-success

sus.s.s.s.s.swarning: output queue entries still exist:
\x00\x00

from here:

  File "./dotest.py", line 1805, in <module>
    resultclass=LLDBTestResult).run(suite)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/runner.py", line 162, in run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 64, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 84, in run
    self._wrapped_run(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 116, in _wrapped_run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 415, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 357, in run
    testMethod()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 513, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 221, in test_c_packet_works_llgs_dwarf
    self.c_packet_works()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 207, in c_packet_works
    self.expect_gdbremote_sequence()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/gdbremote_testcase.py", line 517, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(self, self.sock, self.test_sequence, timeout_seconds, self.logger)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/lldbgdbserverutils.py", line 252, in expect_lldb_gdbserver_replay
    context["O_content"] = pump.get_accumulated_output()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/socket_packet_pump.py", line 69, in __exit__
    traceback.print_stack()

.s.s.swarning: output queue entries still exist:
\x00\x00

from here:

  File "./dotest.py", line 1805, in <module>
    resultclass=LLDBTestResult).run(suite)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/runner.py", line 162, in run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 64, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 84, in run
    self._wrapped_run(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 116, in _wrapped_run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 415, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 357, in run
    testMethod()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 513, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 158, in test_inferior_exit_0_llgs_dwarf
    self.inferior_exit_0()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 144, in inferior_exit_0
    self.expect_gdbremote_sequence()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/gdbremote_testcase.py", line 517, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(self, self.sock, self.test_sequence, timeout_seconds, self.logger)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/lldbgdbserverutils.py", line 252, in expect_lldb_gdbserver_replay
    context["O_content"] = pump.get_accumulated_output()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/socket_packet_pump.py", line 69, in __exit__
    traceback.print_stack()

.swarning: output queue entries still exist:
\x00\x00

from here:

  File "./dotest.py", line 1805, in <module>
    resultclass=LLDBTestResult).run(suite)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/runner.py", line 162, in run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 64, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 84, in run
    self._wrapped_run(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 116, in _wrapped_run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 415, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 357, in run
    testMethod()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 513, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 192, in test_inferior_exit_42_llgs_dwarf
    self.inferior_exit_42()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 178, in inferior_exit_42
    self.expect_gdbremote_sequence()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/gdbremote_testcase.py", line 517, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(self, self.sock, self.test_sequence, timeout_seconds, self.logger)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/lldbgdbserverutils.py", line 252, in expect_lldb_gdbserver_replay
    context["O_content"] = pump.get_accumulated_output()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/socket_packet_pump.py", line 69, in __exit__
    traceback.print_stack()

.swarning: output queue entries still exist:
hello, world\r\nhe

from here:

  File "./dotest.py", line 1805, in <module>
    resultclass=LLDBTestResult).run(suite)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/runner.py", line 162, in run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 64, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 84, in run
    self._wrapped_run(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 116, in _wrapped_run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 415, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 357, in run
    testMethod()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 513, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 255, in test_inferior_print_exit_llgs_dwarf
    self.inferior_print_exit()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 240, in inferior_print_exit
    context = self.expect_gdbremote_sequence()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/gdbremote_testcase.py", line 517, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(self, self.sock, self.test_sequence, timeout_seconds, self.logger)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/lldbgdbserverutils.py", line 252, in expect_lldb_gdbserver_replay
    context["O_content"] = pump.get_accumulated_output()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/socket_packet_pump.py", line 69, in __exit__
    traceback.print_stack()

.s.s.s.s.s.s.s.s.s..s.s.s.s.s.s.s.s.s.s.s.s.swarning: output queue entries still exist:
message: Hello, memoryX\r\nme

from here:

  File "./dotest.py", line 1805, in <module>
    resultclass=LLDBTestResult).run(suite)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/runner.py", line 162, in run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 64, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 84, in run
    self._wrapped_run(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/suite.py", line 116, in _wrapped_run
    test(result)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 415, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/unittest2/case.py", line 357, in run
    testMethod()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 513, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 1371, in test_written_M_content_reads_back_correctly_llgs_dwarf
    self.written_M_content_reads_back_correctly()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/TestLldbGdbServer.py", line 1349, in written_M_content_reads_back_correctly
    context = self.expect_gdbremote_sequence()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/gdbremote_testcase.py", line 517, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(self, self.sock, self.test_sequence, timeout_seconds, self.logger)
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/lldbgdbserverutils.py", line 252, in expect_lldb_gdbserver_replay
    context["O_content"] = pump.get_accumulated_output()
  File "/usr/local/google/home/vharron/ll/svn/llvm/tools/lldb/test/tools/lldb-server/socket_packet_pump.py", line 69, in __exit__
    traceback.print_stack()

.
-

Ran 69 tests in 51.236s

OK (skipped=34, unexpected successes=1)
Session logs for test failures/errors/unexpected successes can be found in directory '/usr/local/google/home/vharron/ll/svn/build/host/lldb-test-traces'


================
Comment at: test/tools/lldb-server/gdbremote_testcase.py:294
@@ +293,3 @@
+            connect_attemps = 0
+            MAX_CONNECT_ATTEMPS = 10
+
----------------
MAX_CONNECT_ATTEMPTS

http://reviews.llvm.org/D8454

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list