Regression

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

Failing for the past 1 build (Since Unstable#1833 )
Took 3.5 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 --yaml2obj /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/yaml2obj --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/functionalities/thread/create_after_attach -p TestCreateAfterAttach.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 12.0.99
  clang revision 8aeb212887024a615ca02437cd12fa055bd54b6f
  llvm revision 8aeb212887024a615ca02437cd12fa055bd54b6f
Exiting now
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/functionalities/thread/create_after_attach
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: 

runCmd: process attach -p 12979
output: Process 12979 stopped
* thread #1, stop reason = signal SIGSTOP
    frame #0: 0x000000010fc99000 dyld`_dyld_start
dyld`_dyld_start:
->  0x10fc99000 <+0>: popq   %rdi
    0x10fc99001 <+1>: pushq  $0x0
    0x10fc99003 <+3>: movq   %rsp, %rbp
    0x10fc99006 <+6>: andq   $-0x10, %rsp

Executable module set to "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_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 = 0x000000010641053f


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 = 0x00000001064104ad


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*) + 79 at main.cpp:19:5, address = 0x000000010641036f


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 12979 resuming
Process 12979 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010641053f a.out`main(argc=1, argv=0x00007ffee97f0768) 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 12979 stopped
* thread #1: tid = 0x19d8cf3, 0x000000010641053f a.out`main(argc=1, argv=0x00007ffee97f0768) at main.cpp:50:50, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  thread #2: tid = 0x19d8f65, 0x000000010fcae87f dyld`ImageLoader::trieWalk(unsigned char const*, unsigned char const*, char const*) + 151


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 12979 resuming
Process 12979 stopped
* thread #3, stop reason = breakpoint 2.1
    frame #0: 0x00000001064104ad 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 12979 stopped
  thread #1: tid = 0x19d8cf3, 0x00007fff691b055e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
  thread #2: tid = 0x19d8f65, 0x00007fff691b1756 libsystem_kernel.dylib`__semwait_signal + 10
* thread #3: tid = 0x19d90e5, 0x00000001064104ad 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 12979 resuming
Process 12979 stopped
* thread #2, stop reason = breakpoint 3.1
    frame #0: 0x000000010641036f 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 12979 stopped
  thread #1: tid = 0x19d8cf3, 0x00007fff691b055e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread'
* thread #2: tid = 0x19d8f65, 0x000000010641036f 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 12979 resuming
Process 12979 exited with status = 0 (0x00000000) 



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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_create_after_attach_dsym (TestCreateAfterAttach.CreateAfterAttachTestCase)
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: 

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_create_after_attach_dwarf (TestCreateAfterAttach.CreateAfterAttachTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_create_after_attach_dwo (TestCreateAfterAttach.CreateAfterAttachTestCase) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_create_after_attach_gmodules (TestCreateAfterAttach.CreateAfterAttachTestCase) (test case does not fall in any category of interest for this run) 
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/test
======================================================================
ERROR: test_create_after_attach_dwarf (TestCreateAfterAttach.CreateAfterAttachTestCase)
   Test thread creation after process attach.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/functionalities/thread/create_after_attach/TestCreateAfterAttach.test_create_after_attach_dwarf -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach/Makefile MAKE_DSYM=NO ARCH=x86_64 CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12" DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil  CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api CFLAGS_EXTRAS=' -stdlib=libc++' LD_EXTRAS=''

Build Command Output:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12  -std=c++11 -g -O0 -fno-builtin -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk" -arch x86_64  -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../../include -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h  -fno-limit-debug-info  -stdlib=libc++   --driver-mode=g++ -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach/main.cpp
make: *** [main.o] Killed: 9

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/thread/create_after_attach
----------------------------------------------------------------------
Ran 4 tests in 3.099s

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

--