Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp481504pxj; Thu, 17 Jun 2021 07:11:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRs5k0wh8r6Dev00sJxgDC+hL6WlnUo4jiEtivK1elXP2YWLlVi4AAUdUltzJo1yJhE8as X-Received: by 2002:a5d:6452:: with SMTP id d18mr180035wrw.80.1623939078661; Thu, 17 Jun 2021 07:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623939078; cv=none; d=google.com; s=arc-20160816; b=uSynv0caMed0UIA0xyf/Ho5YI2lnBbkw3a9o6ZDjw58JAAhMpaKczTgWQFRgvo1SwS lcT81tUTJGyWgiX0MSxCFo6uCBaOdyg5sqziEjH1SvKyd76so7XmfpHjFRtVjTkaBs3D GB8SzG3Lc+Ur1Y96nCmi8i3iROjdSps3TpqxFVe5cGUSUtqXJCNyAvqFEVnhYpLgWCls QY0GVz6NeEuX+E0T1RWF+jlz+gFonlemGxHZB6pRA7Z4R8ys6YjQZEMaRO5SwZQT7KcC FW6xJE3iGxco+NgwCbDRgRubUg9vWw7ltNPFoTPgSwiFxcc9lVb8I3/B+K0bcX+BvM4Y mfKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Sw0rRPu1vla3L3zZiG3OVvS5c51Ec2nGfh20w94ZGwY=; b=S1NqWt8kYaOyq6XChO142h+jq1unvlQmJvC9IHQcRPYe+2XBabEvg6ok90pTbe5d/2 pgseWCqRMvV0LoFqZbatzlur17N4k9KNryGJuLsFAXKZgh7rEsyhesre9PcLv39f7g8a tFbro1h54dkTLtJ0e7pRpFMfiJDMRleZjhIoIQ85n9G9Yh9uzAD+WIokuq/KZN/t9sv0 sS3BqQhe7evih2F7/CxdHKczEktBrSVzE+zmOhiNLa7F1zfljG31BCrL6VRLTrdg2nu3 5mmwG/htManXVYZeGLR7bq352CSspGTwjdpQ3cn180Net0mCyM0zBLPr2c1rOxC1+qcq 15ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wYl9BpEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si5751142ejg.238.2021.06.17.07.10.54; Thu, 17 Jun 2021 07:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wYl9BpEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbhFQMvf (ORCPT + 99 others); Thu, 17 Jun 2021 08:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbhFQMvf (ORCPT ); Thu, 17 Jun 2021 08:51:35 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4806C061574 for ; Thu, 17 Jun 2021 05:49:26 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id ji1so3557561ejc.4 for ; Thu, 17 Jun 2021 05:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sw0rRPu1vla3L3zZiG3OVvS5c51Ec2nGfh20w94ZGwY=; b=wYl9BpEIRPN1bj85qOZ3tLMiAZgJV/Fr3Sxw+Pb27abJEWl9yLdoJD9hMh8ljvTxF9 RoRDyN1eq7B5yaaTYkh/km6MaFvtuRW/y2OfnlQrCp1BGzKwXt0JeLEfoAN42AQMyADr pfAjtUwK+/k8Th7NsXH/U82bMBDfzTc9cr6VvP6p7udlL38sSM99uMUM2wf2Lesahnx4 LVa4dXzDIYhQZ3n6iFMwuIxgGohHDifEkurY3kqVa7hEhVEHute54wwJZpLH7oQcHbzA 2e9L4yJFMxDCQ9S+aSvS7ngy+zPgn4ORvM3cS/Jl94tVkC9SikZpZMnudJRXrwBL8LW6 U3Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sw0rRPu1vla3L3zZiG3OVvS5c51Ec2nGfh20w94ZGwY=; b=LqoGAv2Dei9ujglEifVMzq155maqw8ykMYPdijwVcwZuQUgri0+BP7joq0tt3x0bhZ 10wpsWUN2K11vc/9o8f+e4C2X7Wy76G3hA69zsr72w7/QDUSvZrCq2Ap/6MvfyvShv3g fiGopDkWmkNop6q3+7qSeNwu2+Su2evOnNSpsEmOVwaYniIBpJ4yPbhSBFc5CBBhoNaF LN3FXvyux2v+7M9C9yWaiR3VuY2hZhrztXo2rPl5aWWM7mY3HLiyho5goagov+CqWIml LB3SW+YpIexed2IuSC3/mIicdTvXYhphRCobTHIt1pQuxZImR5LTAGLZNeywXqj0Euy2 tFXA== X-Gm-Message-State: AOAM5331nUhMNwFU31pIDDARrLVYBTaUWdYkb6YclYBt5wK2ud/fRYet yzFmPQI4NjKmglPZRZe4TtaYFpkgqzVn08vs6YzuJg== X-Received: by 2002:a17:906:480a:: with SMTP id w10mr5085999ejq.18.1623934165253; Thu, 17 Jun 2021 05:49:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Thu, 17 Jun 2021 18:19:14 +0530 Message-ID: Subject: Re: [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 , Heiko Carstens , Vasily Gorbik Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The git bisect found the first bad commit, On Thu, 17 Jun 2021 at 17:57, Naresh Kamboju wrote: > > 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, false, void>, false, true>, > llvm::ilist_iterator false, false, void>, 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 std::default_delete >) > (/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 The first bad commit: commit 3abbdfde5a6588a92209cd8b131769b8058e7c21 Author: Heiko Carstens Date: Wed Jun 9 22:59:13 2021 +0200 s390/bitops: use register pair instead of register asm Get rid of register asm statement and use a register pair. This allows the compiler to allocate registers on its own. Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik arch/s390/include/asm/bitops.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Previous HEAD position was 3abbdfde5a65 s390/bitops: use register pair instead of register asm HEAD is now at 7d9c6b8147bd Add linux-next specific files for 20210617 > > 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 - Naresh > -- > Linaro LKFT > https://lkft.linaro.org