From owner-freebsd-bugs@freebsd.org Wed Jun 3 16:27:31 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E06BF33B238 for ; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49cZ7l5dpJz3WHf for ; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BFCE233B237; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF96133AF78 for ; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49cZ7l4lfSz3W84 for ; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9E860109F3 for ; Wed, 3 Jun 2020 16:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 053GRVTG028179 for ; Wed, 3 Jun 2020 16:27:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 053GRVnC028176 for bugs@FreeBSD.org; Wed, 3 Jun 2020 16:27:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246630] stable/11 regression: base.txz reproducibility depends on number of cpu cores Date: Wed, 03 Jun 2020 16:27:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 16:27:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246630 --- Comment #26 from Dimitry Andric --- Created attachment 215200 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215200&action= =3Dedit Reproduction files for printf.c This is a tarball with reproduction files for compiling printf.c, which sho= uld be completely standalone. Contents: bug246630-repro/printf-699ef3.c bug246630-repro/printf-699ef3.sh Note that the shell script already invokes clang -cc1, so it will not do anything special (AFAIK) with the spawn-new-cc setting. But it could be use= d to attempt to detect undefined behavior or usage of uninitialized memory. Since valgrind doesn't work on FreeBSD, I had to resort to running it on Li= nux, and there I get: =3D=3D120363=3D=3D Conditional jump or move depends on uninitialised value(= s) =3D=3D120363=3D=3D at 0x1634474: llvm::ConstantExpr::getGetElementPtr(ll= vm::Type*, llvm::Constant*, llvm::ArrayRef, bool, llvm::Optional, llvm::Type*) (Constants.cpp:2191) =3D=3D120363=3D=3D by 0x112D6D9: getGetElementPtr (Constants.h:1163) =3D=3D120363=3D=3D by 0x112D6D9: (anonymous namespace)::SymbolicallyEvaluateGEP(llvm::GEPOperator const*, llvm::ArrayRef, llvm::DataLayout const&, llvm::TargetLibraryInfo const*) (ConstantFolding.cpp:1005) =3D=3D120363=3D=3D by 0x112DF70: (anonymous namespace)::ConstantFoldInstOperandsImpl(llvm::Value const*, unsigned int, llvm::ArrayRef, llvm::DataLayout const&, llvm::TargetLibraryInfo const*) (ConstantFolding.cpp:1039) =3D=3D120363=3D=3D by 0x112C165: (anonymous namespace)::ConstantFoldConstantImpl(llvm::Constant const*, llvm::DataLayout const&, llvm::TargetLibraryInfo const*, llvm::SmallDenseMap, llvm::detail::DenseMapPair >&) [clone .part.0] (ConstantFolding.cpp:1114) =3D=3D120363=3D=3D by 0x112C5CF: llvm::ConstantFoldConstant(llvm::Consta= nt const*, llvm::DataLayout const&, llvm::TargetLibraryInfo const*) (ConstantFolding.cpp:1194) =3D=3D120363=3D=3D by 0x188F410: prepareICWorklistFromFunction (InstructionCombining.cpp:3584) =3D=3D120363=3D=3D by 0x188F410: combineInstructionsOverFunction(llvm::F= unction&, llvm::InstCombineWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::ProfileSummaryInfo*, unsigned int, llvm::LoopInfo*) (InstructionCombining.cpp:3703) =3D=3D120363=3D=3D by 0x189205F: runOnFunction (InstructionCombining.cpp= :3789) =3D=3D120363=3D=3D by 0x189205F: llvm::InstructionCombiningPass::runOnFunction(llvm::Function&) (InstructionCombining.cpp:3768) =3D=3D120363=3D=3D by 0x16F4352: llvm::FPPassManager::runOnFunction(llvm= ::Function&) (LegacyPassManager.cpp:1482) =3D=3D120363=3D=3D by 0x16F4DE8: llvm::FPPassManager::runOnModule(llvm::= Module&) (LegacyPassManager.cpp:1518) =3D=3D120363=3D=3D by 0x16F51A2: runOnModule (LegacyPassManager.cpp:1583) =3D=3D120363=3D=3D by 0x16F51A2: llvm::legacy::PassManagerImpl::run(llvm= ::Module&) (LegacyPassManager.cpp:1695) =3D=3D120363=3D=3D by 0x1FF4CFE: EmitAssembly (BackendUtil.cpp:954) =3D=3D120363=3D=3D by 0x1FF4CFE: clang::EmitBackendOutput(clang::Diagnos= ticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr >) (BackendUtil.cpp:1677) =3D=3D120363=3D=3D by 0x2C471A8: clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (CodeGenAction.cpp:335) =3D=3D120363=3D=3D Uninitialised value was created by a stack allocation =3D=3D120363=3D=3D at 0x112C653: (anonymous namespace)::SymbolicallyEvaluateGEP(llvm::GEPOperator const*, llvm::ArrayRef, llvm::DataLayout const&, llvm::TargetLibraryInfo const*) (ConstantFolding.c I'm trying to reduce this now. --=20 You are receiving this mail because: You are the assignee for the bug.=