Skip to content

clang-15 crash trying to build linux kernel for Target: powerpc64-unknown-linux  #56530

@sudipm-mukherjee

Description

@sudipm-mukherjee

Stack dump:
0. Program arguments: clang -Wp,-MMD,sound/core/seq/.seq_clientmgr.o.d -nostdinc -I./arch/powerpc/include -I./arch/powerpc/include/generated -I./include -I./arch/powerpc/include/uapi -I./arch/powerpc/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -I ./arch/powerpc -DHAVE_AS_ATHIGH=1 -Qunused-arguments -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 --target=powerpc64-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mbig-endian -m64 -msoft-float -pipe -mcmodel=medium -mtune=power7 -mcpu=power5 -mno-altivec -mno-vsx -mno-spe -fno-asynchronous-unwind-tables -mbig-endian -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=2048 -fno-stack-protector -Werror -Wimplicit-fallthrough -Wno-gnu -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -pg -falign-functions=64 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wno-initializer-overrides -Wno-format -Wno-sign-compare -Wno-format-zero-length -Wno-pointer-to-enum-cast -Wno-tautological-constant-out-of-range-compare -Wno-unaligned-access -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fsanitize=kernel-address -mllvm -asan-mapping-offset=0xa80e000000000000 -mllvm -asan-globals=1 -mllvm -asan-instrumentation-with-call-threshold=0 --param asan-instrument-allocas=1 -mllvm -asan-stack=0 -fsanitize=array-bounds -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=bool -fsanitize=enum -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -DMODULE -mcmodel=large -DKBUILD_BASENAME="seq_clientmgr" -DKBUILD_MODNAME="snd_seq" -D__KBUILD_MODNAME=kmod_snd_seq -c -o sound/core/seq/seq_clientmgr.o sound/core/seq/seq_clientmgr.c

  1. parser at end of file
  2. Code generation
  3. Running pass 'Function Pass Manager' on module 'sound/core/seq/seq_clientmgr.c'.
  4. Running pass 'Loop Pass Manager' on function '@snd_seq_ioctl'
  5. Running pass 'Loop Strength Reduction' on basic block '%for.cond'
    #0 0x0000561ad08dcb30 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
    Fixing Rust build #1 0x0000561ad08da994 llvm::sys::CleanupOnSignal(unsigned long) (/usr/local/bin/clang-15+0x374f994)
    Fix a typo #2 0x0000561ad081f0f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
    Fix a compilation error on gcc8 #3 0x00007f242a21c140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
    Fix a compilation error on gcc8 #4 0x0000561acf9f2cce llvm::InductionDescriptor::isInductionPHI(llvm::PHINode*, llvm::Loop const*, llvm::ScalarEvolution*, llvm::InductionDescriptor&, llvm::SCEV const*, llvm::SmallVectorImplllvm::Instruction*) (/usr/local/bin/clang-15+0x2867cce)
    Seedarg/member/wip #5 0x0000561ad09fbf9f llvm::rewriteLoopExitValues(llvm::Loop
    , llvm::LoopInfo*, llvm::TargetLibraryInfo*, llvm::ScalarEvolution*, llvm::TargetTransformInfo const*, llvm::SCEVExpander&, llvm::DominatorTree*, llvm::ReplaceExitVal, llvm::SmallVector<llvm::WeakTrackingVH, 16u>&) (/usr/local/bin/clang-15+0x3870f9f)
    Add check for matching HeaderFilter before emitting Diagnostic #6 0x0000561ad06c2be8 ReduceLoopStrength(llvm::Loop*, llvm::IVUsers&, llvm::ScalarEvolution&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::MemorySSA*) LoopStrengthReduce.cpp:0:0
    Random engine swap #7 0x0000561ad06c4911 (anonymous namespace)::LoopStrengthReduce::runOnLoop(llvm::Loop*, llvm::LPPassManager&) LoopStrengthReduce.cpp:0:0
    Update rwlock init #8 0x0000561acf88616b llvm::LPPassManager::runOnFunction(llvm::Function&) (/usr/local/bin/clang-15+0x26fb16b)
    Next80 merge test #9 0x0000561ad000af00 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/local/bin/clang-15+0x2e7ff00)
    Fix typo: 'soruce' -> 'source' #10 0x0000561ad000b06c llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/local/bin/clang-15+0x2e8006c)
    fix for gcc 8 #11 0x0000561ad000bba1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/local/bin/clang-15+0x2e80ba1)
    Fix "Allman" style example #12 0x0000561ad0c64070 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_deletellvm::raw_pwrite_stream>) (/usr/local/bin/clang-15+0x3ad9070)
    Defer diag #13 0x0000561ad1a028bc clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/usr/local/bin/clang-15+0x48778bc)
    WIP lifetime categories #14 0x0000561ad24850e9 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang-15+0x52fa0e9)
    Fix ClangOpenCLBuiltinsImpl target not found #15 0x0000561ad136bd39 clang::FrontendAction::Execute() (/usr/local/bin/clang-15+0x41e0d39)
    __unique_stable_name implementation. #16 0x0000561ad12f770b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang-15+0x416c70b)
    Lockdown test #17 0x0000561ad1422250 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang-15+0x4297250)
    Lockdown test #18 0x0000561ace2a3b5c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang-15+0x1118b5c)
    Test commit to check lockdown app #19 0x0000561ace29d159 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
    Construct path using a locale #20 0x0000561ad116d5e5 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const::'lambda'()>(long) Job.cpp:0:0
    moved upfront the skip branch insertion code for correctness. #21 0x0000561ad081f1f3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/local/bin/clang-15+0x36941f3)
    Update Applyreplacements.h #22 0x0000561ad116d944 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const (.part.0) Job.cpp:0:0
    Fix issue with empty LIB_NAMES #23 0x0000561ad113a626 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/local/bin/clang-15+0x3faf626)
    Vardhan/issue 123 #24 0x0000561ad113afcd clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/usr/local/bin/clang-15+0x3faffcd)
    Add bugprone-argument-comment option: IgnoreSingleArgument. #25 0x0000561ad11493ac clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/usr/local/bin/clang-15+0x3fbe3ac)
    Cherry-picked from commit 628e418df1a009e0d073545cbef3604350e7b808 #26 0x0000561ace2a1a1a clang_main(int, char**) (/usr/local/bin/clang-15+0x1116a1a)
    Templateissue #27 0x00007f2429d38d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
    Dfa #28 0x0000561ace29cc3a _start (/usr/local/bin/clang-15+0x1111c3a)
    clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
    clang version 15.0.0 (https://github.com/llvm/llvm-project.git 30b6c51)
    Target: powerpc64-unknown-linux
    Thread model: posix
    InstalledDir: /usr/local/bin
    clang-15: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/seq_clientmgr-3f52ec.c
clang-15: note: diagnostic msg: /tmp/seq_clientmgr-3f52ec.sh
clang-15: note: diagnostic msg:


This was from a build job we run, I will try to get these files and attach to this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions