[llvm-bugs] [Bug 30468] New: Assertion `!NodePtr->isKnownSentinel()' failed. in SROA
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 20 14:50:17 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30468
Bug ID: 30468
Summary: Assertion `!NodePtr->isKnownSentinel()' failed. in
SROA
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hans at chromium.org
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
I hit this building Chrome, but none of our bots are complaining about it so I
must have accidentally hit some configuration that doesn't get much testing.
creduced:
namespace win {
class PEImage {
public:
PEImage(int);
void GetNTHeaders();
};
}
int *AnsiToUnicode(void *) {
int module;
int *out_name;
__try {
win::PEImage pe(module);
char *name;
out_name = AnsiToUnicode(name);
pe.GetNTHeaders();
} __except (1) {
}
return out_name;
}
clang -cc1 -triple x86_64-pc-windows-msvc19.0.0 -emit-obj -target-cpu x86-64
-debug-info-kind=limited -Os -fms-compatibility a.ii
clang: ../include/llvm/ADT/ilist_iterator.h:126: llvm::ilist_iterator<OptionsT,
IsReverse, IsConst>::reference llvm::ilist_iterator<OptionsT, IsReverse,
IsConst>::operator*() const [with OptionsT =
llvm::ilist_detail::node_options<llvm::Instruction, true, false, void>; bool
IsReverse = false; bool IsConst = false; llvm::ilist_iterator<OptionsT,
IsReverse, IsConst>::reference = llvm::Instruction&]: Assertion
`!NodePtr->isKnownSentinel()' failed.
#0 0x0000000001cb1dc5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/work/llvm/build.release/bin/clang+0x1cb1dc5)
#1 0x0000000001cafd6e llvm::sys::RunSignalHandlers()
(/work/llvm/build.release/bin/clang+0x1cafd6e)
#2 0x0000000001cafed2 SignalHandler(int)
(/work/llvm/build.release/bin/clang+0x1cafed2)
#3 0x00007fdb0070d330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007fdaff501c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007fdaff505028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007fdaff4fabf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x00007fdaff4faca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00000000007d1ea8 llvm::cast_retty<llvm::Instruction, llvm::Value
const*>::ret_type llvm::cast<llvm::Instruction, llvm::Value const>(llvm::Value
const*) [clone .part.210] (/work/llvm/build.release/bin/clang+0x7d1ea8)
#9 0x00000000011c7c93 (/work/llvm/build.release/bin/clang+0x11c7c93)
#10 0x0000000001d011fa
llvm::ConvertDebugDeclareToDebugValue(llvm::DbgDeclareInst*, llvm::PHINode*,
llvm::DIBuilder&) (/work/llvm/build.release/bin/clang+0x1d011fa)
#11 0x0000000001d3c31d (anonymous
namespace)::PromoteMem2Reg::RenamePass(llvm::BasicBlock*, llvm::BasicBlock*,
std::vector<llvm::Value*, std::allocator<llvm::Value*> >&,
std::vector<(anonymous namespace)::RenamePassData, std::allocator<(anonymous
namespace)::RenamePassData> >&) (/work/llvm/build.release/bin/clang+0x1d3c31d)
#12 0x0000000001d3db10 (anonymous namespace)::PromoteMem2Reg::run()
(/work/llvm/build.release/bin/clang+0x1d3db10)
#13 0x0000000001d4018d llvm::PromoteMemToReg(llvm::ArrayRef<llvm::AllocaInst*>,
llvm::DominatorTree&, llvm::AliasSetTracker*, llvm::AssumptionCache*)
(/work/llvm/build.release/bin/clang+0x1d4018d)
#14 0x0000000001c0063b llvm::SROA::promoteAllocas(llvm::Function&)
(/work/llvm/build.release/bin/clang+0x1c0063b)
#15 0x0000000001c15fbc llvm::SROA::runImpl(llvm::Function&,
llvm::DominatorTree&, llvm::AssumptionCache&)
(/work/llvm/build.release/bin/clang+0x1c15fbc)
#16 0x0000000001c1662d
llvm::sroa::SROALegacyPass::runOnFunction(llvm::Function&)
(/work/llvm/build.release/bin/clang+0x1c1662d)
#17 0x000000000192bda3 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/work/llvm/build.release/bin/clang+0x192bda3)
#18 0x000000000192bf07
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&)
(/work/llvm/build.release/bin/clang+0x192bf07)
#19 0x000000000192bfd4 llvm::legacy::FunctionPassManager::run(llvm::Function&)
(/work/llvm/build.release/bin/clang+0x192bfd4)
#20 0x0000000001e12312 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/work/llvm/build.release/bin/clang+0x1e12312)
#21 0x0000000002414598
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/work/llvm/build.release/bin/clang+0x2414598)
#22 0x00000000027eae32 clang::ParseAST(clang::Sema&, bool, bool)
(/work/llvm/build.release/bin/clang+0x27eae32)
#23 0x000000000241498e clang::CodeGenAction::ExecuteAction()
(/work/llvm/build.release/bin/clang+0x241498e)
#24 0x0000000002127496 clang::FrontendAction::Execute()
(/work/llvm/build.release/bin/clang+0x2127496)
#25 0x0000000002101d6e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/work/llvm/build.release/bin/clang+0x2101d6e)
#26 0x00000000021aef06
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/work/llvm/build.release/bin/clang+0x21aef06)
#27 0x0000000000a93398 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/work/llvm/build.release/bin/clang+0xa93398)
#28 0x0000000000a3bd91 main (/work/llvm/build.release/bin/clang+0xa3bd91)
#29 0x00007fdaff4ecf45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#30 0x0000000000a8f3be _start (/work/llvm/build.release/bin/clang+0xa8f3be)
Stack dump:
0. Program arguments: /work/llvm/build.release/bin/clang -cc1 -triple
x86_64-pc-windows-msvc19.0.0 -emit-obj -target-cpu x86-64
-debug-info-kind=limited -Os -fms-compatibility a.ii
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'SROA' on function '@"\01?AnsiToUnicode@@YAPEAHPEAX at Z"'
Aborted (core dumped)
--
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/20160920/10e754f1/attachment.html>
More information about the llvm-bugs
mailing list