<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Book Antiqua",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>Since updating to the LLVM v5.0 Final tag, I am seeing a crash when I enable ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>-g</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’.  With a Debug build this hits an assertion at line #923 in ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>lib/CodeGen/AsmPrinter/DwarfDebug.cpp</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New"'>assert(EndLabel && "Forgot label after instruction ending a range!");<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>The values of related variables at this time are:<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:27.0pt;margin-bottom:.0001pt'><span style='font-family:"Courier New";color:black'>'Begin' is:      DBG_VALUE %I23, %noreg, !"fp", <!345>; line no:381<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:27.0pt;margin-bottom:.0001pt'><span style='font-family:"Courier New";color:black'>'End' is:        DBG_VALUE %I19, 88, !"ap", <!345>; line no:381 indirect<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:27.0pt;margin-bottom:.0001pt'><span style='font-family:"Courier New";color:black'>'StartLabel' is: .Ltmp327<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'> ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>I19</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’ is the stack-pointer, and it is the expression ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>EndLabel = getLabelAfterInsn(End)</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’ that is returning ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>nullptr</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’.  This happens only when compiling ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>vfprintf.c</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’ or ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>vfwprintf.c</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’ from Newlib v2.5.0, and line #381 referenced is the location of the declaration of the function ‘</span><span style='font-size:12.0pt;font-family:"Courier New"'>_vfwprintf_r</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>’.  But our implementation does not directly do anything with Dwarf meta-data, so I don’t understand what we could be doing that would cause this.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>Has this been seen before, and any suggestions on how I should debug this?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'>            MartinO<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif'><o:p> </o:p></span></p></div></body></html>