[LLVMbugs] [Bug 19809] New: Assertion `(Encoding == dwarf::DW_ATE_unsigned || Encoding == dwarf::DW_ATE_unsigned_char || Encoding == dwarf::DW_ATE_signed || Encoding == dwarf::DW_ATE_signed_char || Encoding == dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean)...
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 20 17:06:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19809
Bug ID: 19809
Summary: Assertion `(Encoding == dwarf::DW_ATE_unsigned ||
Encoding == dwarf::DW_ATE_unsigned_char || Encoding ==
dwarf::DW_ATE_signed || Encoding ==
dwarf::DW_ATE_signed_char || Encoding ==
dwarf::DW_ATE_UTF || Encoding ==
dwarf::DW_ATE_boolean)...
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: DebugInfo
Assignee: unassignedbugs at nondot.org
Reporter: mcrosier at codeaurora.org
CC: aprantl at apple.com, echristo at gmail.com,
llvmbugs at cs.uiuc.edu, mren at apple.com,
t.p.northover at gmail.com
Classification: Unclassified
Test case:
template <class> class t {
public:
double i;
};
int main() {
double t<double>::*a = &t<double>::i;
}
Reproduce with:
clang++ -cc1 -triple arm64-none-linux-gnu -emit-obj -disable-free
-main-file-name foo.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu
cortex-a53 -target-feature +neon -target-abi aapcs -target-cpu cortex-a53 -g -D
"__arm__" -D "__extern_always_inline=inline" -O2 -trigraphs -fdeprecated-macro
-ferror-limit 19 -fmessage-length 270 -mstackrealign -fno-signed-char
-fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -x c++ foo.ii
Backtrace:
clang-3.5: /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:768: bool
isUnsignedDIType(llvm::DwarfDebug*, llvm::DIType): Assertion `(Encoding ==
dwarf::DW_ATE_unsigned || Encoding == dwarf::DW_ATE_unsigned_char || Encoding
== dwarf::DW_ATE_signed || Encoding == dwarf::DW_ATE_signed_char || Encoding ==
dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean) && "Unsupported
encoding"' failed.
0 clang-3.5 0x0000000000d01092 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang-3.5 0x0000000000d00cb4
2 libpthread.so.0 0x00007ffabe1aa8f0
3 libc.so.6 0x00007ffabd48ba75 gsignal + 53
4 libc.so.6 0x00007ffabd48f5c0 abort + 384
5 libc.so.6 0x00007ffabd484941 __assert_fail + 241
6 clang-3.5 0x0000000000f4197a
7 clang-3.5 0x0000000000f41892
8 clang-3.5 0x0000000000f419a2
llvm::DwarfUnit::addConstantValue(llvm::DIE&, llvm::MachineOperand const&,
llvm::DIType) + 34
9 clang-3.5 0x0000000000f456f3
llvm::DwarfUnit::constructVariableDIEImpl(llvm::DbgVariable const&,
llvm::AbstractOrInlined) + 851
10 clang-3.5 0x0000000000f45771
llvm::DwarfUnit::constructVariableDIE(llvm::DbgVariable&,
llvm::AbstractOrInlined) + 17
11 clang-3.5 0x0000000000f2b2bd
llvm::DwarfDebug::createScopeChildrenDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*, llvm::SmallVectorImpl<std::unique_ptr<llvm::DIE,
std::default_delete<llvm::DIE> > >&) + 461
12 clang-3.5 0x0000000000f2b6ba
llvm::DwarfDebug::createAndAddScopeChildren(llvm::DwarfCompileUnit&,
llvm::LexicalScope*, llvm::DIE&) + 58
13 clang-3.5 0x0000000000f2bc6d
llvm::DwarfDebug::constructSubprogramScopeDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*) + 125
14 clang-3.5 0x0000000000f36729
15 clang-3.5 0x0000000000f1a650 llvm::AsmPrinter::EmitFunctionBody() +
4528
16 clang-3.5 0x00000000007edd7b
17 clang-3.5 0x0000000000a7b80f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
18 clang-3.5 0x0000000000a7bceb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
19 clang-3.5 0x0000000000a7c02d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
20 clang-3.5 0x00000000012f8cde
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2990
21 clang-3.5 0x00000000012f378f
22 clang-3.5 0x000000000175689b clang::ParseAST(clang::Sema&, bool, bool)
+ 507
23 clang-3.5 0x00000000012f433b clang::CodeGenAction::ExecuteAction() +
59
24 clang-3.5 0x0000000000e5b676 clang::FrontendAction::Execute() + 150
25 clang-3.5 0x0000000000e3dd20
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
26 clang-3.5 0x0000000000ed8611
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1921
27 clang-3.5 0x000000000064f2f8 cc1_main(char const**, char const**, char
const*, void*) + 1016
28 clang-3.5 0x000000000064bab3 main + 755
29 libc.so.6 0x00007ffabd476c4d __libc_start_main + 253
30 clang-3.5 0x000000000064a699
Stack dump:
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'foo.ii'.
4. Running pass 'ARM64 Assembly Printer' on function '@main'
--
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/20140521/a2c6fb60/attachment.html>
More information about the llvm-bugs
mailing list