eProsima / Micro-XRCE-DDS

An XRCE DDS implementation. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
156 stars 17 forks source link

Segmentation fault (core dumped) #80

Closed vibnwis closed 3 years ago

vibnwis commented 3 years ago

Using the example code of PublishHelloWorld, I encountered the above errors.

Basically, I compiled it using the command below. In the example/PublishHelloWorld folder, I typed.

gcc main.c HelloWorld.c -o HelloWorld -lmicrocdr -lmicroxrcedds_client

and run it by

./HelloWorld 127.0.0.1 2019

Any comments or suggestions are appreciated.

Thank you V

pablogs9 commented 3 years ago

Not able to reproduce: https://asciinema.org/a/3dXkrqEQP4bAMnzeYzgQTMx50

Reopen if you can provide a reproducible issue.

vibnwis commented 3 years ago

I followed the steps in the video. However, still ended with a segmentation fault. See Screenshot from 2021-04-07 21-57-27

vibnwis commented 3 years ago

As I keep installing micro-xrce-dds-client through the make install, I was wondering if it still gets the older version of the library?

pablogs9 commented 3 years ago

Probably it is using an old version of the headers files, remove all references to XRCE-DDS Client in /usr

vibnwis commented 3 years ago

Check out the screenshot attached. Any unusual thingy? Which one should be removed? Screenshot from 2021-04-07 22-15-28

vibnwis commented 3 years ago

Here is the symbolic link of wiki-ros@wikiros-NUC8i5BEH:/$ ls -l /usr/local/lib/libmicroxrcedds_client.so lrwxrwxrwx 1 root root 29 Dec 3 01:12 /usr/local/lib/libmicroxrcedds_client.so -> libmicroxrcedds_client.so.1.2

The command above, it shows that was an older version of libmicroxrcedds. I have removed and reinstalled it.

pablogs9 commented 3 years ago

Remove all of them and then make a new make install

vibnwis commented 3 years ago

Yes, in the course of removing the client as the agent as well. Many thanks

Sincerely