<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">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">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">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>