Regression

Test DWARF5 / lldb-api.commands/frame/diagnose/dereference-argument.TestDiagnoseDereferenceArgument.py (from lldb-api)

Failing for the past 1 build (Since #5400 )
Took 3.6 sec.

Stacktrace

Script:
--
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8 /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --codesign-identity lldb_codesign --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib --env LLVM_INCLUDE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/include --env LLVM_TOOLS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin --libcxx-include-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/include/c++/v1 --libcxx-library-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib --arch x86_64 --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 --llvm-tools-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex -t --env TERM=vt100 --skip-category gmodules --skip-category watchpoint --skip-category llgs --skip-category debugserver --arch=x86_64 --dwarf-version=5 /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument -p TestDiagnoseDereferenceArgument.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 16.0.99git (https://github.com/llvm/llvm-project.git revision f1353d2f1a7bbea2f6f5a584fe9af0e09a34a259)
  clang revision f1353d2f1a7bbea2f6f5a584fe9af0e09a34a259
  llvm revision f1353d2f1a7bbea2f6f5a584fe9af0e09a34a259
Skipping the following test categories: ['gmodules', 'watchpoint', 'llgs', 'debugserver', 'libstdcxx', 'dwo', 'llgs', 'fork']

--
Command Output (stderr):
--
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument
runCmd: settings clear -all
output: 

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

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error 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: settings clear -all
output: 

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

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error 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: 

make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dsym -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument -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/frame/diagnose/dereference-argument/Makefile MAKE_DSYM=YES all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/include/c++/v1 LIBCPP_LIBRARY_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib

"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang" -gdwarf-5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/frame/diagnose/dereference-argument -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   -MT main.o -MD -MP -MF main.d -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument/main.c
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang"  main.o -gdwarf-5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/frame/diagnose/dereference-argument -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     -L/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib -Wl,-rpath,/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib -lc++ --driver-mode=g++ -o "a.out"
codesign -s - "a.out"
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil"  -o "a.out.dSYM" "a.out"


runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dsym/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dsym/a.out' (x86_64).


runCmd: run
output: Process 3021 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
    frame #0: 0x0000000100003f86 a.out`GetSum(f=0x0000000100004000)
Likely cause: f->b->d accessed 0x4
Process 3021 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dsym/a.out' (x86_64)


runCmd: thread list
output: Process 3021 stopped
* thread #1: tid = 0xdf102, 0x0000000100003f86 a.out`GetSum(f=0x0000000100004000), queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)


Ran command:
"thread list"

Got output:
Process 3021 stopped
* thread #1: tid = 0xdf102, 0x0000000100003f86 a.out`GetSum(f=0x0000000100004000), queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)

Expecting sub string: "stopped" (was found)

runCmd: frame diagnose
output: f->b->d = <parent failed to evaluate: parent is NULL>



Ran command:
"frame diagnose"

Got output:
f->b->d = <parent failed to evaluate: parent is NULL>


Expecting sub string: "f->b->d" (was found)

<bound method SBProcess.Kill of SBProcess: pid = 3021, state = stopped, threads = 1, executable = a.out>: success

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

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

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error 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: settings clear -all
output: 

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

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error 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: 

make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dwarf -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument -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/frame/diagnose/dereference-argument/Makefile MAKE_DSYM=NO all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/include/c++/v1 LIBCPP_LIBRARY_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib

"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang" -gdwarf-5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/frame/diagnose/dereference-argument -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   -MT main.o -MD -MP -MF main.d -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument/main.c
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang"  main.o -gdwarf-5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/frame/diagnose/dereference-argument -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     -L/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib -Wl,-rpath,/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lib -lc++ --driver-mode=g++ -o "a.out"
codesign -s - "a.out"


runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dwarf/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dwarf/a.out' (x86_64).


runCmd: run
output: Process 3138 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
    frame #0: 0x0000000100003f86 a.out`GetSum
Process 3138 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.test_diagnose_dereference_argument_dwarf/a.out' (x86_64)


runCmd: thread list
output: Process 3138 stopped
* thread #1: tid = 0xdf2dd, 0x0000000100003f86 a.out`GetSum, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)


Ran command:
"thread list"

Got output:
Process 3138 stopped
* thread #1: tid = 0xdf2dd, 0x0000000100003f86 a.out`GetSum, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)

Expecting sub string: "stopped" (was found)

runCmd: frame diagnose
runCmd failed!
error: No diagnosis available.


FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-x86_64) :: test_diagnose_dereference_argument_dwarf (TestDiagnoseDereferenceArgument.TestDiagnoseDereferenceArgument)
<bound method SBProcess.Kill of SBProcess: pid = 3138, state = stopped, threads = 1, executable = a.out>: success

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang-x86_64) :: test_diagnose_dereference_argument_dwo (TestDiagnoseDereferenceArgument.TestDiagnoseDereferenceArgument) (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
======================================================================
FAIL: test_diagnose_dereference_argument_dwarf (TestDiagnoseDereferenceArgument.TestDiagnoseDereferenceArgument)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1699, in test_method
    return attrvalue(self)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 159, in wrapper
    return func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.py", line 24, in test_diagnose_dereference_argument
    self.expect(
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2319, in expect
    self.runCmd(
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2022, in runCmd
    self.assertTrue(self.res.Succeeded(),
AssertionError: False is not True : Crash diagnosis was accurate
Error output:
error: No diagnosis available.

Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin/clang
----------------------------------------------------------------------
Ran 3 tests in 1.678s

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

--