Hello, I am learning to write passes in LLVM and currently using LLVM 2.6. I followed the steps mentioned to write the helloworld pass and when i run it using opt, I get a Seg Fault. Not able to figure out why this is happening. It would be great if someone can point out where I am going wrong. Thanks. Hersh. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100130/4afb6005/attachment.html>
May be you need to debug your code and see. Rajika On Sun, Jan 31, 2010 at 9:48 AM, Hersh.S. Iyer <coolhersh at gmail.com> wrote:> Hello, > > I am learning to write passes in LLVM and currently using LLVM 2.6. I > followed the steps mentioned to write the helloworld pass and when i run it > using opt, I get a Seg Fault. Not able to figure out why this is happening. > It would be great if someone can point out where I am going wrong. > > Thanks. > > Hersh. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100131/d5977bc5/attachment.html>
Hi, It was all working fine and suddenly the segfault with a huge backtrace of unreadable characters came in. I am just surprised. Not even the Hello World pass is working. Please let me know if you have any idea why this is happening. -Hersh On Sun, Jan 31, 2010 at 6:44 AM, Rajika Kumarasiri <rajika at wso2.com> wrote:> May be you need to debug your code and see. > > Rajika > > On Sun, Jan 31, 2010 at 9:48 AM, Hersh.S. Iyer <coolhersh at gmail.com>wrote: > >> Hello, >> >> I am learning to write passes in LLVM and currently using LLVM 2.6. I >> followed the steps mentioned to write the helloworld pass and when i run it >> using opt, I get a Seg Fault. Not able to figure out why this is happening. >> It would be great if someone can point out where I am going wrong. >> >> Thanks. >> >> Hersh. >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >-- HSIyer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100131/8e0a5ab1/attachment.html>