Regression

Test Clang 7.0.1 / lldb-api.tools/lldb-server.TestGdbRemote_qThreadStopInfo.py (from lldb-api)

Failing for the past 1 build (Since Unstable#1760 )
Took 21 sec.

Stacktrace

Script:
--
/usr/local/Frameworks/Python.framework/Versions/3.7/bin/python3.7 /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/dotest.py --arch x86_64 -s /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --codesign-identity lldb_codesign --server /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/debugserver --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex -s=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/test/logs -t --env TERM=vt100 --skip-category gmodules --skip-category watchpoint --arch=x86_64 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex --lldb-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/lldb --compiler /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil --filecheck /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/FileCheck --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/tools/lldb-server -p TestGdbRemote_qThreadStopInfo.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 11.0.99
  clang revision 93bb9944cb577f0529636dc5acfba16026740962
  llvm revision 93bb9944cb577f0529636dc5acfba16026740962
LLDB library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin
LLDB import library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib
libstdcxx tests will not be run because: Don't know how to build with libstdcxx on macosx
Skipping following debug info categories: ['dwo']

--
Command Output (stderr):
--

Session logs for test failures/errors/unexpected successes will go into directory '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/test/logs'
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/tools/lldb-server
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_has_valid_thread_names_debugserver (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo) (MacOSX doesn't have a default thread name) 
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_has_valid_thread_names_llgs (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo) (requires one of linux, windows) 
runCmd: settings clear -all
output: 

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

runCmd: settings set target.auto-apply-fixits 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-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
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:
            try:
                os.kill(pid, signal.SIGTERM)
            except OSError:
                pass


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]))


FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_debugserver (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo)
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]))


2020-07-09 06:24:43,379 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:
            try:
                os.kill(pid, signal.SIGTERM)
            except OSError:
                pass


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 clear -all
output: 

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

runCmd: settings set target.auto-apply-fixits 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-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
output: 

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_llgs (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo) (llgs tests) 
runCmd: settings clear -all
output: 

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

runCmd: settings set target.auto-apply-fixits 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-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
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:
            try:
                os.kill(pid, signal.SIGTERM)
            except OSError:
                pass


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]))


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]))


2020-07-09 06:24:50,600 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:
            try:
                os.kill(pid, signal.SIGTERM)
            except OSError:
                pass


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


PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_works_for_multiple_threads_debugserver (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo)
runCmd: settings clear -all
output: 

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

runCmd: settings set target.auto-apply-fixits 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-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
output: 

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11-x86_64) :: test_qThreadStopInfo_works_for_multiple_threads_llgs (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo) (llgs tests) 
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/test
======================================================================
ERROR: test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_debugserver (TestGdbRemote_qThreadStopInfo.TestGdbRemote_qThreadStopInfo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 140, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py", line 165, in test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_debugserver
    self.THREAD_COUNT)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py", line 136, in qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt
    (stop_replies, _) = self.gather_stop_replies_via_qThreadStopInfo(thread_count)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py", line 55, in gather_stop_replies_via_qThreadStopInfo
    timeout_seconds=self._WAIT_TIMEOUT)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 910, in wait_for_thread_count
    timeout_seconds, thread_count, actual_thread_count))
Exception: timed out after 5 seconds while waiting for theads: waiting for at least 5 threads, found 1
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-11
----------------------------------------------------------------------
Ran 6 tests in 20.116s

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

--