Regression

lldb-api.functionalities/thread/create_after_attach.TestCreateAfterAttach.py (from lldb-api)

Failing for the past 1 build (Since #611 )
Took 2 min 41 sec.

Stacktrace

lldb version 10.0.99 (http://labmaster3.local/git/llvm-project.git revision 040c39d50fb9c60de9020caf86e1a1fccfd6f861)
  clang revision 85c98f4c3198cba95a66f429a1fbeb29f9e9c70b
  llvm revision 85c98f4c3198cba95a66f429a1fbeb29f9e9c70b
Exiting now
Exiting now
Exiting now
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/functionalities/thread/create_after_attach -p TestCreateAfterAttach.py
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach
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 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)


runCmd: process attach -p 12965
output: Process 12965 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
->  0x7fff7248a876 <+10>: jae    0x7fff7248a880            ; <+20>
    0x7fff7248a878 <+12>: movq   %rax, %rdi
    0x7fff7248a87b <+15>: jmp    0x7fff72486e31            ; cerror
    0x7fff7248a880 <+20>: retq   

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_with_fork_dsym/a.out".
Architecture set to: x86_64-apple-macosx-.


runCmd: breakpoint set -f "main.cpp" -l 50
output: Breakpoint 1: where = a.out`main + 79 at main.cpp:50:50, address = 0x000000010bfa458f


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 29
output: Breakpoint 2: where = a.out`thread_2_func(void*) + 45 at main.cpp:29:50, address = 0x000000010bfa44fd


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 19
output: Breakpoint 3: where = a.out`thread_1_func(void*) + 81 at main.cpp:19:5, address = 0x000000010bfa43c1


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: continue
output: Process 12965 resuming
Process 12965 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010bfa458f a.out`main(argc=1, argv=0x00007ffee3c5c590) at main.cpp:50:50
   47  	    int main_thread_continue = 0;
   48  	    while (!main_thread_continue) // The debugger will change this value
   49  	    {
-> 50  	        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
    	                                                 ^
   51  	    }
   52  	
   53  	    // Create another new thread



runCmd: thread list
output: Process 12965 stopped
* thread #1: tid = 0xccf75a, 0x000000010bfa458f a.out`main(argc=1, argv=0x00007ffee3c5c590) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0xccf785, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: main
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression main_thread_continue = 1
output: (int) $0 = 1


runCmd: continue
output: Process 12965 resuming
Process 12965 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x000000010bfa44fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50
   26  	    int child_thread_continue = 0;
   27  	    while (!child_thread_continue) // The debugger will change this value
   28  	    {
-> 29  	        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
    	                                                 ^
   30  	    }
   31  	
   32  	    // Release thread 1



runCmd: thread list
output: Process 12965 stopped
  thread #1: tid = 0xccf75a, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0xccf785, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10
* thread #3: tid = 0xccf7e9, 0x000000010bfa44fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50, stop reason = breakpoint 2.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_2_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression child_thread_continue = 1
output: (int) $1 = 1


runCmd: continue
output: Process 12965 resuming
Process 12965 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x000000010bfa43c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5
   16  	    }
   17  	
   18  	    // Return
-> 19  	    return NULL;  // Set third breakpoint here
    	    ^
   20  	}
   21  	
   22  	void *



runCmd: thread list
output: Process 12965 stopped
  thread #1: tid = 0xccf75a, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0xccf785, 0x000000010bfa43c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5, stop reason = breakpoint 3.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_1_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: continue
output: Process 12965 resuming
Process 12965 exited with status = 0 (0x00000000) 



<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10b23f5d0> >>: 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-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_fork_dsym (TestCreateAfterAttach.CreateAfterAttachTestCase)
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 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)


runCmd: process attach -p 13744
output: Process 13744 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff72486c2a libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
->  0x7fff72486c2a <+10>: retq   
    0x7fff72486c2b <+11>: nop    

libsystem_kernel.dylib`mach_msg_overwrite_trap:
    0x7fff72486c2c <+0>:  movq   %rcx, %r10
    0x7fff72486c2f <+3>:  movl   $0x1000020, %eax          ; imm = 0x1000020 

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_with_fork_dwarf/a.out".
Architecture set to: x86_64-apple-macosx-.


runCmd: breakpoint set -f "main.cpp" -l 50
output: Breakpoint 1: where = a.out`main + 79 at main.cpp:50:50, address = 0x000000010552c58f


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 29
output: Breakpoint 2: where = a.out`thread_2_func(void*) + 45 at main.cpp:29:50, address = 0x000000010552c4fd


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 19
output: Breakpoint 3: where = a.out`thread_1_func(void*) + 81 at main.cpp:19:5, address = 0x000000010552c3c1


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: continue
output: Process 13744 resuming
Process 13744 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010552c58f a.out`main(argc=1, argv=0x00007ffeea6d4568) at main.cpp:50:50
   47  	    int main_thread_continue = 0;
   48  	    while (!main_thread_continue) // The debugger will change this value
   49  	    {
-> 50  	        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
    	                                                 ^
   51  	    }
   52  	
   53  	    // Create another new thread



runCmd: thread list
output: Process 13744 stopped
* thread #1: tid = 0xccfd01, 0x000000010552c58f a.out`main(argc=1, argv=0x00007ffeea6d4568) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0xccfd14, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: main
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression main_thread_continue = 1
output: (int) $0 = 1


runCmd: continue
output: Process 13744 resuming
Process 13744 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x000000010552c4fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50
   26  	    int child_thread_continue = 0;
   27  	    while (!child_thread_continue) // The debugger will change this value
   28  	    {
-> 29  	        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
    	                                                 ^
   30  	    }
   31  	
   32  	    // Release thread 1



runCmd: thread list
output: Process 13744 stopped
  thread #1: tid = 0xccfd01, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0xccfd14, 0x00007fff72486c2a libsystem_kernel.dylib`mach_msg_trap + 10
* thread #3: tid = 0xccfdcd, 0x000000010552c4fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50, stop reason = breakpoint 2.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_2_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression child_thread_continue = 1
output: (int) $1 = 1


runCmd: continue
output: Process 13744 resuming
Process 13744 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x000000010552c3c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5
   16  	    }
   17  	
   18  	    // Return
-> 19  	    return NULL;  // Set third breakpoint here
    	    ^
   20  	}
   21  	
   22  	void *



runCmd: thread list
output: Process 13744 stopped
  thread #1: tid = 0xccfd01, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0xccfd14, 0x000000010552c3c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5, stop reason = breakpoint 3.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_1_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: continue
output: Process 13744 resuming
Process 13744 exited with status = 0 (0x00000000) 



<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10b251090> >>: 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-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_fork_dwarf (TestCreateAfterAttach.CreateAfterAttachTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_fork_dwo (TestCreateAfterAttach.CreateAfterAttachTestCase) (test case does not fall in any category of interest for this run) 
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 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)


runCmd: process attach -p 14536
runCmd failed!
error: attach failed: Error 1


FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_fork_gmodules (TestCreateAfterAttach.CreateAfterAttachTestCase)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x12182ccc0> >>: 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)


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


runCmd: process attach -p 15566
output: Process 15566 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x000000010d34ea9d a.out`std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l> >, std::__1::chrono::duration<long double, std::__1::ratio<1l, 1000000l> >, std::__1::ratio<1l, 1l>, true, true>::operator(this=0x00007ffee28b2330, __fd=0x00007ffee28b2510)(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l> > const&) const at chrono:894:67
   891 	    _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
   892 	    _ToDuration operator()(const _FromDuration& __fd) const
   893 	    {
-> 894 	        return _ToDuration(static_cast<typename _ToDuration::rep>(__fd.count()));
    	                                                                  ^
   895 	    }
   896 	};
   897 	

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_with_popen_dsym/a.out".
Architecture set to: x86_64-apple-macosx-.


runCmd: breakpoint set -f "main.cpp" -l 50
output: Breakpoint 1: where = a.out`main + 79 at main.cpp:50:50, address = 0x000000010d34e58f


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 29
output: Breakpoint 2: where = a.out`thread_2_func(void*) + 45 at main.cpp:29:50, address = 0x000000010d34e4fd


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 19
output: Breakpoint 3: where = a.out`thread_1_func(void*) + 81 at main.cpp:19:5, address = 0x000000010d34e3c1


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: continue
output: Process 15566 resuming
Process 15566 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010d34e58f a.out`main(argc=1, argv=0x00007ffee28b2568) at main.cpp:50:50
   47  	    int main_thread_continue = 0;
   48  	    while (!main_thread_continue) // The debugger will change this value
   49  	    {
-> 50  	        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
    	                                                 ^
   51  	    }
   52  	
   53  	    // Create another new thread



runCmd: thread list
output: Process 15566 stopped
* thread #1: tid = 0xcd0864, 0x000000010d34e58f a.out`main(argc=1, argv=0x00007ffee28b2568) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0xcd0878, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: main
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression main_thread_continue = 1
output: (int) $0 = 1


runCmd: continue
output: Process 15566 resuming
Process 15566 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x000000010d34e4fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50
   26  	    int child_thread_continue = 0;
   27  	    while (!child_thread_continue) // The debugger will change this value
   28  	    {
-> 29  	        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
    	                                                 ^
   30  	    }
   31  	
   32  	    // Release thread 1



runCmd: thread list
output: Process 15566 stopped
  thread #1: tid = 0xcd0864, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0xcd0878, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10
* thread #3: tid = 0xcd09ac, 0x000000010d34e4fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50, stop reason = breakpoint 2.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_2_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression child_thread_continue = 1
output: (int) $1 = 1


runCmd: continue
output: Process 15566 resuming
Process 15566 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x000000010d34e3c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5
   16  	    }
   17  	
   18  	    // Return
-> 19  	    return NULL;  // Set third breakpoint here
    	    ^
   20  	}
   21  	
   22  	void *



runCmd: thread list
output: Process 15566 stopped
  thread #1: tid = 0xcd0864, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0xcd0878, 0x000000010d34e3c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5, stop reason = breakpoint 3.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_1_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: continue
output: Process 15566 resuming
Process 15566 exited with status = 0 (0x00000000) 



<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10b251060> >>: 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-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_popen_dsym (TestCreateAfterAttach.CreateAfterAttachTestCase)
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 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)


runCmd: process attach -p 16466
output: Process 16466 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff72486c2a libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
->  0x7fff72486c2a <+10>: retq   
    0x7fff72486c2b <+11>: nop    

libsystem_kernel.dylib`mach_msg_overwrite_trap:
    0x7fff72486c2c <+0>:  movq   %rcx, %r10
    0x7fff72486c2f <+3>:  movl   $0x1000020, %eax          ; imm = 0x1000020 

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_with_popen_dwarf/a.out".
Architecture set to: x86_64-apple-macosx-.


runCmd: breakpoint set -f "main.cpp" -l 50
output: Breakpoint 1: where = a.out`main + 79 at main.cpp:50:50, address = 0x0000000102e7758f


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 29
output: Breakpoint 2: where = a.out`thread_2_func(void*) + 45 at main.cpp:29:50, address = 0x0000000102e774fd


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 19
output: Breakpoint 3: where = a.out`thread_1_func(void*) + 81 at main.cpp:19:5, address = 0x0000000102e773c1


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: continue
output: Process 16466 resuming
Process 16466 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000102e7758f a.out`main(argc=1, argv=0x00007ffeecd89568) at main.cpp:50:50
   47  	    int main_thread_continue = 0;
   48  	    while (!main_thread_continue) // The debugger will change this value
   49  	    {
-> 50  	        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
    	                                                 ^
   51  	    }
   52  	
   53  	    // Create another new thread



runCmd: thread list
output: Process 16466 stopped
* thread #1: tid = 0xcd0f32, 0x0000000102e7758f a.out`main(argc=1, argv=0x00007ffeecd89568) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0xcd0f65, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: main
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression main_thread_continue = 1
output: (int) $0 = 1


runCmd: continue
output: Process 16466 resuming
Process 16466 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x0000000102e774fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50
   26  	    int child_thread_continue = 0;
   27  	    while (!child_thread_continue) // The debugger will change this value
   28  	    {
-> 29  	        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
    	                                                 ^
   30  	    }
   31  	
   32  	    // Release thread 1



runCmd: thread list
output: Process 16466 stopped
  thread #1: tid = 0xcd0f32, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0xcd0f65, 0x00007fff72486c2a libsystem_kernel.dylib`mach_msg_trap + 10
* thread #3: tid = 0xcd0ff9, 0x0000000102e774fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50, stop reason = breakpoint 2.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_2_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression child_thread_continue = 1
output: (int) $1 = 1


runCmd: continue
output: Process 16466 resuming
Process 16466 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x0000000102e773c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5
   16  	    }
   17  	
   18  	    // Return
-> 19  	    return NULL;  // Set third breakpoint here
    	    ^
   20  	}
   21  	
   22  	void *



runCmd: thread list
output: Process 16466 stopped
  thread #1: tid = 0xcd0f32, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0xcd0f65, 0x0000000102e773c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5, stop reason = breakpoint 3.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_1_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: continue
output: Process 16466 resuming
Process 16466 exited with status = 0 (0x00000000) 



<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x12182ccc0> >>: 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-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_popen_dwarf (TestCreateAfterAttach.CreateAfterAttachTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_popen_dwo (TestCreateAfterAttach.CreateAfterAttachTestCase) (test case does not fall in any category of interest for this run) 
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 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)


runCmd: process attach -p 17071
output: Process 17071 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff72486c2a libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
->  0x7fff72486c2a <+10>: retq   
    0x7fff72486c2b <+11>: nop    

libsystem_kernel.dylib`mach_msg_overwrite_trap:
    0x7fff72486c2c <+0>:  movq   %rcx, %r10
    0x7fff72486c2f <+3>:  movl   $0x1000020, %eax          ; imm = 0x1000020 

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_with_popen_gmodules/a.out".
Architecture set to: x86_64-apple-macosx-.


runCmd: breakpoint set -f "main.cpp" -l 50
output: Breakpoint 1: where = a.out`main + 79 at main.cpp:50:50, address = 0x000000010af9258f


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 29
output: Breakpoint 2: where = a.out`thread_2_func(void*) + 45 at main.cpp:29:50, address = 0x000000010af924fd


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: breakpoint set -f "main.cpp" -l 19
output: Breakpoint 3: where = a.out`thread_1_func(void*) + 81 at main.cpp:19:5, address = 0x000000010af923c1


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: continue
output: Process 17071 resuming
Process 17071 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010af9258f a.out`main(argc=1, argv=0x00007ffee4c6e560) at main.cpp:50:50
   47  	    int main_thread_continue = 0;
   48  	    while (!main_thread_continue) // The debugger will change this value
   49  	    {
-> 50  	        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
    	                                                 ^
   51  	    }
   52  	
   53  	    // Create another new thread



runCmd: thread list
output: Process 17071 stopped
* thread #1: tid = 0xcd13e3, 0x000000010af9258f a.out`main(argc=1, argv=0x00007ffee4c6e560) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0xcd1407, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: main
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression main_thread_continue = 1
output: (int) $0 = 1


runCmd: continue
output: Process 17071 resuming
Process 17071 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x000000010af924fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50
   26  	    int child_thread_continue = 0;
   27  	    while (!child_thread_continue) // The debugger will change this value
   28  	    {
-> 29  	        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
    	                                                 ^
   30  	    }
   31  	
   32  	    // Release thread 1



runCmd: thread list
output: Process 17071 stopped
  thread #1: tid = 0xcd13e3, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0xcd1407, 0x00007fff7248a876 libsystem_kernel.dylib`__semwait_signal + 10
* thread #3: tid = 0xcd1485, 0x000000010af924fd a.out`thread_2_func(input=0x0000000000000000) at main.cpp:29:50, stop reason = breakpoint 2.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_2_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: expression child_thread_continue = 1
output: (int) $1 = 1


runCmd: continue
output: Process 17071 resuming
Process 17071 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x000000010af923c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5
   16  	    }
   17  	
   18  	    // Return
-> 19  	    return NULL;  // Set third breakpoint here
    	    ^
   20  	}
   21  	
   22  	void *



runCmd: thread list
output: Process 17071 stopped
  thread #1: tid = 0xcd13e3, 0x00007fff7248936a libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0xcd1407, 0x000000010af923c1 a.out`thread_1_func(input=0x0000000000000000) at main.cpp:19:5, stop reason = breakpoint 3.1


Expecting sub string: stopped
Matched

Expecting sub string: * thread #
Matched

Expecting sub string: thread_1_func
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: continue
output: Process 17071 resuming
Process 17071 exited with status = 0 (0x00000000) 



<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10b251090> >>: 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-sanitized/lldb-build/bin/clang-10-x86_64) :: test_create_after_attach_with_popen_gmodules (TestCreateAfterAttach.CreateAfterAttachTestCase)
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test
======================================================================
FAIL: test_create_after_attach_with_fork_gmodules (TestCreateAfterAttach.CreateAfterAttachTestCase)
   Test thread creation after process attach.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1732, in test_method
    return attrvalue(self)
  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/decorators.py", line 111, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py", line 39, in test_create_after_attach_with_fork
    self.create_after_attach(use_fork=True)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py", line 63, in create_after_attach
    self.runCmd("process attach -p " + str(pid))
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2061, in runCmd
    msg if (msg) else CMD_MSG(cmd))
AssertionError: False is not True : Command 'process attach -p 14536
Error output:
error: attach failed: Error 1
' returns successfully
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-10
----------------------------------------------------------------------
Ran 8 tests in 143.545s

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