[llvm-bugs] [Bug 51960] New: [Linux Kernel] 5.14.6 exposes a Polly bug when using FullLTO

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 24 13:28:57 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51960

            Bug ID: 51960
           Summary: [Linux Kernel] 5.14.6 exposes a Polly bug when using
                    FullLTO
           Product: Polly
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Optimizer
          Assignee: polly-dev at googlegroups.com
          Reporter: m.seyfarth at gmail.com
                CC: llvm-bugs at lists.llvm.org

I found a bug when compiling 5.14.6 with LLVM/Clang-14 and filed a report at
https://github.com/ClangBuiltLinux/linux/issues/1460 - after Nick and Nathan
were so kind to debug my findings further (I am not a programmer), Nathan
produced two cvise outputs which I am also posting below. Nick mentioned that
it is probably a Polly issue (polly::simplifyRegion). 

I used the following diff:

diff --git a/Makefile b/Makefile
index f9c8bbf8cf71..f68b9602ceaf 100644
--- a/Makefile
+++ b/Makefile
@@ -433,13 +433,13 @@ HOSTCXX   = g++
 endif

 export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
-                             -O2 -fomit-frame-pointer -std=gnu89
-export KBUILD_USERLDFLAGS :=
+                             -O3 -march=native -mtune=native -mllvm -polly
-mllvm -polly-parallel -fopenmp -mllvm -polly-vectorizer=stripmine -mllvm
-polly-omp-backend=LLVM -mllvm -polly-num-threads=24 -mllvm
-polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm
-polly-ast-use-context -mllvm -polly-invariant-load-hoisting -mllvm
-polly-opt-fusion=max -mllvm -polly-run-inliner -mllvm -polly-run-dce
-fno-math-errno -fno-trapping-math -falign-functions=32
-fno-semantic-interposition -std=gnu2x
+export KBUILD_USERLDFLAGS := -Wl,-O3 -Wl,--as-needed -Wl,-Bsymbolic-functions

 KBUILD_HOSTCFLAGS   := $(KBUILD_USERCFLAGS) $(HOST_LFS_CFLAGS) $(HOSTCFLAGS)
-KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS)
-KBUILD_HOSTLDFLAGS  := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
-KBUILD_HOSTLDLIBS   := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
+KBUILD_HOSTCXXFLAGS := -O3 -march=native -mtune=native -mllvm -polly -mllvm
-polly-parallel -fopenmp -mllvm -polly-vectorizer=stripmine -mllvm
-polly-omp-backend=LLVM -mllvm -polly-num-threads=24 -mllvm
-polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm
-polly-ast-use-context -mllvm -polly-invariant-load-hoisting -mllvm
-polly-opt-fusion=max -mllvm -polly-run-inliner -mllvm -polly-run-dce
-fno-math-errno -fno-trapping-math -falign-functions=32
-fno-semantic-interposition $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS)
+KBUILD_HOSTLDFLAGS  := -Wl,-O3 -Wl,--as-needed -Wl,-Bsymbolic-functions
$(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
+KBUILD_HOSTLDLIBS   := -Wl,-O3 -Wl,--as-needed -Wl,-Bsymbolic-functions
$(HOST_LFS_LIBS) $(HOSTLDLIBS)

 # Make variables (CC, etc...)
 CPP            = $(CC) -E
@@ -484,10 +484,10 @@ ZSTD              = zstd
 CHECKFLAGS     := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
                  -Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
 NOSTDINC_FLAGS :=
-CFLAGS_MODULE   =
+CFLAGS_MODULE   = -O3 -march=native -mtune=native -mllvm -polly -mllvm
-polly-parallel -fopenmp -mllvm -polly-vectorizer=stripmine -mllvm
-polly-omp-backend=LLVM -mllvm -polly-num-threads=24 -mllvm
-polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm
-polly-ast-use-context -mllvm -polly-invariant-load-hoisting -mllvm
-polly-opt-fusion=max -mllvm -polly-run-inliner -mllvm -polly-run-dce
-fno-math-errno -fno-trapping-math -falign-functions=32
-fno-semantic-interposition
 AFLAGS_MODULE   =
 LDFLAGS_MODULE  =
-CFLAGS_KERNEL  =
+CFLAGS_KERNEL  = -march=native -mtune=native -mllvm -polly -mllvm
-polly-parallel -fopenmp -mllvm -polly-vectorizer=stripmine -mllvm
-polly-omp-backend=LLVM -mllvm -polly-num-threads=24 -mllvm
-polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm
-polly-ast-use-context -mllvm -polly-invariant-load-hoisting -mllvm
-polly-opt-fusion=max -mllvm -polly-run-inliner -mllvm -polly-run-dce
-fno-math-errno -fno-trapping-math -falign-functions=32
-fno-semantic-interposition
 AFLAGS_KERNEL  =
 LDFLAGS_vmlinux =

@@ -766,6 +766,7 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
 KBUILD_CFLAGS += -O2
 else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
 KBUILD_CFLAGS += -O3
+KBUILD_CFLAGS += $(call cc-option, -fno-tree-loop-vectorize)
 else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
 KBUILD_CFLAGS += -Os
 endif

These are the two cvise outputs provided by Nathan:

Number 1:

$ cat kfd_mqd_manager.i
struct {
  int num_shader_arrays_per_engine;
  int cu_bitmap[]
} mqd_symmetrically_map_cu_mask_cu_info;
mqd_symmetrically_map_cu_mask_cu_info_1,
    mqd_symmetrically_map_cu_mask_cu_info_0, mqd_symmetrically_map_cu_mask_se,
    mqd_symmetrically_map_cu_mask_sh;
mqd_symmetrically_map_cu_mask_cu_per_sh[];
mqd_symmetrically_map_cu_mask_cu() {
  mqd_symmetrically_map_cu_mask_se = 0;
  for (; mqd_symmetrically_map_cu_mask_se <
         mqd_symmetrically_map_cu_mask_cu_info_0;
       mqd_symmetrically_map_cu_mask_se++) {
    mqd_symmetrically_map_cu_mask_sh = 0;
    for (; mqd_symmetrically_map_cu_mask_sh <
           mqd_symmetrically_map_cu_mask_cu_info_1;
         mqd_symmetrically_map_cu_mask_sh++) {
      int res;
      asm("664"
          ":\n"
          : "="
            "a"(res)
          : "D"(mqd_symmetrically_map_cu_mask_cu_info
                    .cu_bitmap[mqd_symmetrically_map_cu_mask_sh]));
      mqd_symmetrically_map_cu_mask_cu_per_sh
          [mqd_symmetrically_map_cu_mask_se +
           mqd_symmetrically_map_cu_mask_sh] = res;
    }
  }
}

$ clang -O2 -flto -mllvm -polly -mllvm -polly-parallel -c -o kfd_mqd_manager.o
kfd_mqd_manager.i
...

$ llvm-ar cDPrsT amdgpu.o kfd_mqd_manager.o

$ ld.lld -m elf_x86_64 -mllvm -import-instr-limit=5 -r -o amdgpu.lto.o
--whole-archive amdgpu.o
Cannot take the address of an inline asm!
  store i32 (i32)* asm "664:\0A", "={ax},{di},~{dirflag},~{fpsr},~{flags}", i32
(i32)** %14, align 8
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ld.lld -m elf_x86_64 -mllvm -import-instr-limit=5 -r
-o amdgpu.lto.o --whole-archive amdgpu.o
 #0 0x0000000001736673 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1736673)
 #1 0x000000000173442e llvm::sys::RunSignalHandlers()
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x173442e)
 #2 0x0000000001736c8a SignalHandler(int) Signals.cpp:0:0
 #3 0x00007fe611417870 __restore_rt sigaction.c:0:0
 #4 0x00007fe610d63d22 raise (/usr/lib/libc.so.6+0x3cd22)
 #5 0x00007fe610d4d862 abort (/usr/lib/libc.so.6+0x26862)
 #6 0x00000000016a89f9
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x16a89f9)
 #7 0x00000000016a8816
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x16a8816)
 #8 0x0000000003cd2b56
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x3cd2b56)
 #9 0x0000000002370c4d llvm::detail::PassModel<llvm::Module,
llvm::VerifierPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) LTOBackend.cpp:0:0
#10 0x0000000003ca4664 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x3ca4664)
#11 0x000000000236ad5d llvm::lto::opt(llvm::lto::Config const&,
llvm::TargetMachine*, unsigned int, llvm::Module&, bool,
llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*,
std::vector<unsigned char, std::allocator<unsigned char> > const&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x236ad5d)
#12 0x000000000236b5c1 llvm::lto::backend(llvm::lto::Config const&,
std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, unsigned
int, llvm::Module&, llvm::ModuleSummaryIndex&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x236b5c1)
#13 0x000000000235d466
llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x235d466)
#14 0x000000000235cb32
llvm::lto::LTO::run(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>,
std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)> (unsigned
int, llvm::StringRef)>)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x235cb32)
#15 0x00000000018dac36 lld::elf::BitcodeCompiler::compile()
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x18dac36)
#16 0x0000000001838796 void
lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::support::endianness)1,
true> >()
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1838796)
#17 0x0000000001820fe5 void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
true> >(llvm::opt::InputArgList&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1820fe5)
#18 0x0000000001812629 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char
const*>)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1812629)
#19 0x0000000001810064 lld::elf::link(llvm::ArrayRef<char const*>, bool,
llvm::raw_ostream&, llvm::raw_ostream&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1810064)
#20 0x000000000168a77f lldMain(int, char const**, llvm::raw_ostream&,
llvm::raw_ostream&, bool) lld.cpp:0:0
#21 0x000000000168a06d main
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x168a06d)
#22 0x00007fe610d4eb25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#23 0x0000000001689d5e _start
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/ld.lld+0x1689d5e)


Number 2:

$ cat simple-card-utils.i
struct {
  int num_cpus;
  int num_platforms;
} * asoc_simple_init_priv_dai_link;
int asoc_simple_init_priv_li_2, asoc_simple_init_priv_li_1_0_0,
    asoc_simple_init_priv_li_0;
void asoc_simple_init_priv() {
  int i;
  asm goto("" : : : : l_yes);
l_yes:
  i = 0;
  for (; i < asoc_simple_init_priv_li_0; i++)
    if (asoc_simple_init_priv_li_1_0_0)
      asoc_simple_init_priv_dai_link[i].num_cpus = asoc_simple_init_priv_li_2;
    else
      asoc_simple_init_priv_dai_link[i].num_platforms = 0;
}

$ clang -O2 -mllvm -polly -mllvm -polly-invariant-load-hoisting -c -o /dev/null
simple-card-utils.i
clang:
/home/nathan/cbl/github/tc-build/llvm-project/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1112:
llvm::BasicBlock *SplitBlockPredecessorsImpl(llvm::BasicBlock *,
ArrayRef<llvm::BasicBlock *>, const char *, llvm::DomTreeUpdater *,
llvm::DominatorTree *, llvm::LoopInfo *, llvm::MemorySSAUpdater *, bool):
Assertion `!isa<CallBrInst>(Preds[i]->getTerminator()) && "Cannot split an edge
from a CallBrInst"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: clang -O2 -mllvm -polly -mllvm
-polly-invariant-load-hoisting -c -o /dev/null simple-card-utils.i
1.      <eof> parser at end of file
2.      Optimizer
 #0 0x0000000002cb92d3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2cb92d3)
 #1 0x0000000002cb70fe llvm::sys::RunSignalHandlers()
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2cb70fe)
 #2 0x0000000002c401e3 (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
CrashRecoveryContext.cpp:0:0
 #3 0x0000000002c4035e CrashRecoverySignalHandler(int)
CrashRecoveryContext.cpp:0:0
 #4 0x00007f9682b54870 __restore_rt sigaction.c:0:0
 #5 0x00007f968260ed22 raise (/usr/lib/libc.so.6+0x3cd22)
 #6 0x00007f96825f8862 abort (/usr/lib/libc.so.6+0x26862)
 #7 0x00007f96825f8747 _nl_load_domain.cold loadmsgcat.c:0:0
 #8 0x00007f9682607616 (/usr/lib/libc.so.6+0x35616)
 #9 0x0000000002ccd6b7 SplitBlockPredecessorsImpl(llvm::BasicBlock*,
llvm::ArrayRef<llvm::BasicBlock*>, char const*, llvm::DomTreeUpdater*,
llvm::DominatorTree*, llvm::LoopInfo*, llvm::MemorySSAUpdater*, bool)
BasicBlockUtils.cpp:0:0
#10 0x0000000002ccbfbf llvm::SplitBlockPredecessors(llvm::BasicBlock*,
llvm::ArrayRef<llvm::BasicBlock*>, char const*, llvm::DominatorTree*,
llvm::LoopInfo*, llvm::MemorySSAUpdater*, bool)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2ccbfbf)
#11 0x0000000003e1ae8b polly::simplifyRegion(llvm::Region*,
llvm::DominatorTree*, llvm::LoopInfo*, llvm::RegionInfo*)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3e1ae8b)
#12 0x0000000003d5ba19 generateCode(polly::Scop&, polly::IslAstInfo&,
llvm::LoopInfo&, llvm::DominatorTree&, llvm::ScalarEvolution&,
llvm::RegionInfo&) CodeGeneration.cpp:0:0
#13 0x0000000003d5b6cf polly::CodeGenerationPass::run(polly::Scop&,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>&,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3d5b6cf)
#14 0x0000000003d4e63d llvm::detail::PassModel<polly::Scop,
polly::CodeGenerationPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&>::run(polly::Scop&,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>&,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&) RegisterPasses.cpp:0:0
#15 0x0000000003dbe2f5 llvm::PassManager<polly::Scop,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&>::run(polly::Scop&,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>&,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3dbe2f5)
#16 0x0000000003d49840
polly::FunctionToScopPassAdaptor<llvm::PassManager<polly::Scop,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&>
>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)
RegisterPasses.cpp:0:0
#17 0x0000000003d4921d llvm::detail::PassModel<llvm::Function,
polly::FunctionToScopPassAdaptor<llvm::PassManager<polly::Scop,
llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>,
polly::ScopStandardAnalysisResults&, polly::SPMUpdater&> >,
llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>
>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)
RegisterPasses.cpp:0:0
#18 0x0000000002555d31 llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2555d31)
#19 0x00000000033d601d llvm::detail::PassModel<llvm::Function,
llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >,
llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>
>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)
BackendUtil.cpp:0:0
#20 0x0000000002559404 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2559404)
#21 0x00000000033d82dd llvm::detail::PassModel<llvm::Module,
llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) BackendUtil.cpp:0:0
#22 0x0000000002554a74 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2554a74)
#23 0x00000000033cbea2 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#24 0x00000000033c6707 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x33c6707)
#25 0x00000000037f6b10
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
CodeGenAction.cpp:0:0
#26 0x00000000041506f4 clang::ParseAST(clang::Sema&, bool, bool)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x41506f4)
#27 0x0000000003744600 clang::FrontendAction::Execute()
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3744600)
#28 0x00000000036bd24f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x36bd24f)
#29 0x00000000037f05f7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x37f05f7)
#30 0x00000000019e43fb cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x19e43fb)
#31 0x00000000019e1f5d ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
driver.cpp:0:0
#32 0x00000000035549d2 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0
#33 0x0000000002c400f7
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x2c400f7)
#34 0x0000000003554537
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3554537)
#35 0x000000000351c968
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x351c968)
#36 0x000000000351cc37
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x351cc37)
#37 0x0000000003535141
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x3535141)
#38 0x00000000019e1841 main
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x19e1841)
#39 0x00007f96825f9b25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#40 0x00000000019ded8e _start
(/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin/clang-14+0x19ded8e)
clang-14: error: clang frontend command failed with exit code 134 (use -v to
see invocation)
ClangBuiltLinux clang version 14.0.0 (https://github.com/llvm/llvm-project
85b4b21c8bbad346d58a30154d2767c39cf3285a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/nathan/tmp/llvm-85b4b21c8bbad346d58a30154d2767c39cf3285a-assertions/bin
clang-14: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

See https://github.com/ClangBuiltLinux/linux/issues/1460#issuecomment-924230262
and related messages there for additional findings.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210924/728e6327/attachment-0001.html>


More information about the llvm-bugs mailing list