From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URI_HEX autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B513C49361 for ; Thu, 17 Jun 2021 12:27:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6800E61055 for ; Thu, 17 Jun 2021 12:27:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbhFQM3c (ORCPT ); Thu, 17 Jun 2021 08:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbhFQM3b (ORCPT ); Thu, 17 Jun 2021 08:29:31 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4499C061574 for ; Thu, 17 Jun 2021 05:27:22 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id n20so3740205edv.8 for ; Thu, 17 Jun 2021 05:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=dasXWH3vbrqnz/8qFPE8sSbqVTMnmvkZjNS38SkXCrY=; b=rMVybnc9cMfNAJTSJ3678hWH2pTH4ZqIVZO6v0GnLeoPZa45+UdxLsLgJhDvK1BKBh 4KFaIdXmg/y3CoCMpyezLqLhS2W4lpWLJf7kJoJNXJ3TWrviLgZ5dCi4YVkbKbiRhv5C eQ7fKauGGuHgDi4UuMrJ7OUKIugUdhZMTwMVRAnKtJq8fPYWG+I7CZcF51nR3wvYWG79 5kFT1o8W+fZiRlAuwZtDzeZRYvkdKYlFbWrpdK7Juj5oYUzeFvEyzyzqJJBBAGMKLd69 UDnO0jTfx0U0l1RN22x+aVehvQu/xsSOdtwqzsgt2OACNmtHe61oHLZvfSYTob1s2Lfx Te9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=dasXWH3vbrqnz/8qFPE8sSbqVTMnmvkZjNS38SkXCrY=; b=KhkEO7iaAZ4heAGDYwDqPvJeaiYI8Gs3d3UBlGnkcIXde9m7qKDRbXm62icSdm3nMf mxYtitJYXAXpkFbOvGPXejXIhWzDQZ6JAWC8kBdIrC6GXFgHTu0Wc4tSOr8iJy7pZi6x LPN5iJ2X4a+fN8uijnh9erezNON/wTS+93tSBbta/Q5K8RpzBnlzzBrtnC5elJklR5lX KjUp5bKY9g+UxnYre3vdVvi7itAQPJ93dj4IhMxiepeWgwR4gUdfKJGiFOvRD58ZqXei IdxFTIOfJyROJq0ZZp+tjQwX1J7Zu+dfg3kpdiwjJtIuRjwJ0RNgyvhisDSgHqW5qUJ9 pekA== X-Gm-Message-State: AOAM531K3poz1d9u53lUJ2Nsms5xnDLlwYBbbW7Rn1uXye52RFY079RR Kf8/7x2ur34heMLHwbSHUl92FVn5drrBAMlG5n863Q== X-Google-Smtp-Source: ABdhPJxUi/pHyLtsU8asHCjI4InTgxNRLnMu+BNiB4Vb2VcCk/8JhUCa2i6SBHHHaLrM+om6DdvTSbbiiC8Moq2lnhg= X-Received: by 2002:a05:6402:220d:: with SMTP id cq13mr6102680edb.52.1623932841150; Thu, 17 Jun 2021 05:27:21 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 17 Jun 2021 17:57:10 +0530 Message-ID: Subject: [next] [clang] s390: clang: error: unable to execute command: Segmentation fault (core dumped) To: Linux-Next Mailing List , clang-built-linux , lkft-triage@lists.linaro.org, open list Cc: Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linux next 20210617 tag following s390 builds failed with clang-10, clang-11 and clang-12. Regressions found on s390: - build/clang-11-tinyconfig - build/clang-11-allnoconfig - build/clang-12-allnoconfig - build/clang-12-defconfig - build/clang-10-tinyconfig - build/clang-11-defconfig - build/clang-10-allnoconfig - build/clang-12-tinyconfig - build/clang-10-defconfig Build log: ------------ make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache clang' 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: /usr/lib/llvm-12/bin/clang -cc1 -triple s390x-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -discard-value-names -main-file-name core.c -mrelocation-model pic -pic-level 2 -pic-is-pie -fno-delete-null-pointer-checks -mllvm -warn-stack-size=2048 -mframe-pointer=none -relaxed-aliasing -fmath-errno -fno-rounding-math -no-integrated-as -mconstructor-aliases -target-cpu zEC12 -target-feature +soft-float -mbackchain -mpacked-stack -msoft-float -mfloat-abi soft -fno-split-dwarf-inlining -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -nostdsysteminc -nobuiltininc -resource-dir /usr/lib/llvm-12/lib/clang/12.0.1 -dependency-file kernel/sched/.core.o.d -MT kernel/sched/core.o -isystem /usr/lib/llvm-12/lib/clang/12.0.1/include -include /builds/linux/include/linux/compiler-version.h -include /builds/linux/include/linux/kconfig.h -include /builds/linux/include/linux/compiler_types.h -I /builds/linux/arch/s390/include -I ./arch/s390/include/generated -I /builds/linux/include -I ./include -I /builds/linux/arch/s390/include/uapi -I ./arch/s390/include/generated/uapi -I /builds/linux/include/uapi -I ./include/generated/uapi -D __KERNEL__ -D __PACK_STACK -D CONFIG_AS_CFI_VAL_OFFSET=1 -D CC_USING_NOP_MCOUNT -D CC_USING_FENTRY -I /builds/linux/kernel/sched -I ./kernel/sched -D KBUILD_MODFILE=\"kernel/sched/core\" -D KBUILD_BASENAME=\"core\" -D KBUILD_MODNAME=\"core\" -D __KBUILD_MODNAME=kmod_core -fmacro-prefix-map=/builds/linux/= -O2 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -Werror=unknown-warning-option -Wno-sign-compare -Wno-frame-address -Wno-address-of-packed-member -Wno-format-invalid-specifier -Wno-gnu -Wno-unused-const-variable -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -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 -std=gnu89 -fno-dwarf-directory-asm -fdebug-compilation-dir /home/tuxbuild/.cache/tuxmake/builds/current -ferror-limit 19 -pg -mfentry -mnop-mcount -mrecord-mcount -fwrapv -fno-signed-char -fwchar-type=short -fno-signed-wchar -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -o /tmp/core-eaad47.s -x c /builds/linux/kernel/sched/core.c 1. parser at end of file 2.Code generation 3.Running pass 'Function Pass Manager' on module '/builds/linux/kernel/sched/core.c'. 4.Running pass 'SystemZ DAG->DAG Pattern Instruction Selection' on function '@trace_event_raw_event_sched_switch' #0 0x00007f7227e2e693 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xd12693) #1 0x00007f7227e2c9b0 llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xd109b0) #2 0x00007f7227e2ecff (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xd12cff) #3 0x00007f722f7cb140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140) #4 0x00007f7227dba772 llvm::LLT::print(llvm::raw_ostream&) const (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xc9e772) #5 0x00007f72284a850b llvm::SelectionDAGBuilder::visitInlineAsm(llvm::CallBase const&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x138c50b) #6 0x00007f722848ade7 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x136ede7) #7 0x00007f72285198b9 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, false, true>, llvm::ilist_iterator, false, true>, bool&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x13fd8b9) #8 0x00007f722851926a llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x13fd26a) #9 0x00007f7228516fa6 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x13fafa6) #10 0x00007f7229f07742 (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x2deb742) #11 0x00007f722813b09e llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x101f09e) #12 0x00007f7227f5619d llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xe3a19d) #13 0x00007f7227f5bb83 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xe3fb83) #14 0x00007f7227f567ef llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xe3a7ef) #15 0x00007f722e092be6 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr >) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1614be6) #16 0x00007f722e32bd9f (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x18add9f) #17 0x00007f722d487054 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xa09054) #18 0x00007f722ea20268 clang::FrontendAction::Execute() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1fa2268) #19 0x00007f722e9adcf1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x1f2fcf1) #20 0x00007f722ea83282 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.12+0x2005282) #21 0x0000000000413352 cc1_main(llvm::ArrayRef, char const*, void*) (/usr/lib/llvm-12/bin/clang+0x413352) #22 0x00000000004116ce (/usr/lib/llvm-12/bin/clang+0x4116ce) #23 0x00000000004114de main (/usr/lib/llvm-12/bin/clang+0x4114de) #24 0x00007f7226c50d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a) #25 0x000000000040e88a _start (/usr/lib/llvm-12/bin/clang+0x40e88a) clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Debian clang version 12.0.1-+rc1-1 Target: s390x-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/core-86ba67.c clang: note: diagnostic msg: /tmp/core-86ba67.sh clang: note: diagnostic msg: ******************** make[3]: *** [/builds/linux/scripts/Makefile.build:272: kernel/sched/core.o] Error 254 ref: https://builds.tuxbuild.com/1u4ZMVtVqiZtUcCrP9YE89mx9iU/ Build: -------- git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git_sha: 7d9c6b8147bdd76d7eb2cf6f74f84c6918ae0939 git_short_log: 7d9c6b8147bd (\Add linux-next specific files for 20210617\) kconfig: defconfig target_arch: s390 toolchain: clang-12 Reported-by: Naresh Kamboju -- Linaro LKFT https://lkft.linaro.org