Skip to content

net/ipv4/tcp_input.c: clang: error: clang frontend command failed with exit code 139 (use -v to see invocation) #53811

@nareshkamboju

Description

@nareshkamboju

On Linux mainline master branch with arm64 clang-nightly build failed
due to following errors and warnings.

make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/current LLVM=1 LLVM_IAS=1 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- HOSTCC=clang CC=clang
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: clang -Wp,-MMD,net/ipv4/.tcp_input.o.d -nostdinc -I/builds/linux/arch/arm64/include -I./arch/arm64/include/generated -I/builds/linux/include -I./include -I/builds/linux/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/builds/linux/include/uapi -I./include/generated/uapi -include /builds/linux/include/linux/compiler-version.h -include /builds/linux/include/linux/kconfig.h -include /builds/linux/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DCC_USING_PATCHABLE_FUNCTION_ENTRY -DKASAN_SHADOW_SCALE_SHIFT= -Qunused-arguments -fmacro-prefix-map=/builds/linux/= -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=gnu89 --target=aarch64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=pac-ret+leaf+bti -Wa,-march=armv8.5-a -DARM64_ASM_ARCH="armv8.5-a" -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -fpatchable-function-entry=2 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -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 -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1408 -I /builds/linux/net/ipv4 -I ./net/ipv4 -DKBUILD_MODFILE="net/ipv4/tcp_input" -DKBUILD_BASENAME="tcp_input" -DKBUILD_MODNAME="tcp_input" -D__KBUILD_MODNAME=kmod_tcp_input -c -o net/ipv4/tcp_input.o /builds/linux/net/ipv4/tcp_input.c

  1. parser at end of file
  2. Code generation
  3. Running pass 'Function Pass Manager' on module '/builds/linux/net/ipv4/tcp_input.c'.
  4. Running pass 'Live Interval Analysis' on function '@tcp_ack'
     #0 0x00007fcc9438ce91 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe93e91)
     Fixing Rust build #1 0x00007fcc9438abee llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe91bee)
     Fix a typo #2 0x00007fcc9438c260 llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe93260)
     Fix a compilation error on gcc8 #3 0x00007fcc942b4e0f (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xdbbe0f)
     Fix a compilation error on gcc8 #4 0x00007fcc9d729140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
     Seedarg/member/wip #5 0x00007fcc9467bebb (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x1182ebb)
     Add check for matching HeaderFilter before emitting Diagnostic #6 0x00007fcc9467b274 llvm::ConnectedVNInfoEqClasses::Distribute(llvm::LiveInterval&, llvm::LiveInterval**, llvm::MachineRegisterInfo&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x1182274)
     Random engine swap #7 0x00007fcc9466ef85 llvm::LiveIntervals::splitSeparateComponents(llvm::LiveInterval&, llvm::SmallVectorImplllvm::LiveInterval*&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x1175f85)
     Update rwlock init #8 0x00007fcc9466d914 llvm::LiveIntervals::computeVirtRegs() (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x1174914)
      Next80 merge test #9 0x00007fcc9466d4f2 llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x11744f2)
    Fix typo: 'soruce' -> 'source' #10 0x00007fcc9471247d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x121947d)
    fix for gcc 8 #11 0x00007fcc944c749f llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfce49f)
    Fix "Allman" style example #12 0x00007fcc944ce9a3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfd59a3)
    Defer diag #13 0x00007fcc944c8026 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfcf026)
    WIP lifetime categories #14 0x00007fcc9b71896b 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/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x18a296b)
    Fix ClangOpenCLBuiltinsImpl target not found #15 0x00007fcc9ba5ecb1 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x1be8cb1)
    __unique_stable_name implementation. #16 0x00007fcc9a8af994 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0xa39994)
    Lockdown test #17 0x00007fcc9ba5b001 clang::CodeGenAction::ExecuteAction() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x1be5001)
    Lockdown test #18 0x00007fcc9c3fc1b7 clang::FrontendAction::Execute() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x25861b7)
    Test commit to check lockdown app #19 0x00007fcc9c3541d6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x24de1d6)
    Construct path using a locale #20 0x00007fcc9c475c3a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x25ffc3a)
    moved upfront the skip branch insertion code for correctness. #21 0x0000000000413e1e cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-15/bin/clang+0x413e1e)
    Update Applyreplacements.h #22 0x000000000041209b (/usr/lib/llvm-15/bin/clang+0x41209b)
    Fix issue with empty LIB_NAMES #23 0x00007fcc9bfd65a2 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x21605a2)
    Vardhan/issue 123 #24 0x00007fcc942b4b7d llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xdbbb7d)
    Add bugprone-argument-comment option: IgnoreSingleArgument. #25 0x00007fcc9bfd6090 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2160090)
    Cherry-picked from commit 628e418df1a009e0d073545cbef3604350e7b808 #26 0x00007fcc9bf9dac3 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2127ac3)
    Templateissue #27 0x00007fcc9bf9dd4a clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2127d4a)
    Dfa #28 0x00007fcc9bfb7917 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2141917)
    LLVM_COMPLETE_INSTALLATION #29 0x0000000000411b06 main (/usr/lib/llvm-15/bin/clang+0x411b06)
    Vis debug #30 0x00007fcc9302dd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
    [analyzer][NFC][docs] Add CodeChecker to the command line tools #31 0x000000000040ef9a _start (/usr/lib/llvm-15/bin/clang+0x40ef9a)
    clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
    Debian clang version 15.0.0-++20220212071827+2e57156fead3-1exp120220212071918.154
    Target: aarch64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /usr/local/bin
    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: /tmp/tcp_input-24e82f.c
clang: note: diagnostic msg: /tmp/tcp_input-24e82f.sh
clang: note: diagnostic msg:


make[3]: *** [/builds/linux/scripts/Makefile.build:288: net/ipv4/tcp_input.o] Error 139
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: clang -Wp,-MMD,net/ipv4/.tcp_minisocks.o.d -nostdinc -I/builds/linux/arch/arm64/include -I./arch/arm64/include/generated -I/builds/linux/include -I./include -I/builds/linux/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/builds/linux/include/uapi -I./include/generated/uapi -include /builds/linux/include/linux/compiler-version.h -include /builds/linux/include/linux/kconfig.h -include /builds/linux/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DCC_USING_PATCHABLE_FUNCTION_ENTRY -DKASAN_SHADOW_SCALE_SHIFT= -Qunused-arguments -fmacro-prefix-map=/builds/linux/= -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=gnu89 --target=aarch64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=pac-ret+leaf+bti -Wa,-march=armv8.5-a -DARM64_ASM_ARCH="armv8.5-a" -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -fpatchable-function-entry=2 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -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 -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1408 -I /builds/linux/net/ipv4 -I ./net/ipv4 -DKBUILD_MODFILE="net/ipv4/tcp_minisocks" -DKBUILD_BASENAME="tcp_minisocks" -DKBUILD_MODNAME="tcp_minisocks" -D__KBUILD_MODNAME=kmod_tcp_minisocks -c -o net/ipv4/tcp_minisocks.o /builds/linux/net/ipv4/tcp_minisocks.c

  1. parser at end of file
  2. Code generation
  3. Running pass 'Function Pass Manager' on module '/builds/linux/net/ipv4/tcp_minisocks.c'.
  4. Running pass 'Simple Register Coalescing' on function '@tcp_timewait_state_process'
     #0 0x00007f394a236e91 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe93e91)
     Fixing Rust build #1 0x00007f394a234bee llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe91bee)
     Fix a typo #2 0x00007f394a236260 llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xe93260)
     Fix a compilation error on gcc8 #3 0x00007f394a15ee0f (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xdbbe0f)
     Fix a compilation error on gcc8 #4 0x00007f39535d3140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
     Seedarg/member/wip #5 0x00007f394a5220b5 llvm::LiveRange::join(llvm::LiveRange&, int const*, int const*, llvm::SmallVectorImplllvm::VNInfo*&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x117f0b5)
     Add check for matching HeaderFilter before emitting Diagnostic #6 0x00007f394a74a8db (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x13a78db)
     Random engine swap #7 0x00007f394a7467ed (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x13a37ed)
     Update rwlock init #8 0x00007f394a7441dd (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x13a11dd)
      Next80 merge test #9 0x00007f394a5bc47d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0x121947d)
    Fix typo: 'soruce' -> 'source' #10 0x00007f394a37149f llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfce49f)
    fix for gcc 8 #11 0x00007f394a3789a3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfd59a3)
    Fix "Allman" style example #12 0x00007f394a372026 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xfcf026)
    Defer diag #13 0x00007f39515c296b 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/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x18a296b)
    WIP lifetime categories #14 0x00007f3951908cb1 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x1be8cb1)
    Fix ClangOpenCLBuiltinsImpl target not found #15 0x00007f3950759994 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0xa39994)
    __unique_stable_name implementation. #16 0x00007f3951905001 clang::CodeGenAction::ExecuteAction() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x1be5001)
    Lockdown test #17 0x00007f39522a61b7 clang::FrontendAction::Execute() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x25861b7)
    Lockdown test #18 0x00007f39521fe1d6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x24de1d6)
    Test commit to check lockdown app #19 0x00007f395231fc3a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x25ffc3a)
    Construct path using a locale #20 0x0000000000413e1e cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-15/bin/clang+0x413e1e)
    moved upfront the skip branch insertion code for correctness. #21 0x000000000041209b (/usr/lib/llvm-15/bin/clang+0x41209b)
    Update Applyreplacements.h #22 0x00007f3951e805a2 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x21605a2)
    Fix issue with empty LIB_NAMES #23 0x00007f394a15eb7d llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1+0xdbbb7d)
    Vardhan/issue 123 #24 0x00007f3951e80090 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2160090)
    Add bugprone-argument-comment option: IgnoreSingleArgument. #25 0x00007f3951e47ac3 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2127ac3)
    Cherry-picked from commit 628e418df1a009e0d073545cbef3604350e7b808 #26 0x00007f3951e47d4a clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2127d4a)
    Templateissue #27 0x00007f3951e61917 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.15+0x2141917)
    Dfa #28 0x0000000000411b06 main (/usr/lib/llvm-15/bin/clang+0x411b06)
    LLVM_COMPLETE_INSTALLATION #29 0x00007f3948ed7d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
    Vis debug #30 0x000000000040ef9a _start (/usr/lib/llvm-15/bin/clang+0x40ef9a)
    clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
    Debian clang version 15.0.0-++20220212071827+2e57156fead3-1exp120220212071918.154
    Target: aarch64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /usr/local/bin
    clang: note: diagnostic msg:

build log link:
https://builds.tuxbuild.com/254TFZPxjU105HfmOmS9Rac9sEO/
Kconfig: https://builds.tuxbuild.com/254TFZPxjU105HfmOmS9Rac9sEO/config
toolchain: clang-nightly

Reported-by: Linux Kernel Functional Testing lkft@linaro.org

--
Linaro LKFT
https://lkft.linaro.org

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