[llvm-bugs] [Bug 52292] New: Crash with opt -passes='inliner-wrapper, module(default<O0>)'
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 25 07:14:36 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52292
Bug ID: 52292
Summary: Crash with opt
-passes='inliner-wrapper,module(default<O0>)'
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: mikael.holmen at ericsson.com
CC: llvm-bugs at lists.llvm.org
Created attachment 25389
--> https://bugs.llvm.org/attachment.cgi?id=25389&action=edit
bbi-59330.ll reproducer
llvm commit: 2995d29bb427
Reproduce with:
opt -passes='inliner-wrapper,module(default<O0>)' -S -o /dev/null bbi-59330.ll
Result:
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments: /repo/uabelho/master-github/llvm/build-all/bin/opt
-passes=inliner-wrapper,module(default<O0>) -S -o /dev/null bbi-59330.ll
#0 0x0000000002b79493 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x2b79493)
#1 0x0000000002b7710e llvm::sys::RunSignalHandlers()
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x2b7710e)
#2 0x0000000002b79816 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f1535c7b630 __restore_rt sigaction.c:0:0
#4 0x0000000002309731 llvm::Module::getNamedValue(llvm::StringRef) const
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x2309731)
#5 0x0000000002371e2d llvm::coro::declaresIntrinsics(llvm::Module const&,
std::initializer_list<llvm::StringRef>)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x2371e2d)
#6 0x000000000237b9a6 llvm::CoroSplitPass::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x237b9a6)
#7 0x0000000002e62f0d llvm::detail::PassModel<llvm::LazyCallGraph::SCC,
llvm::CoroSplitPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) crtstuff.c:0:0
#8 0x0000000001a03668 llvm::PassManager<llvm::LazyCallGraph::SCC,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x1a03668)
#9 0x000000000248a7dd llvm::detail::PassModel<llvm::LazyCallGraph::SCC,
llvm::PassManager<llvm::LazyCallGraph::SCC,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) crtstuff.c:0:0
#10 0x0000000001a05903
llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x1a05903)
#11 0x000000000248aa3d llvm::detail::PassModel<llvm::Module,
llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) crtstuff.c:0:0
#12 0x0000000002319c38 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x2319c38)
#13 0x00000000007890a2 llvm::runPassPipeline(llvm::StringRef, llvm::Module&,
llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*,
llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef,
llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind,
llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool)
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x7890a2)
#14 0x000000000079bd8d main
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x79bd8d)
#15 0x00007f153339a555 __libc_start_main (/lib64/libc.so.6+0x22555)
#16 0x00000000007844fc _start
(/repo/uabelho/master-github/llvm/build-all/bin/opt+0x7844fc)
Segmentation fault
Note that if we instead run
opt -passes='inliner-wrapper,invalidate<all>,module(default<O0>)' -S -o
/dev/null bbi-59330.ll
it does not crash, so perhaps something is funny with analyses after
inliner-wrapper.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211025/bf8420ce/attachment.html>
More information about the llvm-bugs
mailing list