<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: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 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>We’re using the LLVM 3.3 AArch64 disassembler in the following way. We have built LLVM 3.3 on Linux as a shared library; and have a main program that dynamically loads shared objects (.so libraries). The program is a simulator (though that shouldn’t be relevant to this question), and the shared objects it loads are electronic components that participate in the simulation. If the electronic component happens to be an ARM processor, it will make reference to the LLVM 3.3 shared library – specifically the AArch64 disassembler.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The problem is this. For some simulations, the LLVM shared library seems to take a segfault on exit. It runs correctly, but when the simulator finishes, it crashes on exit. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve traced this back to the LLVM library by running the following experiment – run a known “good” simulator build without any references to LLVM, and observed that it runs correctly. Now rebuild the known “good” shared objects (the electronic components in the simulation), and link to the LLVM shared library. Still no references in the code to LLVM, just linking to the LLVM shared library. This causes the LLVM shared library to be loaded when the simulation is run; and this causes the failure on exit.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Does anybody have any ideas as to why this might be happening?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:#7F7F7F'>Rick Sullivan</span></b><span style='font-size:10.0pt;color:#7F7F7F'>  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'>Carbon Design Systems<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'>125 Nagog Park Rd, Acton, MA 01720<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'>O: +1 (978) 264-7370  | M: +1 (508) 479-3845</span><span style='font-size:10.0pt;color:gray'> </span><span style='font-size:10.0pt;color:#7F7F7F'><o:p></o:p></span></p><p class=MsoNormal><a href="http://www.carbonipexchange.com/"><span style='color:windowtext;text-decoration:none'><img border=0 width=14 height=14 id="Picture_x0020_5" src="cid:image001.jpg@01CE7B16.AF255740" alt="cid:image011.jpg@01CCEFD9.90272D10"></span></a><a href="http://www.carbonipexchange.com/"><span style='color:windowtext;text-decoration:none'><img border=0 width=62 height=14 id="Picture_x0020_7" src="cid:image002.jpg@01CE7B16.AF255740" alt="Description: Description: C:\Users\Bill\Documents\Carbon Stuff\Graphics\ip exchange.jpg"></span></a><a href="http://www.carbondesignsystems.com/CMS/UI/Modules/BizBlogger/rss.aspx?tabid=588537&moduleid=1218634&maxcount=25&t=f1e8c820-d905-4d3b-884d-9baca8a2f8d0"><span style='color:windowtext;text-decoration:none'><img border=0 width=14 height=14 id="Picture_x0020_1" src="cid:image003.jpg@01CE7B16.AF255740" alt="Description: Description: Description: RSS Feed"></span></a><a href="http://www.twitter.com/CarbonDesignSys"><span style='color:windowtext;text-decoration:none'><img border=0 width=14 height=14 id="Picture_x0020_4" src="cid:image004.jpg@01CE7B16.AF255740" alt="Description: Description: Description: Description: Description: Description: Description: Description: http://t3.gstatic.com/images?q=tbn:ANd9GcStRvvpTvOTBaHEbWK10ebhakAoLprCynDPxG4iF7wezEIgldLuTg"></span></a><a href="http://www.linkedin.com/company/20768"><span style='color:windowtext;text-decoration:none'><img border=0 width=14 height=14 id="Picture_x0020_3" src="cid:image005.jpg@01CE7B16.AF255740" alt="cid:image015.jpg@01CCEFD9.90272D10"></span></a><a href="http://www.facebook.com/pages/Carbon-Design-Systems/121129244611961?sk=wall"><span style='color:windowtext;text-decoration:none'><img border=0 width=14 height=14 id="Picture_x0020_2" src="cid:image006.jpg@01CE7B16.AF255740" alt="cid:image016.jpg@01CCEFD9.90272D10"></span></a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>