<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">https://github.com/PRUNERS/sword/blob/master/lib/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::SmallVector<std::pair<llvm::PassManagerBuilder::ExtensionPointTy, std::function<void (llvm::PassManagerBuilder const&, llvm::legacy::PassManagerBase&)> >, 8u> >::call(void*) ()</div><div>#2  0x0000000001b0e5e9 in llvm::llvm_shutdown() ()</div><div>#3  0x00000000008d8077 in main ()</div></div></div><div><br></div></div>