Re: [DynInst_API:] Segmentation fault error with dyninst 10.1


Date: Mon, 03 Jun 2019 09:17:50 -0700
From: Abdullah Al-Mamun <aalmamun@xxxxxxxxxxxxxx>
Subject: Re: [DynInst_API:] Segmentation fault error with dyninst 10.1
Hi,

Thanks for your reply.
I also thought so at first. Then I double checked. Yes, I used the same compiler both for Dyninst and the example.

Best regards,
Abdullah Al-Mamun

PhD Fellow, Computer Science & Engg, University of Nevada, Reno
Joint MSc. (EUMI Double Degree),Computer Science, Univesity of Trento, Italy & RWTH Aachen University,GermanyÂ
Contact: +1(775)-3575433

"In the middle of every difficulty lies opportunity" - Albert Einsteine


On Mon, Jun 3, 2019 at 6:24 AM Xiaozhu Meng <mxz297@xxxxxxxxx> wrote:
Hi,

It looks like that you compiled the example with the intel compiler. Do you compile Dyninst with the same intel compiler? Different compilers may generate ABI incompatible libraries and executable.Â

Thanks,

--Xiaozhu

On Sat, Jun 1, 2019 at 6:52 PM Abdullah Al-Mamun <aalmamun@xxxxxxxxxxxxxx> wrote:
HiÂXiaozhu,

Thank you so much for your response.

I just ran the gdb with the example executable (a.out), which is basically the first example shown on Appendix of the Dyninst-10.1 docÂand found the following error (attached with this email).
I also attached the screenshot of the example code that I used from the dyninst-10.1 doc.


Best regards,
Abdullah Al-Mamun

PhD Fellow, Computer Science & Engg, University of Nevada, Reno
Joint MSc. (EUMI Double Degree),Computer Science, Univesity of Trento, Italy & RWTH Aachen University,GermanyÂ
Contact: +1(775)-3575433

"In the middle of every difficulty lies opportunity" - Albert Einsteine


On Sat, Jun 1, 2019 at 4:28 PM Xiaozhu Meng <mxz297@xxxxxxxxx> wrote:

I get segmentation fault error when I compile the example.

Do you really mean you get a segfault when you compile the example?

If you encountered a segfault when you "run" the executable, can you use GDB to collect a stack trace?Â

I am trying to instrument a very simple hello.cc file that has a simple function named "hello" which just prints "hello world".Â

Could you please point any direction to get rid of this error?
I am using dyninst 10.1 with boost 1.67.
Any kind of help isÂappreciated.

Best regards,
Abdullah Al-Mamun

PhD Fellow, Computer Science & Engg, University of Nevada, Reno
Joint MSc. (EUMI Double Degree),Computer Science, Univesity of Trento, Italy & RWTH Aachen University,GermanyÂ
Contact: +1(775)-3575433

"In the middle of every difficulty lies opportunity" - Albert Einsteine
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]