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 <aalma...@nevada.unr.edu>
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
> <https://github.com/dyninst/dyninst/tree/master/dyninstAPI/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*
> *Personal Web*
> <https://wolfweb.unr.edu/homepage/aalmamun/abdullahwebsite/>
>
> *"In the middle of every difficulty lies opportunity"** - *Albert
> Einsteine
>
>
> On Sat, Jun 1, 2019 at 4:28 PM Xiaozhu Meng <mxz...@gmail.com> 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*
>>> *Personal Web*
>>> <https://wolfweb.unr.edu/homepage/aalmamun/abdullahwebsite/>
>>>
>>> *"In the middle of every difficulty lies opportunity"** - *Albert
>>> Einsteine
>>> _______________________________________________
>>> Dyninst-api mailing list
>>> Dyninst-api@cs.wisc.edu
>>> https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
>>
>>
_______________________________________________
Dyninst-api mailing list
Dyninst-api@cs.wisc.edu
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

Reply via email to