ilovepi wrote: Hi, I'm seeing an assertion fire with this patch. I confirmed via bisect that this introduced the assertion failure.
Bot: https://ci.chromium.org/ui/p/fuchsia/builders/global.ci/clang_toolchain.ci.core.x64-debug-tot-build_only/b8692683882729058145/overview reproducer: https://storage.googleapis.com/fuchsia-artifacts/builds/8692683882729058145/build-debug/clang-crashreports/command_line_interface-42f3e2.tar I have creduce running on that reproducer, and will post that when it has something smaller. Would you mind reverting if it isn't' immediately obvious how to forward fix? ``` 3536/134119](64) CXX host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o FAILED: [code=1] host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o ../../prebuilt/third_party/clang/custom/bin/clang++ -MD -MF host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o.d -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -DGOOGLE_PROTOBUF_NO_RTTI -DHAVE_PTHREAD -I../.. -Ihost_x64/gen -I../../third_party/protobuf/src -I../../third_party/protobuf/third_party/utf8_range -I../../third_party/abseil-cpp -fcolor-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fcrash-diagnostics=all -gen-reproducer=error -fstack-size-section -fstack-clash-protection -ffp-contract=off --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -ffile-compilation-dir=. -no-canonical-prefixes -fomit-frame-pointer -fdata-sections -ffunction-sections -O0 -Xclang -debug-info-kind=constructor -g3 -grecord-gcc-switches -gdwarf-5 -gz=zstd -Wall -Wextra -Wconversion -Wextra-semi -Wimplicit-fallthrough -Wnewline-eof -Wstrict-prototypes -Wwrite-strings -Wno-sign-conversion -Wno-unused-parameter -Wnonportable-system-include-path -Wno-missing-field-initializers -Wno-extra-qualification -Wno-cast-function-type-mismatch -Wno-unknown-warning-option -Wno-missing-template-arg-list-after-template-kw -Wno-deprecated-pragma -Wno-nontrivial-memaccess -fvisibility=hidden -Werror -Wa,--fatal-warnings --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -Wno-deprecated-pragma -Wno-enum-enum-conversion -Wno-extra-semi -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-invalid-noreturn -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-deprecated-this-capture -Wno-unnecessary-virtual-specifier -Wno-c++98-compat-extra-semi -Wno-shorten-64-to-32 -fvisibility-inlines-hidden -stdlib=libc++ -stdlib=libc++ -std=c++20 -Wno-deprecated-this-capture -fno-exceptions -fno-rtti -ftemplate-backtrace-limit=0 -stdlib=libc++ -c ../../third_party/protobuf/src/google/protobuf/descriptor.cc -o host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o clang++: clang/lib/Sema/Sema.cpp:2574: LambdaScopeInfo *clang::Sema::getCurLambda(bool): Assertion `!CodeSynthesisContexts.empty()' failed. PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: ../../prebuilt/third_party/clang/custom/bin/clang++ -MD -MF host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o.d -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -DGOOGLE_PROTOBUF_NO_RTTI -DHAVE_PTHREAD -I../.. -Ihost_x64/gen -I../../third_party/protobuf/src -I../../third_party/protobuf/third_party/utf8_range -I../../third_party/abseil-cpp -fcolor-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fcrash-diagnostics=all -gen-reproducer=error -fstack-size-section -fstack-clash-protection -ffp-contract=off --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -ffile-compilation-dir=. -no-canonical-prefixes -fomit-frame-pointer -fdata-sections -ffunction-sections -O0 -Xclang -debug-info-kind=constructor -g3 -grecord-gcc-switches -gdwarf-5 -gz=zstd -Wall -Wextra -Wconversion -Wextra-semi -Wimplicit-fallthrough -Wnewline-eof -Wstrict-prototypes -Wwrite-strings -Wno-sign-conversion -Wno-unused-parameter -Wnonportable-system-include-path -Wno-missing-field-initializers -Wno-extra-qualification -Wno-cast-function-type-mismatch -Wno-unknown-warning-option -Wno-missing-template-arg-list-after-template-kw -Wno-deprecated-pragma -Wno-nontrivial-memaccess -fvisibility=hidden -Werror -Wa,--fatal-warnings --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -Wno-deprecated-pragma -Wno-enum-enum-conversion -Wno-extra-semi -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-invalid-noreturn -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-deprecated-this-capture -Wno-unnecessary-virtual-specifier -Wno-c++98-compat-extra-semi -Wno-shorten-64-to-32 -fvisibility-inlines-hidden -stdlib=libc++ -stdlib=libc++ -std=c++20 -Wno-deprecated-this-capture -fno-exceptions -fno-rtti -ftemplate-backtrace-limit=0 -stdlib=libc++ -c ../../third_party/protobuf/src/google/protobuf/descriptor.cc -o host_x64/obj/third_party/protobuf/src/google/protobuf/libprotobuf_full.descriptor.cc.o 1. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6816:47: current parser token ')' 2. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:90:1: parsing namespace 'google' 3. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:91:1: parsing namespace 'google::protobuf' 4. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6585:79: parsing function body 'google::protobuf::DescriptorBuilder::BuildFieldOrExtension' 5. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6585:79: in compound statement ('{}') 6. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6801:79: in compound statement ('{}') 7. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6813:14: lambda expression parsing 8. ../../third_party/protobuf/src/google/protobuf/descriptor.cc:6813:18: in compound statement ('{}') #0 0x0000558b4744b638 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (../../prebuilt/third_party/clang/custom/bin/clang+++0x97bf638) clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation) Fuchsia clang version 23.0.0git (https://llvm.googlesource.com/llvm-project 4e95be704302561be0b217eda732624e8e96a906) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: ../../prebuilt/third_party/clang/custom/bin Build config: +assertions clang++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: clang-crashreports/descriptor-5fe562.cpp clang++: note: diagnostic msg: clang-crashreports/descriptor-5fe562.sh clang++: note: diagnostic msg: ******************** ``` https://github.com/llvm/llvm-project/pull/175899 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
