<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - test causes assertion failure on FreeBSD in ASTContext::getASTRecordLayout"
href="http://llvm.org/bugs/show_bug.cgi?id=17231">17231</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>test causes assertion failure on FreeBSD in ASTContext::getASTRecordLayout
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>python dotest.py --executable ../../../build-nodebug/bin/lldb -C /usr/bin/clang
-t -p TestDataFormatterLibccMap
runCmd: continue
output: Process 90873 resuming
Process 90873 stopped
Assertion failed: (D && "Cannot get layout of forward declarations!"), function
getASTRecordLayout, file ../tools/clang/lib/AST/RecordLayoutBuilder.cpp, line
2355.
zsh: abort (core dumped) ( cd ../tools/lldb/test && python dotest.py
--executable -C /usr/bin/clang -)
(lldb) bt
* thread #1: tid = 0, 0x0000000801006cac libc.so.7`_thr_kill + 12 at
thr_kill.S:3, name = 'python2.7', stop reason = signal SIGABRT
frame #0: 0x0000000801006cac libc.so.7`_thr_kill + 12 at thr_kill.S:3
frame #1: 0x00000008010a739c libc.so.7`abort + 76 at abort.c:65
frame #2: 0x000000080108a991 libc.so.7`__assert(func=<unavailable>,
file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) + 81 at
assert.c:54
frame #3: 0x00000008056403a5
_lldb.so`clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const
+ 197
frame #4: 0x000000080564bf91
_lldb.so`_GLOBAL__N_1::EmptySubobjectMap::ComputeEmptySubobjectSizes(void) +
529
frame #5: 0x000000080564bd6d
_lldb.so`_GLOBAL__N_1::EmptySubobjectMap::EmptySubobjectMap(clang::ASTContext
const&, _GLOBAL__N_1::EmptySubobjectMap::EmptySubobjectMap::CXXRecordDecl
const*) + 125
frame #6: 0x000000080564049f
_lldb.so`clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const
+ 447
frame #7: 0x000000080564bf91
_lldb.so`_GLOBAL__N_1::EmptySubobjectMap::ComputeEmptySubobjectSizes(void) +
529
frame #8: 0x000000080564bd6d
_lldb.so`_GLOBAL__N_1::EmptySubobjectMap::EmptySubobjectMap(clang::ASTContext
const&, _GLOBAL__N_1::EmptySubobjectMap::EmptySubobjectMap::CXXRecordDecl
const*) + 125
frame #9: 0x000000080564049f
_lldb.so`clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const
+ 447
frame #10: 0x00000008053caa53
_lldb.so`clang::ASTContext::getTypeInfoImpl(clang::Type const*) const + 3507
frame #11: 0x00000008053c9b42
_lldb.so`clang::ASTContext::getTypeInfo(clang::Type const*) const + 274
frame #12: 0x0000000804c917df
_lldb.so`clang::ASTContext::getTypeInfo(clang::QualType) const + 63
frame #13: 0x0000000804c8e2ac
_lldb.so`clang::ASTContext::getTypeSize(clang::QualType) const + 44
frame #14: 0x0000000804f2c58c
_lldb.so`lldb_private::ClangASTType::GetBitSize(void) const + 76
frame #15: 0x0000000804f2baa5
_lldb.so`lldb_private::ClangASTType::GetByteSize(void) const + 21
frame #16: 0x0000000804f32cc7
_lldb.so`lldb_private::ClangASTType::GetChildClangTypeAtIndex(lldb_private::ExecutionContext*,
char const*, unsigned long, bool, bool, bool, std::__1::basic_string<char, char
const*::char_traits<char>, char const*::allocator<char> >&, unsigned int&,
int&, std::__1::basic_string<char, char const*::char_traits<char>, char
const*::allocator<char> >&, std::__1::basic_string<char, char
const*::char_traits<char>, char const*::allocator<char> >&, bool&, int&) const
+ 8295
frame #17: 0x0000000804d62476
_lldb.so`lldb_private::ValueObject::Dereference(lldb_private::Error&) + 710
frame #18: 0x0000000804c070da
_lldb.so`lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd::GetDataType(void)
+ 186
frame #19: 0x0000000804c0770c
_lldb.so`lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd::GetChildAtIndex(unsigned
long) + 956
frame #20: 0x0000000804d77330
_lldb.so`lldb_private::ValueObjectSynthetic::GetChildAtIndex(unsigned long,
bool) + 768
frame #21: 0x0000000804d619e8
_lldb.so`_ZL20DumpValueObject_ImplRN12lldb_private6StreamEPNS_11ValueObjectERKNS2_22DumpValueObjectOptionsEjj
+ 5416
frame #22: 0x0000000804d60441
_lldb.so`lldb_private::ValueObject::DumpValueObject(lldb_private::Stream&,
lldb_private::ValueObject*, lldb_private::ValueObject::DumpValueObjectOptions
const&) + 49
frame #23: 0x00000008052d80b2
_lldb.so`CommandObjectFrameVariable::DoExecute(lldb_private::Args&,
CommandObjectFrameVariable::DoExecute::CommandReturnObject&) + 3234
frame #24: 0x0000000804e95ed0
_lldb.so`lldb_private::CommandObjectParsed::Execute(char const*,
lldb_private::CommandReturnObject&) + 528
frame #25: 0x0000000804e788ea
_lldb.so`lldb_private::CommandInterpreter::HandleCommand(char const*,
lldb_private::LazyBool, lldb_private::CommandReturnObject&,
lldb_private::ExecutionContext*, bool, bool) + 21546
frame #26: 0x0000000804b26684
_lldb.so`lldb::SBCommandInterpreter::HandleCommand(char const*,
lldb::SBCommandReturnObject&, bool) + 292
frame #27: 0x0000000804b1766f
_lldb.so`_wrap_SBCommandInterpreter_HandleCommand__SWIG_0(_object*, _object*) +
831
frame #28: 0x0000000804a780f0
_lldb.so`_wrap_SBCommandInterpreter_HandleCommand(_object*, _object*) + 864
frame #29: 0x0000000000485624 python2.7`PyEval_EvalFrameEx + 18628
frame #30: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #31: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #32: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #33: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #34: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #35: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #36: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #37: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #38: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #39: 0x00000000004d7ba9 python2.7
frame #40: 0x000000000041904d python2.7`PyObject_Call + 93
frame #41: 0x0000000000482aa7 python2.7`PyEval_EvalFrameEx + 7495
frame #42: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #43: 0x00000000004d7ba9 python2.7
frame #44: 0x000000000041904d python2.7`PyObject_Call + 93
frame #45: 0x0000000000482aa7 python2.7`PyEval_EvalFrameEx + 7495
frame #46: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #47: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #48: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #49: 0x00000000004d7ba9 python2.7
frame #50: 0x000000000041904d python2.7`PyObject_Call + 93
frame #51: 0x0000000000482aa7 python2.7`PyEval_EvalFrameEx + 7495
frame #52: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #53: 0x00000000004d7ba9 python2.7
frame #54: 0x000000000041904d python2.7`PyObject_Call + 93
frame #55: 0x000000000041e9cd python2.7
frame #56: 0x000000000041904d python2.7`PyObject_Call + 93
frame #57: 0x000000000045bd56 python2.7
frame #58: 0x000000000041904d python2.7`PyObject_Call + 93
frame #59: 0x00000000004837e4 python2.7`PyEval_EvalFrameEx + 10884
frame #60: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #61: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #62: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #63: 0x0000000000485862 python2.7`PyEval_EvalFrameEx + 19202
frame #64: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #65: 0x00000000004d7ba9 python2.7
frame #66: 0x000000000041904d python2.7`PyObject_Call + 93
frame #67: 0x0000000000482aa7 python2.7`PyEval_EvalFrameEx + 7495
frame #68: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #69: 0x00000000004d7ba9 python2.7
frame #70: 0x000000000041904d python2.7`PyObject_Call + 93
frame #71: 0x000000000041e9cd python2.7
frame #72: 0x000000000041904d python2.7`PyObject_Call + 93
frame #73: 0x000000000045bd56 python2.7
frame #74: 0x000000000041904d python2.7`PyObject_Call + 93
frame #75: 0x00000000004837e4 python2.7`PyEval_EvalFrameEx + 10884
frame #76: 0x00000000004863c7 python2.7`PyEval_EvalFrameEx + 22119
frame #77: 0x0000000000487380 python2.7`PyEval_EvalCodeEx + 2096
frame #78: 0x0000000000487472 python2.7`PyEval_EvalCode + 50
frame #79: 0x00000000004a1582 python2.7
frame #80: 0x00000000004a1656 python2.7`PyRun_FileExFlags + 150
frame #81: 0x00000000004a2b8b python2.7`PyRun_SimpleFileExFlags + 475
frame #82: 0x0000000000414dc2 python2.7`Py_Main + 2578
frame #83: 0x000000000041408a python2.7`main + 122
frame #84: 0x0000000000413f8e python2.7`_start + 142</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>