Date: Mon, 30 Sep 2019 02:54:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240928] clang segfault when compiling with -march=bonnel (CPUTYPE=atom in make.conf) Message-ID: <bug-240928-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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::MCFixup>&, 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<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) () #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 <GetExecutablePath(char const*, bool)>) 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<optimized out>, 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240928-227>