<div dir="ltr">Hi Martin,<div><br></div><div>Please provide the full test logs, including how the tests were invoked.</div><div><br></div><div>/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 9:20 AM, Martin J. O'Riordan via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-IE" link="#0563C1" vlink="#954F72"><div class="m_-398017670036560883WordSection1"><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">I am investigating various failures when running the LibC++ test-suite (v4.0 branch, svn rev #294535), and a couple of them have me really stumped.  The following two tests were failing:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">language.support/support.<wbr>dynamic/new.delete/new.delete.<wbr>array/sized_delete_array14.<wbr>pass.cpp<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">language.support/support.<wbr>dynamic/new.delete/new.delete.<wbr>single/sized_delete14.pass.cpp<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">and I realised that I needed to add ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">-fsized-deallocation</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’.  This fixed the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">array</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ version, but curiously the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">single</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ version still fails, and none of the three versions of ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">operator delete</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ are being called.  We have not made any changes to the C++ front-end, so I don’t understand how our target might cause this.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">The other group of failures is a lot more strange, and I haven’t been able to track down that could be wrong.  Most of the tests in the following directories fail:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">containers/associative/map/<wbr>map.access<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">containers/associative/map/<wbr>map.cons<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">containers/associative/map/<wbr>map.modifiers<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">containers/associative/map/<wbr>map.ops</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;color:black">and:<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:"Courier New";color:black">containers/associative/set</span><span style="font-size:12.0pt;font-family:"Courier New";color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">and all in the same way.  In each case the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">map</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ or ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">set</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ is reporting ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">m.size()</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ as ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">2</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ instead of the expected value, and the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">assert</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ for this causes the test to fail.  The logic of what is happening disappears deeply into the template iterator expansions for the construction of the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">map</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ or ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">set</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ from the array of ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">pair</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’s provided to the constructor, and I am wondering is anybody has any tips on how I can approach identifying why these are breaking in this way?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">The only thing that I can think of in our target that might be anyway unusual, is that we have selected ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">IEEESingle</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ for both ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">float</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’ and ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">double</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’, and all of these examples involve ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black">pair<int, double></span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">’, but even so I can’t think how this would impact these tests.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">            MartinO<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><u></u> <u></u></span></p></div></div><br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>