[llvm-bugs] [Bug 32792] New: Assertion `LocationKind == Implicit || LocationKind == Unknown' failed
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 25 10:36:56 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32792
Bug ID: 32792
Summary: Assertion `LocationKind == Implicit || LocationKind ==
Unknown' failed
Product: new-bugs
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hans at chromium.org
CC: llvm-bugs at lists.llvm.org
Created attachment 18350
--> https://bugs.llvm.org/attachment.cgi?id=18350&action=edit
preprocessed source
With r301330:
bin/clang -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelocation-model
pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.3
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2
-debugger-tuning=lldb -stdlib=libc++ -O3 -std=c++11 -fdeprecated-macro
-fvisibility hidden -fvisibility-inlines-hidden -stack-protector 2 -fblocks
-fno-rtti -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature
-fmax-type-align=16 -vectorize-loops -vectorize-slp -x c++ /tmp/a.ii -w
clang: ../lib/CodeGen/AsmPrinter/DwarfExpression.cpp:171: void
llvm::DwarfExpression::addUnsignedConstant(uint64_t): Assertion `LocationKind
== Implicit || LocationKind == Unknown' failed.
#0 0x0000000001f1485a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(bin/clang+0x1f1485a)
#1 0x0000000001f1286e llvm::sys::RunSignalHandlers() (bin/clang+0x1f1286e)
#2 0x0000000001f129d2 SignalHandler(int) (bin/clang+0x1f129d2)
#3 0x00007f9390151330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007f938ef42c37 gsignal
/build/eglibc-MjiXCM/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f938ef46028 abort
/build/eglibc-MjiXCM/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f938ef3bbf6 __assert_fail_base
/build/eglibc-MjiXCM/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f938ef3bca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00000000024c6c22 (bin/clang+0x24c6c22)
#9 0x00000000024b286d emitDebugLocValue(llvm::AsmPrinter const&,
llvm::DIBasicType const*, llvm::ByteStreamer&, llvm::DebugLocEntry::Value
const&, llvm::DwarfExpression&) [clone .isra.697] (bin/clang+0x24b286d)
#10 0x00000000024bab53 llvm::DebugLocEntry::finalize(llvm::AsmPrinter const&,
llvm::DebugLocStream::ListBuilder&, llvm::DIBasicType const*)
(bin/clang+0x24bab53)
#11 0x00000000024c10ae
llvm::DwarfDebug::collectVariableInfo(llvm::DwarfCompileUnit&,
llvm::DISubprogram const*, llvm::DenseSet<std::pair<llvm::DILocalVariable
const*, llvm::DILocation const*>,
llvm::DenseMapInfo<std::pair<llvm::DILocalVariable const*, llvm::DILocation
const*> > >&) (bin/clang+0x24c10ae)
#12 0x00000000024c15ac llvm::DwarfDebug::endFunctionImpl(llvm::MachineFunction
const*) (bin/clang+0x24c15ac)
#13 0x00000000024f4da8
llvm::DebugHandlerBase::endFunction(llvm::MachineFunction const*)
(bin/clang+0x24f4da8)
#14 0x00000000024a31e0 llvm::AsmPrinter::EmitFunctionBody()
(bin/clang+0x24a31e0)
#15 0x00000000013e8c00
llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(bin/clang+0x13e8c00)
#16 0x00000000018249a5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (bin/clang+0x18249a5)
#17 0x0000000001af36b3 llvm::FPPassManager::runOnFunction(llvm::Function&)
(bin/clang+0x1af36b3)
#18 0x0000000001af375c llvm::FPPassManager::runOnModule(llvm::Module&)
(bin/clang+0x1af375c)
#19 0x0000000001af44bf llvm::legacy::PassManagerImpl::run(llvm::Module&)
(bin/clang+0x1af44bf)
#20 0x000000000209700e (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) (bin/clang+0x209700e)
#21 0x0000000002098381 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, 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> >) (bin/clang+0x2098381)
#22 0x0000000002707c3b
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(bin/clang+0x2707c3b)
#23 0x0000000002aeca12 clang::ParseAST(clang::Sema&, bool, bool)
(bin/clang+0x2aeca12)
#24 0x000000000270731a clang::CodeGenAction::ExecuteAction()
(bin/clang+0x270731a)
#25 0x000000000240b9a6 clang::FrontendAction::Execute() (bin/clang+0x240b9a6)
#26 0x00000000023e6206
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(bin/clang+0x23e6206)
#27 0x0000000002496594
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(bin/clang+0x2496594)
#28 0x0000000000b35968 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (bin/clang+0xb35968)
#29 0x0000000000ad65d3 main (bin/clang+0xad65d3)
#30 0x00007f938ef2df45 __libc_start_main
/build/eglibc-MjiXCM/eglibc-2.19/csu/libc-start.c:321:0
#31 0x0000000000b31249 _start (bin/clang+0xb31249)
Running creduce now.
--
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/20170425/f9758347/attachment.html>
More information about the llvm-bugs
mailing list