<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I ran into a similar problem a while
ago; see <a class="moz-txt-link-freetext" href="https://reviews.llvm.org/D30107">https://reviews.llvm.org/D30107</a> and
<a class="moz-txt-link-freetext" href="https://reviews.llvm.org/D33515">https://reviews.llvm.org/D33515</a> . You get the unusual stack trace
because it's trying to call a destructor in shared library which
was already unloaded.<br>
<br>
I thought we had fixed that, but maybe not? Looking again, it
looks like the patch got reverted and I didn't notice.<br>
<br>
-Eli<br>
<br>
On 5/14/2018 10:18 PM, Simone Atzeni via llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG=OF1ixSG8MRdKbqvD5BpHRJN7LvWV=chSUZ0Cv6AWu4Avsqw@mail.gmail.com">
<div dir="ltr">This is the correct path to the pass: <a
href="https://github.com/PRUNERS/sword/blob/master/lib/Transforms/Instrumentation/InstrumentParallel.cpp"
moz-do-not-send="true">https://github.com/PRUNERS/sword/blob/master/lib/Transforms/Instrumentation/InstrumentParallel.cpp</a></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, May 14, 2018 at 10:06 PM,
Simone Atzeni <span dir="ltr"><<a
href="mailto:simone.at@gmail.com" target="_blank"
moz-do-not-send="true">simone.at@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">Hi all,
<div><br>
</div>
<div>I was porting my pass from LLVM 4.0 to 6.0 and I am
getting a segmentation fault.</div>
<div>I was able to obtain only the info below from GDB.</div>
<div><br>
</div>
<div>I tried to debug with some printf and the
runOnFunction runs correctly. <br>
</div>
<div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">Any
idea/suggestion about what is going on?</div>
<br>
</div>
<div>
<span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The
source code of the pass is here: <a
href="https://github.com/PRUNERS/sword/blob/master/lib/Sword.cpp"
target="_blank" moz-do-not-send="true">https://github.com/<wbr>PRUNERS/sword/blob/master/lib/<wbr>Sword.cpp</a></span>
<br>
</div>
<div><br>
</div>
<div>Any help is much appreciated,</div>
<div>Thanks!</div>
<div>Simone</div>
<div><br>
<div>
<div>#0 0x00007f1d93735170 in ?? ()</div>
<div>#1 0x00000000017d2b96 in
llvm::object_deleter<llvm::<wbr>SmallVector<std::pair<llvm::<wbr>PassManagerBuilder::<wbr>ExtensionPointTy,
std::function<void (llvm::PassManagerBuilder
const&, llvm::legacy::PassManagerBase&<wbr>)>
>, 8u> >::call(void*) ()</div>
<div>#2 0x0000000001b0e5e9 in llvm::llvm_shutdown()
()</div>
<div>#3 0x00000000008d8077 in main ()</div>
</div>
</div>
<div><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>