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


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

Thanks for your reply.
Here is all the information you asked for:

Intel compiler:Âintel/18.0.1.163Â

Command to build Dyninst:


step 1: mkdir build

step 2: cd build
step 3: cmake ../ -DCMAKE_INSTALL_PREFIX=../install -DBoost_ROOT_DIR=/global/u2/a/aalmamun/boost_1_67_0 -DBOOST_INCLUDEDIR=/global/u2/a/aalmamun/boost_1_67_0 -DLibElf_ROOT_DIR=../../elfutils -DTBB_ROOT_DIR=/opt/intel/compilers_and_libraries_2018.1.163/linux/tbb -DBUILD_SHARED_LIBS=ON

step 4: make && make install

Example used: https://github.com/dyninst/dyninst/tree/master/dyninstAPI/docÂ(In the pdf document, at page 67, section: 1.1 (first example in appendix)
I tried this example to instrument a very simple hello function (attached in this mail)


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 10:19 AM Xiaozhu Meng <mxz297@xxxxxxxxx> wrote:
I see. Thanks!

Can you tell us the specific intel compiler version, and your specific command for building Dyninst and the example? We will try to reproduce your problem.Â

On Mon, Jun 3, 2019 at 12:14 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
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

Attachment: Screen Shot 2019-06-01 at 4.39.27 PM.png
Description: PNG image

[← Prev in Thread] Current Thread [Next in Thread→]