<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash with opt -passes='inliner-wrapper,module(default<O0>)'"
href="https://bugs.llvm.org/show_bug.cgi?id=52292">52292</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash with opt -passes='inliner-wrapper,module(default<O0>)'
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Interprocedural Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25389" name="attach_25389" title="bbi-59330.ll reproducer">attachment 25389</a> <a href="attachment.cgi?id=25389&action=edit" title="bbi-59330.ll reproducer">[details]</a></span>
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 <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>