[LLVMdev] Problem Using libLLVM-3.3.so

Rick Sullivan ricks at carbondesignsystems.com
Mon Jul 8 05:19:15 PDT 2013


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.

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.

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.

Does anybody have any ideas as to why this might be happening?

Rick Sullivan
Carbon Design Systems
125 Nagog Park Rd, Acton, MA 01720
O: +1 (978) 264-7370  | M: +1 (508) 479-3845
[cid:image001.jpg at 01CE7B16.AF255740]<http://www.carbonipexchange.com/>[cid:image002.jpg at 01CE7B16.AF255740]<http://www.carbonipexchange.com/>[cid:image003.jpg at 01CE7B16.AF255740]<http://www.carbondesignsystems.com/CMS/UI/Modules/BizBlogger/rss.aspx?tabid=588537&moduleid=1218634&maxcount=25&t=f1e8c820-d905-4d3b-884d-9baca8a2f8d0>[cid:image004.jpg at 01CE7B16.AF255740]<http://www.twitter.com/CarbonDesignSys>[cid:image005.jpg at 01CE7B16.AF255740]<http://www.linkedin.com/company/20768>[cid:image006.jpg at 01CE7B16.AF255740]<http://www.facebook.com/pages/Carbon-Design-Systems/121129244611961?sk=wall>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 768 bytes
Desc: image001.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 976 bytes
Desc: image002.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 731 bytes
Desc: image003.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 709 bytes
Desc: image004.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 757 bytes
Desc: image005.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 728 bytes
Desc: image006.jpg
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130708/4474524d/attachment-0005.jpg>


More information about the llvm-dev mailing list