Regression
lldb-api.commands/expression/import-std-module/weak_ptr.TestWeakPtrFromStdModule.py (from lldb-api)
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/lldb-build/./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/import-std-module/weak_ptr -p TestWeakPtrFromStdModule.py -- Exit Code: 1 Command Output (stdout): -- lldb version 13.0.99 (http://labmaster3.local/git/llvm-project.git revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5) clang revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5 llvm revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5 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/import-std-module/weak_ptr 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: settings set target.import-std-module true output: runCmd: expr w.reset() output: Ran command: "expr w.reset()" Got output: <bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10f0f2b40> >>: success PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_dsym (TestWeakPtrFromStdModule.TestSharedPtr) 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: settings set target.import-std-module true output: runCmd: expr w.reset() output: Ran command: "expr w.reset()" Got output: <bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10e384cf0> >>: success PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_dwarf (TestWeakPtrFromStdModule.TestSharedPtr) UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_dwo (TestWeakPtrFromStdModule.TestSharedPtr) (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: FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_gmodules (TestWeakPtrFromStdModule.TestSharedPtr) Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test ====================================================================== ERROR: test_gmodules (TestWeakPtrFromStdModule.TestSharedPtr) ---------------------------------------------------------------------- Error when building test subject. Build Command: make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr -C /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/commands/expression/import-std-module/weak_ptr/TestWeakPtrFromStdModule.test_gmodules -I /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr -I /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr/Makefile MAKE_DSYM=NO MAKE_GMODULES=YES ARCH=x86_64 CC="/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang" DSYMUTIL="/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil" CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api Build Command Output: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang -fmodules -gmodules -fmodules-cache-path=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api -gmodules -fcxx-modules -std=c++11 -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-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../../include -I/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr -I/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -fmodules -gmodules -fmodules-cache-path=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api -gmodules -fcxx-modules -DLLDB_USING_LIBCPP -stdlib=libc++ --driver-mode=g++ -MT main.o -MD -MP -MF main.d -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr/main.cpp In module 'std' imported from /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr/main.cpp:1: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/allocator_traits.h:73:48: error: missing '#include "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/pointer_traits.h"'; 'pointer_traits<_Tp *>' must be defined before it is used using type _LIBCPP_NODEBUG_TYPE = typename pointer_traits<_Ptr>::template rebind<void>; ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/allocator_traits.h:234:35: note: in instantiation of template class 'std::__void_pointer<std::__shared_ptr_pointer<int *, std::shared_ptr<int>::__shared_ptr_default_delete<int, int>, std::allocator<int>> *, std::allocator<std::__shared_ptr_pointer<int *, std::shared_ptr<int>::__shared_ptr_default_delete<int, int>, std::allocator<int>>>, false>' requested here using void_pointer = typename __void_pointer<pointer, allocator_type>::type; ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/shared_ptr.h:272:37: note: in instantiation of template class 'std::allocator_traits<std::allocator<std::__shared_ptr_pointer<int *, std::shared_ptr<int>::__shared_ptr_default_delete<int, int>, std::allocator<int>>>>' requested here typedef pointer_traits<typename _ATraits::pointer> _PTraits; ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/shared_ptr.h:235:5: note: in instantiation of member function 'std::__shared_ptr_pointer<int *, std::shared_ptr<int>::__shared_ptr_default_delete<int, int>, std::allocator<int>>::__on_zero_shared_weak' requested here __shared_ptr_pointer(_Tp __p, _Dp __d, _Alloc __a) ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/shared_ptr.h:453:24: note: in instantiation of member function 'std::__shared_ptr_pointer<int *, std::shared_ptr<int>::__shared_ptr_default_delete<int, int>, std::allocator<int>>::__shared_ptr_pointer' requested here __cntrl_ = new _CntrlBlk(__p, __shared_ptr_default_delete<_Tp, _Yp>(), _AllocT()); ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr/main.cpp:4:24: note: in instantiation of function template specialization 'std::shared_ptr<int>::shared_ptr<int, void>' requested here std::shared_ptr<int> s(new int); ^ /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/pointer_traits.h:135:29: note: definition here is not reachable struct _LIBCPP_TEMPLATE_VIS pointer_traits<_Tp*> ^ 1 error generated. make: *** [main.o] Error 1 Test Directory: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/commands/expression/import-std-module/weak_ptr ---------------------------------------------------------------------- Ran 4 tests in 19.539s RESULT: FAILED (2 passes, 0 failures, 1 errors, 1 skipped, 0 expected failures, 0 unexpected successes) --