Closed hilario closed 7 months ago
Did you run the example as is or did you modify the executable? You don't need anything special for running valgrind for raisim. Many raisim functions are missing symbols so you won't see them but you don't need them to debug your code.
We need Valgrind to profile our code that links with raisim, we faced that error in the process and saw that it can be reproduced with the unmodified speed_test example, discarding that the problem comes from our side of the code.
Can you run the examples without any issues?
I can execute the examples and our linked code with no problems.
I could reproduce this on my machine. I'll try to figure out the issue and get back to you soon
Hi Hilario. Sorry for getting back to you late. This issue is due to a bug in Valgrind. More specifically, valgrind doesn't have an implementation for some instructions used in the previous version.
I included the debug version in linux. This is built without uncommon instructions so valgrind can debug it. It works on my machine. Let me know if it works on yours
Hi Jemin
Thank you for the support, I have downloaded the latest version to check the fix, but now I get this compilation error:
/usr/bin/ld: /home/hilario/raisimLib/raisim/linux/lib/libraisimd.so.1.1.7: undefined reference to std::ios_base_library_init()@GLIBCXX_3.4.32' /usr/bin/ld: /home/hilario/raisimLib/raisim/linux/lib/libraisimd.so.1.1.7: undefined reference to
std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
My system is the same as described before.
My bad. I accidently upgraded my libc++ version somewhere. I'll upload a fix very soon
can you pull and test?
Hi Hilario, I did some tests on the GLIBCXX issue and switched the GLIBCXX version back to the newer one (GLIBCXX_3.4.32). You can easily get it by
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt install -y g++-11
The old version somehow doesn't work with the newer ones.
I have tested the debug version with Valgrind and it works, I will try the new glibc version and let you know.
Thank you!
if it works, you don't have to change the glibc version. I lowered the glibc version again in the last commit so it should work for native 20.04. The issue is whenever I install g++-11, it updates the glibc.Now I will try not to install a newer glibc on my pc...
Could you please indicate how to run Valgrind with a program linked to Raisim?
When I run Valgrind on the speed_test example the output is:
The operating system is: Ubuntu 20.04.6 LTS CPU: Intel® Core™ i7-9850H CPU @ 2.60GHz × 12 Valgrind version: valgrind-3.15.0
The same thing happens downloading the latest version of Valgrind: 3.22.0
Thank you!