Regression

lldb-api.tools/lldb-server/register-reading.TestGdbRemoteGPacket.py (from lldb-api)

Failing for the past 1 build (Since #599 )
Took 27 sec.

Stacktrace

lldb version 10.0.99 (http://labmaster3.local/git/llvm-project.git revision c375dc230d16f451cf1c7e2868237da6ef7bc4cf)
  clang revision 3882edbe191f78547445424cb20983a20b71f4cf
  llvm revision 3882edbe191f78547445424cb20983a20b71f4cf
LLDB library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin
LLDB import library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin
libstdcxx tests will not be run because: Don't know how to build with libstdcxx on macosx
Skipping following debug info categories: ['dwo']

Session logs for test failures/errors/unexpected successes will go into directory '/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/test/logs'
Command invoked: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/dotest.py --arch=x86_64 -s /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/lldb --compiler /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil --filecheck /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/FileCheck --codesign-identity lldb_codesign --server /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/debugserver --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex -s=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/test/logs -t --env TERM=vt100 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex --lldb-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading -p TestGdbRemoteGPacket.py
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading
runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

Adding tearDown hook:         def shutdown_named_pipe():
            # Close the pipe.
            try:
                named_pipe.close()
            except:
                print("failed to close named pipe")
                None

            # Delete the pipe.
            try:
                os.remove(named_pipe_path)
            except:
                print("failed to delete named pipe: {}".format(named_pipe_path))
                None

            # Delete the temp directory.
            try:
                os.rmdir(temp_dir)
            except:
                print(
                    "failed to delete temp dir: {}, directory contents: '{}'".format(
                        temp_dir, os.listdir(temp_dir)))
                None


Adding tearDown hook:     def cleanupSubprocesses(self):
        # Ensure any subprocesses are cleaned up
        for p in self.subprocesses:
            p.terminate()
            del p
        del self.subprocesses[:]
        # Ensure any forked processes are cleaned up
        for pid in self.forkedProcessPids:
            if os.path.exists("/proc/" + str(pid)):
                os.kill(pid, signal.SIGTERM)


Adding tearDown hook:             def shutdown_debug_monitor():
                try:
                    server.terminate()
                except:
                    logger.warning(
                        "failed to terminate server for debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))


Adding tearDown hook:         def shutdown_socket():
            if sock:
                try:
                    # send the kill packet so lldb-server shuts down gracefully
                    sock.sendall(GdbRemoteTestCaseBase._GDBREMOTE_KILL_PACKET)
                except:
                    logger.warning(
                        "failed to send kill packet to debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))

                try:
                    sock.close()
                except:
                    logger.warning(
                        "failed to close socket to debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))


Adding tearDown hook:     def cleanupSubprocesses(self):
        # Ensure any subprocesses are cleaned up
        for p in self.subprocesses:
            p.terminate()
            del p
        del self.subprocesses[:]
        # Ensure any forked processes are cleaned up
        for pid in self.forkedProcessPids:
            if os.path.exists("/proc/" + str(pid)):
                os.kill(pid, signal.SIGTERM)


FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_g_packet_debugserver (TestGdbRemoteGPacket.TestGdbRemoteGPacket)
Executing tearDown hook:     def cleanupSubprocesses(self):
        # Ensure any subprocesses are cleaned up
        for p in self.subprocesses:
            p.terminate()
            del p
        del self.subprocesses[:]
        # Ensure any forked processes are cleaned up
        for pid in self.forkedProcessPids:
            if os.path.exists("/proc/" + str(pid)):
                os.kill(pid, signal.SIGTERM)


Executing tearDown hook:         def shutdown_socket():
            if sock:
                try:
                    # send the kill packet so lldb-server shuts down gracefully
                    sock.sendall(GdbRemoteTestCaseBase._GDBREMOTE_KILL_PACKET)
                except:
                    logger.warning(
                        "failed to send kill packet to debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))

                try:
                    sock.close()
                except:
                    logger.warning(
                        "failed to close socket to debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))


2019-12-04 22:14:32,120 WARNING  failed to send kill packet to debug monitor: <class 'TypeError'>; ignoring
Executing tearDown hook:             def shutdown_debug_monitor():
                try:
                    server.terminate()
                except:
                    logger.warning(
                        "failed to terminate server for debug monitor: {}; ignoring".format(
                            sys.exc_info()[0]))


Executing tearDown hook:     def cleanupSubprocesses(self):
        # Ensure any subprocesses are cleaned up
        for p in self.subprocesses:
            p.terminate()
            del p
        del self.subprocesses[:]
        # Ensure any forked processes are cleaned up
        for pid in self.forkedProcessPids:
            if os.path.exists("/proc/" + str(pid)):
                os.kill(pid, signal.SIGTERM)


Executing tearDown hook:         def shutdown_named_pipe():
            # Close the pipe.
            try:
                named_pipe.close()
            except:
                print("failed to close named pipe")
                None

            # Delete the pipe.
            try:
                os.remove(named_pipe_path)
            except:
                print("failed to delete named pipe: {}".format(named_pipe_path))
                None

            # Delete the temp directory.
            try:
                os.rmdir(temp_dir)
            except:
                print(
                    "failed to delete temp dir: {}, directory contents: '{}'".format(
                        temp_dir, os.listdir(temp_dir)))
                None


runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_g_returns_correct_data_no_suffix_llgs (TestGdbRemoteGPacket.TestGdbRemoteGPacket) (llgs tests) 
runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_g_returns_correct_data_with_suffix_llgs (TestGdbRemoteGPacket.TestGdbRemoteGPacket) (llgs tests) 
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test
======================================================================
FAIL: test_g_packet_debugserver (TestGdbRemoteGPacket.TestGdbRemoteGPacket)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py", line 59, in test_g_packet_debugserver
    self.run_test_g_packet()
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py", line 41, in run_test_g_packet
    self.connect_to_debug_monitor()
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 418, in connect_to_debug_monitor
    server = self.launch_debug_monitor(attach_pid=attach_pid)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 411, in launch_debug_monitor
    self.port = self.get_stub_port_from_named_socket(self._READ_TIMEOUT)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 225, in get_stub_port_from_named_socket
    "no content to read on pipe")
AssertionError: 0 == 0 : no content to read on pipe
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10
----------------------------------------------------------------------
Ran 3 tests in 15.993s

RESULT: FAILED (0 passes, 1 failures, 0 errors, 2 skipped, 0 expected failures, 0 unexpected successes)