Failed

lldb-api.functionalities/ptr_refs.TestPtrRefs.py (from lldb-api)

Failing for the past 6 builds (Since Failed#1203 )
Took 10 sec.

Stacktrace

Script:
--
/usr/local/bin/python /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 --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 --inferior-env ASAN_OPTIONS=detect_stack_use_after_return=1 --inferior-env DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib --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 --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 --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/ptr_refs -p TestPtrRefs.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 11.0.99
  clang revision a9406daaa60f9899955a59c27f39db5519a97777
  llvm revision a9406daaa60f9899955a59c27f39db5519a97777
"crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", "find_variable", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.
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/./lib
libstdcxx tests will not be run because: Don't know how to build with libstdcxx on macosx
Skipping following debug info categories: ['dwo']
0x00007ffedff13478: stack in frame #0 of thread #1: tid 0x16b60 in variable at 0x7ffedff13478:
    (const char *) my_ptr = 0x00006020000000b0 "hello"
0x00007ffedff13410: stack (red zone)

--
Command Output (stderr):
--
error: 'ptr_refs' is not a valid command.
error: 'ptr_refs' is not a valid command.

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 --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 --inferior-env ASAN_OPTIONS=detect_stack_use_after_return=1 --inferior-env DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib --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 --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 --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/ptr_refs -p TestPtrRefs.py
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/ptr_refs
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-sanitized/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: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: script import lldb.macosx.heap
output: "crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", "find_variable", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.


runCmd: ptr_refs my_ptr
output: 0x00007ffedff13478: stack in frame #0 of thread #1: tid 0x16b60 in variable at 0x7ffedff13478:
    (const char *) my_ptr = 0x00006020000000b0 "hello"
0x00007ffedff13410: stack (red zone)


Expecting sub string: malloc
Not matched

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-11-x86_64) :: test_ptr_refs_dsym (TestPtrRefs.TestPtrRefs)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x1290d0960> >>: success

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-sanitized/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: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: script import lldb.macosx.heap
output: 

runCmd: ptr_refs my_ptr
runCmd failed!
error: 'ptr_refs' is not a valid command.


XFAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-11-x86_64) :: test_ptr_refs_dwarf (TestPtrRefs.TestPtrRefs)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x111c21a50> >>: success

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-11-x86_64) :: test_ptr_refs_dwo (TestPtrRefs.TestPtrRefs) (test case does not fall in any category of interest for this run) 
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-sanitized/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: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: script import lldb.macosx.heap
output: 

runCmd: ptr_refs my_ptr
runCmd failed!
error: 'ptr_refs' is not a valid command.


XFAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-11-x86_64) :: test_ptr_refs_gmodules (TestPtrRefs.TestPtrRefs)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x1290d02a0> >>: success

Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test
======================================================================
FAIL: test_ptr_refs_dsym (TestPtrRefs.TestPtrRefs)
   Test format string functionality.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1751, in test_method
    return attrvalue(self)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 110, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/ptr_refs/TestPtrRefs.py", line 47, in test_ptr_refs
    self.expect("ptr_refs my_ptr", substrs=["malloc", "stack"])
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2391, in expect
    if msg else EXP_MSG(str, output, exe))
AssertionError: False is not True : 'ptr_refs my_ptr' returns expected result, got '0x00007ffedff13478: stack in frame #0 of thread #1: tid 0x16b60 in variable at 0x7ffedff13478:
    (const char *) my_ptr = 0x00006020000000b0 "hello"
0x00007ffedff13410: stack (red zone)'
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-11
----------------------------------------------------------------------
Ran 4 tests in 8.997s

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

--