Regression

Test Clang 7.0.1 / lldb-api.commands/expression/persistent_types.TestPersistentTypes.py (from lldb-api)

Failing for the past 1 build (Since Unstable#1833 )
Took 2.2 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/commands/expression/persistent_types -p TestPersistentTypes.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 12.0.99
  clang revision 8aeb212887024a615ca02437cd12fa055bd54b6f
  llvm revision 8aeb212887024a615ca02437cd12fa055bd54b6f
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/commands/expression/persistent_types
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: file /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/persistent_types/TestPersistentTypes.test_persistent_types_dsym/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/persistent_types/TestPersistentTypes.test_persistent_types_dsym/a.out' (x86_64).


runCmd: breakpoint set --name main
output: Breakpoint 1: where = a.out`main + 20 at main.c:3:14, address = 0x0000000100000f94


runCmd: run
output: Process 13392 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f94 a.out`main(argc=1, argv=0x00007ffeefbff730) at main.c:3:14
   1   	int main (int argc, char const *argv[])
   2   	{
-> 3   		const char* foo = "Hello world";
    		            ^
   4   	    return 0;
   5   	}

Process 13392 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/persistent_types/TestPersistentTypes.test_persistent_types_dsym/a.out' (x86_64)


runCmd: expression struct $foo { int a; int b; };
output: 

runCmd: expression struct $foo $my_foo; $my_foo.a = 2; $my_foo.b = 3;
output: (int) $0 = 3


Expecting start string: (int) $0 = 3
Matched

runCmd: expression $my_foo
output: (struct $foo) $my_foo = (a = 2, b = 3)


Expecting sub string: a = 2
Matched

Expecting sub string: b = 3
Matched

runCmd: expression typedef int $bar
output: 

runCmd: expression $bar i = 5; i
output: ($bar) $1 = 5


Expecting start string: ($bar) $1 = 5
Matched

runCmd: expression struct $foobar { char a; char b; char c; char d; };
output: 

runCmd: next
output: Process 13392 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = step over
    frame #0: 0x0000000100000f9f a.out`main(argc=1, argv=0x00007ffeefbff730) at main.c:4:5
   1   	int main (int argc, char const *argv[])
   2   	{
   3   		const char* foo = "Hello world";
-> 4   	    return 0;
    	    ^
   5   	}



runCmd: memory read foo -t $foobar
output: ($foobar) 0x100000fa1 = (a = 'H', b = 'e', c = 'l', d = 'l')


Expecting sub string: ($foobar) 0x
Matched

Expecting sub string:  = 
Matched

Expecting sub string: a = 'H'
Matched

Expecting sub string: b = 'e'
Matched

Expecting sub string: c = 'l'
Matched

Expecting sub string: d = 'l'
Matched

runCmd: memory read foo -t $foobar -x c
output: ($foobar) 0x100000fa1 = (a = 'H', b = 'e', c = 'l', d = 'l')


Expecting sub string: ($foobar) 0x
Matched

Expecting sub string:  = 
Matched

Expecting sub string: a = 'H'
Matched

Expecting sub string: b = 'e'
Matched

Expecting sub string: c = 'l'
Matched

Expecting sub string: d = 'l'
Matched

runCmd: memory read foo -t foobar
check of return status not required
runCmd failed!
error: unable to find any types that match the raw type 'foobar' for full type 'foobar'


Not expecting sub string: ($foobar) 0x
Not matched

Not expecting sub string:  = 
Not matched

Not expecting sub string: a = 'H'
Not matched

Not expecting sub string: b = 'e'
Not matched

Not expecting sub string: c = 'l'
Not matched

Not expecting sub string: d = 'l'
Not matched

runCmd: expression struct { int a; int b; } x = { 2, 3 }; x
output: (struct (anonymous struct at <user expression 7>:48:1)) $4 = (a = 2, b = 3)


Expecting sub string: a = 2
Matched

Expecting sub string: b = 3
Matched

runCmd: expression struct { int x; int y; int z; } object; object.y = 1; object.z = 3; object.x = 2; object
output: (struct (anonymous struct at <user expression 8>:48:1)) $5 = (x = 2, y = 1, z = 3)


Expecting sub string: x = 2
Matched

Expecting sub string: y = 1
Matched

Expecting sub string: z = 3
Matched

runCmd: expression struct A { int x; int y; }; struct { struct A a; int z; } object; object.a.y = 1; object.z = 3; object.a.x = 2; object
output: (struct (anonymous struct at <user expression 9>:48:29)) $6 = {
  a = (x = 2, y = 1)
  z = 3
}


Expecting sub string: x = 2
Matched

Expecting sub string: y = 1
Matched

Expecting sub string: z = 3
Matched

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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_persistent_types_dsym (TestPersistentTypes.PersistenttypesTestCase)
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_persistent_types_dwarf (TestPersistentTypes.PersistenttypesTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12-x86_64) :: test_persistent_types_dwo (TestPersistentTypes.PersistenttypesTestCase) (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_persistent_types_gmodules (TestPersistentTypes.PersistenttypesTestCase) (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_persistent_types_dwarf (TestPersistentTypes.PersistenttypesTestCase)
   Test that lldb persistent types works correctly.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/persistent_types -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/persistent_types/TestPersistentTypes.test_persistent_types_dwarf -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/persistent_types -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/commands/expression/persistent_types/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 

Build Command Output:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12 -M -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/commands/expression/persistent_types -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   /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/persistent_types/main.c -MF main.d -MT main.d -MT main.o
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-12 -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/commands/expression/persistent_types -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     -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/persistent_types/main.c
make: *** [main.o] Killed: 9

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/persistent_types
----------------------------------------------------------------------
Ran 4 tests in 1.692s

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

--