From owner-freebsd-bugs@freebsd.org Mon Sep 30 02:54:20 2019 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 1A750F903B for ; Mon, 30 Sep 2019 02:54:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46hRnR6xX9z4FWK for ; Mon, 30 Sep 2019 02:54:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EC7C3F903A; Mon, 30 Sep 2019 02:54:19 +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 EC3E6F9038 for ; Mon, 30 Sep 2019 02:54:19 +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) server-signature RSA-PSS (4096 bits) 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 46hRnR5m9Tz4FWJ for ; Mon, 30 Sep 2019 02:54:19 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A53D723F0F for ; Mon, 30 Sep 2019 02:54:19 +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 x8U2sJGw086229 for ; Mon, 30 Sep 2019 02:54:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8U2sJVT086228 for bugs@FreeBSD.org; Mon, 30 Sep 2019 02:54:19 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 240928] clang segfault when compiling with -march=bonnel (CPUTYPE=atom in make.conf) Date: Mon, 30 Sep 2019 02:54:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cuicui@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2019 02:54:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240928 Bug ID: 240928 Summary: clang segfault when compiling with -march=3Dbonnel (CPUTYPE=3Datom in make.conf) Product: Base System Version: 11.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: cuicui@gmail.com Clang 8.0.0 shipped with FreeBSD 11.3 seems to segfault when compiling cert= ain ports with -march=3Dbonnel (CPUTYPE=3Datom specified in /etc/make.conf). Here is a backtrace from gdb: #0 0x0000000001cc65d3 in (anonymous namespace)::X86MCCodeEmitter::encodeInstruction(llvm::MCInst const&, llvm::raw_ostream&, llvm::SmallVectorImpl&, llvm::MCSubtargetInfo const&) const () #1 0x0000000002045312 in llvm::MCELFStreamer::EmitInstToData(llvm::MCInst const&, llvm::MCSubtargetInfo const&) () #2 0x00000000020990c1 in llvm::MCObjectStreamer::EmitInstruction(llvm::MCI= nst const&, llvm::MCSubtargetInfo const&, bool) () #3 0x0000000001a4a35e in llvm::X86AsmPrinter::EmitInstruction(llvm::MachineInstr const*) () #4 0x0000000002ac10c5 in llvm::AsmPrinter::EmitFunctionBody() () #5 0x00000000018c65e8 in llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&) () #6 0x0000000002ad5d6a in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) () #7 0x00000000025759dd in llvm::FPPassManager::runOnFunction(llvm::Function= &) () #8 0x0000000002575ca3 in llvm::FPPassManager::runOnModule(llvm::Module&) () #9 0x000000000257607a in llvm::legacy::PassManagerImpl::run(llvm::Module&)= () #10 0x000000000043250b in clang::EmitBackendOutput(clang::DiagnosticsEngine= &, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr >) () #11 0x000000000042da27 in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) () #12 0x00000000008799c3 in clang::ParseAST(clang::Sema&, bool, bool) () #13 0x0000000000870f05 in clang::FrontendAction::Execute() () #14 0x0000000000dfc188 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) () #15 0x000000000040ec5a in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) () #16 0x000000000040095c in cc1_main (Argv=3D..., Argv0=3D0x7fffffffdcf8 "/usr/bin/cc", MainAddr=3D0x409e40 ) at /usr/src/contrib/llvm/tools/clang/tools/driver/cc1_main.cpp:219 #17 0x000000000040c816 in ExecuteCC1Tool (argv=3D..., Tool=3D...) at /usr/src/contrib/llvm/tools/clang/tools/driver/driver.cpp:310 #18 main (argc_=3D, argv_=3D0x7fffffffd610) at /usr/src/contrib/llvm/tools/clang/tools/driver/driver.cpp:382 Attached are the debug files clang dumped in /tmp. --=20 You are receiving this mail because: You are the assignee for the bug.=