<div dir="ltr">This seems to be working.  I put it up for review here, Tamas:<div><br></div><div><a href="http://reviews.llvm.org/D13777">http://reviews.llvm.org/D13777</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 9:03 AM, Todd Fiala <span dir="ltr"><<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm re-running the tests to make sure, but I think that fixed it.  I had always seen it at least once on test runs locally, but didn't see it on the last one.</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 8:10 AM, Todd Fiala <span dir="ltr"><<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay!  I'll give that a shot now and report back what I find.<div><br></div><div>Thanks, Tamas :-)</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 3:37 AM, Tamas Berghammer <span dir="ltr"><<a href="mailto:tberghammer@google.com" target="_blank">tberghammer@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Todd,<div><br></div><div>The 64 bit ID of a DIE is built up in the following way:</div><div>* The offset of the DIE is in the lower 32 bit</div><div>* If we are using SymbolFileDWARF then the higher 32 bit is the offset of the compile unit this DIE belongs to</div><div>* If we are using SymbolFileDWARFDwo then the higher 32 bit is the offset of the base compile unit in the parent SymbolFileDWARF</div><div>* If we are using SymbolFileDWARFDebugMap then the higher 32 bit is the ID of the SymbolFileDWARF this DIE belongs to</div><div>* If the higher 32 bit is 0 then that means that the source of the DIE isn't specified</div><div><br></div><div>The assert then tries to verify that one of the following conditions holds:</div><div>* The higher 32 bit of "id" is 0 what means that we don't have a symbol file pointer (AFAIK shouldn't happen) or we are coming from a SymbolFileDWARF</div><div>* The higher 32 bit of "cu_id" is 0 what means that the compile unit is at 0 offset what is the case for the single compile units in SymbolFileDWARFDwo (and I think for SymbolFileDWARFDebugMap)</div><div>* The higher 32 bit of "id" (what is the ID of the SymbolFileDWARF we are belonging to) matches with the higher 32 bit of "cu_id" (what is the offset of the compile unit in the base object file)</div><div><br></div><div>After thinking a bit more about the assert I think the problem is that the way I calculate cu_id is incompatible for the case when we are using SymbolFileDWARFDebugMap.</div><div><br></div><div>I think changing line 188 to the following should fix the issue:</div><div>lldb::user_id_t cu_id = m_cu->GetID()&0xffffffff00000000ull;<br></div><div><br></div><div>Please give it a try on OSX and let me know if it helps. I tested it on Linux and it isn't cause any regression there.</div><div><br></div><div>Thanks,</div><div>Tamas</div><div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 14, 2015 at 9:13 PM Todd Fiala <<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tamas,<div><br></div><div>There is an assert in DWARFDIE.cpp (lines 189 - 191) that we're hitting on the OS X side somewhat frequently nowadays:</div><div><br></div><div><p style="margin:0px;font-size:14px;line-height:normal;font-family:'Source Code Pro';color:rgb(79,129,135)"><span style="color:rgb(34,34,34)">            </span><span style="color:rgb(120,73,42)">assert</span><span style="color:rgb(34,34,34)"> ((id&</span><span style="color:rgb(39,42,216)">0xffffffff00000000</span><span style="color:rgb(34,34,34)">ull) == </span><span style="color:rgb(39,42,216)">0</span><span style="color:rgb(34,34,34)"> ||</span><br></p>
<p style="margin:0px;font-size:14px;line-height:normal;font-family:'Source Code Pro'">                    (cu_id&<span style="color:rgb(39,42,216)">0xffffffff00000000</span>ll) == <span style="color:rgb(39,42,216)">0</span> ||</p>
<p style="margin:0px;font-size:14px;line-height:normal;font-family:'Source Code Pro'">                    (id&<span style="color:rgb(39,42,216)">0xffffffff00000000</span>ull) == (cu_id&<span style="color:rgb(39,42,216)">0xffffffff00000000</span>ll));</p>
<p style="margin:0px;font-size:14px;line-height:normal;font-family:'Source Code Pro'"><br></p><p style="margin:0px;line-height:normal">It does not seem to get hit consistently.  We're trying to tease apart what it is trying to do.  It's a bit strange since it is saying that the assert should not fire if any one of three clauses is true.  But it's hard to figure out what exactly is going on there.</p><p style="margin:0px;line-height:normal"><br></p><p style="margin:0px;line-height:normal">Can you elucidate what this is trying to do?  Thanks!</p></div></div><div dir="ltr"><div><div><br></div>-- <br><div><div dir="ltr">-Todd</div></div>
</div></div></blockquote></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr">-Todd</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">-Todd</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>