Regression

Test Clang 11.0.1 / lldb-api.functionalities/load_after_attach.TestLoadAfterAttach.py (from lldb-api)

Failing for the past 1 build (Since #5041 )
Took 3.7 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 --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 --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 --hermetic-libcxx --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/clang_1101_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 /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach -p TestLoadAfterAttach.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 16.0.99git (http://labmaster3.local/git/llvm-project.git revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9)
  clang revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9
  llvm revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9
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/functionalities/load_after_attach
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: setting set target.prefer-dynamic-value no-dynamic-values
output: 

make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/functionalities/load_after_attach/TestLoadAfterAttach.test_load_after_attach -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_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/load_after_attach/Makefile all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_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 USE_HERMETIC_LIBCPP=1

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/clang-x86_64) :: test_load_after_attach (TestLoadAfterAttach.TestCase)
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/test
======================================================================
ERROR: test_load_after_attach (TestLoadAfterAttach.TestCase)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/functionalities/load_after_attach/TestLoadAfterAttach.test_load_after_attach -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_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/load_after_attach/Makefile all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_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 USE_HERMETIC_LIBCPP=1

Build Command Output:
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/Makefile.rules \
		DYLIB_ONLY=YES DYLIB_CXX_SOURCES=b.cpp DYLIB_NAME=lib_b
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/clang"  -std=c++11 -g -O0 -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/packages/Python/lldbsuite/test/make -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   -DCOMPILING_LLDB_TEST_DLL -fPIC   --driver-mode=g++ -fPIC -MT b.o -MD -MP -MF b.d -c -o b.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/b.cpp
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/clang"   b.o -g -O0 -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/packages/Python/lldbsuite/test/make -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     --driver-mode=g++ -install_name "@executable_path/liblib_b.dylib" -dynamiclib -o "liblib_b.dylib"
codesign -s - "liblib_b.dylib"
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil"  "liblib_b.dylib"
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/clang"  -std=c++11 -g -O0 -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/functionalities/load_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     --driver-mode=g++ -MT main.o -MD -MP -MF main.d -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/main.cpp
In file included from /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/main.cpp:1:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/dylib.h:35:3: error: use of undeclared identifier 'snprintf'
  snprintf(fullname, sizeof(fullname), "%s%s%s", dylib_prefix, name, dylib_suffix);
  ^
In file included from /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/main.cpp:2:
In file included from /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cassert:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/assert.h:44:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                 ^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
  return ::ldiv(__x, __y);
         ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
                                 ^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
  return ::lldiv(__x, __y);
         ~~^
In file included from /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/main.cpp:3:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:107:9: error: no member named 'FILE' in the global namespace
using ::FILE;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:108:9: error: no member named 'fpos_t' in the global namespace
using ::fpos_t;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:109:9: error: no member named 'size_t' in the global namespace
using ::size_t;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:111:9: error: no member named 'fclose' in the global namespace; did you mean 'dlclose'?
using ::fclose;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/dlfcn.h:64:12: note: 'dlclose' declared here
extern int dlclose(void * __handle) __DYLDDL_DRIVERKIT_UNAVAILABLE;
           ^
In file included from /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach/main.cpp:3:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:112:9: error: no member named 'fflush' in the global namespace
using ::fflush;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:113:9: error: no member named 'setbuf' in the global namespace
using ::setbuf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:114:9: error: no member named 'setvbuf' in the global namespace
using ::setvbuf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:115:9: error: no member named 'fprintf' in the global namespace
using ::fprintf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:116:9: error: no member named 'fscanf' in the global namespace
using ::fscanf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:117:9: error: no member named 'snprintf' in the global namespace
using ::snprintf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:118:9: error: no member named 'sprintf' in the global namespace
using ::sprintf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:119:9: error: no member named 'sscanf' in the global namespace
using ::sscanf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:120:9: error: no member named 'vfprintf' in the global namespace
using ::vfprintf;
      ~~^
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_1101_build/bin/../include/c++/v1/cstdio:121:9: error: no member named 'vfscanf' in the global namespace
using ::vfscanf;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [main.o] Error 1

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/functionalities/load_after_attach
----------------------------------------------------------------------
Ran 1 test in 1.750s

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

--