<div dir="ltr">Ah I see what happened.  My original e-mail was delayed because it was too large but it was recently accepted by a moderator.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 7, 2019 at 1:19 PM Ben Ruthig <<a href="mailto:bruthig@google.com">bruthig@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey Raphael,<div><br></div><div>Yes, you did advise me to drop a D->dumpColor() call in to getASTRecordLayout().  For frustrating reasons I still haven't been able to capture those logs but when I do I will report back.</div><div><br></div><div>Thanks so much for your help and quick response!</div><div><br></div><div>Ben</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 7, 2019 at 12:56 PM Raphael Isemann <<a href="mailto:teemperor@gmail.com" target="_blank">teemperor@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ben,<br>
<br>
I think I already answered this last week:<br>
<a href="http://lists.llvm.org/pipermail/lldb-dev/2019-February/014789.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/lldb-dev/2019-February/014789.html</a><br>
<br>
I don't think you'll get an answer here without posting the<br>
problematic source or giving any more information as I described in my<br>
mail.<br>
<br>
Cheers,<br>
- Raphael<br>
<br>
Am Do., 7. März 2019 um 18:13 Uhr schrieb Ben Ruthig via lldb-dev<br>
<<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>>:<br>
><br>
> Hello all,<br>
><br>
> I am currently investigating an issue where LLDB is crashing due to a stack overflow when attempting to evaluate an expression.  I have seen the same issue in 6.0.1 and have reproduced it in 7.0.1.  Any help to diagnose and fix would be greatly appreciated as I am trying to meet a release deadline early next week!<br>
><br>
> The facts:<br>
> - The expression being evaluated is not a valid expression in the C++ domain. For example the expression is a datatype like 'Foobar'.  (For reasons unexplained I am constrained to supporting this use case.)<br>
> - The crash occurs when using the C++ LLDB API but not when trying to evaluate the expression via the LLDB shell or the LLDB Python script shell.  However, when doing 'expr Foobar' there is no output and the operation is completely silent.  It is similar when trying to do 'lldb.frame.EvaluateExpression("Foobar")' in the Python shell as well.  I would expect to get some error output or an SbValue in an error state but no such luck.<br>
> - I was able to capture a stack trace (attached) and it seems to be a recursive loop bottoming out.  For brevity two 'loops' of stacktrace are included here:<br>
><br>
> 3387.      liblldb.dll!clang::ASTContext::getASTRecordLayout(const clang::RecordDecl * D) Line 2965    C++<br>
> 3388.      liblldb.dll!`anonymous namespace'::EmptySubobjectMap::ComputeEmptySubobjectSizes() Line 216    C++<br>
> 3389.      liblldb.dll!`anonymous namespace'::EmptySubobjectMap::EmptySubobjectMap(const clang::ASTContext & Context, const clang::CXXRecordDecl * Class) Line 172    C++<br>
> 3390.      liblldb.dll!clang::ASTContext::getASTRecordLayout(const clang::RecordDecl * D) Line 2965    C++<br>
> 3391.      liblldb.dll!`anonymous namespace'::EmptySubobjectMap::ComputeEmptySubobjectSizes() Line 216    C++<br>
> 3392.      liblldb.dll!`anonymous namespace'::EmptySubobjectMap::EmptySubobjectMap(const clang::ASTContext & Context, const clang::CXXRecordDecl * Class) Line 172    C++<br>
> 3393.      liblldb.dll!clang::ASTContext::getASTRecordLayout(const clang::RecordDecl * D) Line 2965    C++<br>
><br>
> Help please :S<br>
><br>
> Thanks,<br>
> Ben<br>
><br>
><br>
> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7047464695172803848gmail_signature"><div dir="ltr">"Sometimes I've believed as many as six impossible things before breakfast" - <font color="#999999">Alice in Wonderland</font></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">"Sometimes I've believed as many as six impossible things before breakfast" - <font color="#999999">Alice in Wonderland</font></div></div>