Regression

Test Clang 7.0.1 / lldb-Suite.python_api/hello_world.TestHelloWorld.py (from lldb-Suite)

Failing for the past 1 build (Since Unstable#270 )
Took 3.2 sec.

Stacktrace

lldb version 10.0.99 (http://labmaster3.local/git/llvm-project.git revision 1a3dd638c4a9173e53628b497a1aadc31c32eb50)
  clang revision daa79c5338228a746a7eba0cf2f2f356e1d45a5b
  llvm revision daa79c5338228a746a7eba0cf2f2f356e1d45a5b
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/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-matrix/test/logs'
Command invoked: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/dotest.py --arch=x86_64 -s /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/lldb --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil --filecheck /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/FileCheck -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang --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/tools/lldb/lldb-test-build.noindex --module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/python_api/hello_world -p TestHelloWorld.py
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/python_api/hello_world
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-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

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)


looking at: Stack traces for SBProcess: pid = 17068, state = stopped, threads = 1, executable = test_with_attach_to_process_with_id_api_16985
Stack trace for thread id=0x277e4c7 name=None queue=com.apple.main-thread stop reason=signal
  frame #0: 0x007fff727dc876 libsystem_kernel.dylib`__semwait_signal + 10
  frame #1: 0x007fff72767830 libsystem_c.dylib`nanosleep + 199
  frame #2: 0x007fff72767692 libsystem_c.dylib`sleep + 41
  frame #3: 0x0000010a0d3f1a test_with_attach_to_process_with_id_api_16985`main at main.c:28 ((int)argc=2, (const char **)argv=0x00007ffee5b2c428)
  frame #4: 0x007fff726a0085 libdyld.dylib`start + 1
  frame #5: 0x007fff726a0085 libdyld.dylib`start + 1



Expecting sub string: main.c:28
Matched

Expecting sub string: (int)argc=2
Matched

<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10c184fc0> >>: success

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)


PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_with_attach_to_process_with_id_api (TestHelloWorld.HelloWorldTestCase)
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-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

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)


looking at: test_with_attach_to_process_with_name_api_16985

Expecting start string: test_with_attach_to_process_with_name_api_16985
Matched

looking at: Stack traces for SBProcess: pid = 17262, state = stopped, threads = 1, executable = test_with_attach_to_process_with_name_api_16985
Stack trace for thread id=0x277e5e5 name=None queue=com.apple.main-thread stop reason=signal
  frame #0: 0x007fff727dc876 libsystem_kernel.dylib`__semwait_signal + 10
  frame #1: 0x007fff72767830 libsystem_c.dylib`nanosleep + 199
  frame #2: 0x007fff72767692 libsystem_c.dylib`sleep + 41
  frame #3: 0x0000010f4d7f1a test_with_attach_to_process_with_name_api_16985`main at main.c:28 ((int)argc=2, (const char **)argv=0x00007ffee0728418)
  frame #4: 0x007fff726a0085 libdyld.dylib`start + 1
  frame #5: 0x007fff726a0085 libdyld.dylib`start + 1



Expecting sub string: main.c:28
Matched

Expecting sub string: (int)argc=2
Matched

<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10c36ef90> >>: success

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)


PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_with_attach_to_process_with_name_api (TestHelloWorld.HelloWorldTestCase)
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-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_with_process_launch_api (TestHelloWorld.HelloWorldTestCase)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10c184db0> >>: success

Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lit
======================================================================
FAIL: test_with_process_launch_api (TestHelloWorld.HelloWorldTestCase)
   Create target, breakpoint, launch a process, and then kill it.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py", line 71, in test_with_process_launch_api
    self.assertIsNotNone(thread)
AssertionError: unexpectedly None
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7
----------------------------------------------------------------------
Ran 3 tests in 2.705s

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