Regression

lldb-api.commands/expression/static-initializers.TestStaticInitializers.py (from lldb-api)

Failing for the past 1 build (Since #1902 )
Took 1 min 3 sec.

Stacktrace

Script:
--
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/copied-python /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --codesign-identity lldb_codesign --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex -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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib --arch x86_64 --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/host-compiler/bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil --llvm-tools-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin --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/commands/expression/static-initializers -p TestStaticInitializers.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 13.0.99 (http://labmaster3.local/git/llvm-project.git revision 95923c0ba245377205f783607aaacbf8c667b353)
  clang revision 95923c0ba245377205f783607aaacbf8c667b353
  llvm revision 95923c0ba245377205f783607aaacbf8c667b353
Skipping the following test categories: ['darwin-log', 'libstdcxx', 'dwo', 'llgs', 'fork']

--
Command Output (stderr):
--
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/static-initializers
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- struct Foo { Foo() { inc_counter(); } }; Foo f;
output: 

Ran command:
"expr -p -- struct Foo { Foo() { inc_counter(); } }; Foo f;"

Got output:


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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_dsym (TestStaticInitializers.StaticInitializers)
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_dwarf (TestStaticInitializers.StaticInitializers)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x106ce4ae0> >>: success

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_dwo (TestStaticInitializers.StaticInitializers) (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.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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: couldn't run static initializer: 



Ran command:
"expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;"

Got output:
error: expression failed to parse:
error: couldn't run static initializer: 


Expecting sub string: "error: couldn't run static initializer:" (was found)

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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_failing_init_dsym (TestStaticInitializers.StaticInitializers)
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: couldn't run static initializer: 



Ran command:
"expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;"

Got output:
error: expression failed to parse:
error: couldn't run static initializer: 


Expecting sub string: "error: couldn't run static initializer:" (was found)

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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_failing_init_dwarf (TestStaticInitializers.StaticInitializers)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_failing_init_dwo (TestStaticInitializers.StaticInitializers) (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.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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: No module map file in /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/include/c++/v1

error: couldn't run static initializer: 



Ran command:
"expr -p -- struct Foo2 { Foo2() { do_abort(); } }; Foo2 f;"

Got output:
error: expression failed to parse:
error: No module map file in /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/include/c++/v1

error: couldn't run static initializer: 


Expecting sub string: "error: couldn't run static initializer:" (was found)

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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_failing_init_gmodules (TestStaticInitializers.StaticInitializers)
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- struct Foo { Foo() { inc_counter(); } }; Foo f;
output: 

Ran command:
"expr -p -- struct Foo { Foo() { inc_counter(); } }; Foo f;"

Got output:


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

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_gmodules (TestStaticInitializers.StaticInitializers)
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_without_process_dsym (TestStaticInitializers.StaticInitializers)
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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_without_process_dwarf (TestStaticInitializers.StaticInitializers)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_without_process_dwo (TestStaticInitializers.StaticInitializers) (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.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-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/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr -p -- int i = 0; struct Foo3 { Foo3() { ++i; } }; Foo3 f;"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang-x86_64) :: test_without_process_gmodules (TestStaticInitializers.StaticInitializers)
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test
======================================================================
FAIL: test_dwarf (TestStaticInitializers.StaticInitializers)
    Test a static initializer.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1830, in test_method
    return attrvalue(self)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 119, in wrapper
    func(*args, **kwargs)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/static-initializers/TestStaticInitializers.py", line 17, in test
    lldb.SBFileSpec("main.cpp", False))
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbutil.py", line 971, in run_to_source_breakpoint
    only_one_thread, extra_images)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbutil.py", line 890, in run_to_breakpoint_do_run
    "Process launch failed: %s" % (error.GetCString()))
AssertionError: True is not False : Process launch failed: process exited with status -1 (tried to attach to process already being debugged)
Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang
----------------------------------------------------------------------
Ran 12 tests in 62.233s

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

--