Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack Smashing Detected when running/launching the ADIS16470 node #33

Open
Xyneef opened this issue Jul 5, 2021 · 0 comments
Open

Stack Smashing Detected when running/launching the ADIS16470 node #33

Xyneef opened this issue Jul 5, 2021 · 0 comments

Comments

@Xyneef
Copy link

Xyneef commented Jul 5, 2021

Hello everyone

I am encountering the following problem:

I am trying to run the adi_driver with ADIS16470. I am using the exact same components advised on the GitHub page.
I did all the steps that work with all other drivers I installed.
I installed ROS Noetic 1.15.11 on a Raspberry Pi 4 8GB running Ubuntu Mate 20.04 LTS.
Cloned the driver into my catkin workspace using "git clone ".
I also installed the IMU_TOOLS Madgwick filter as suggested on the GitHub page, as another package in my catkin workspace.
Compiled everything with catkin_make.
Compilation and building is successful.

I try to launch the launch file and I incur into a Stack Smashing Detected ONLY for the IMU node. The filter works, but the ADIS16470 node exits with exit code -6. I could find no explanation of what this code means, and when I try to access the log file in the error description, it is completely empty.

Same happens if I try to run the node with rosrun.

Since nothing happens to work, not even deleting and reinstalling the package, I switch to another machine.

I tried with a virgin installation of ROS on another RPi 4 4GB running Ubuntu Mate 20.04 LTS and ROS Noetic 1.15.11.
I install the adi_driver as my first package and download the filter in the ROS package directory, not in my catkin workspace.
Finally it works and I can read the IMU data.

The problem shows itself again when on this new RPi I install another IMU driver package to run a comparison.
The moment I try to run the ADIS16470, the same exact Stack Smashing Detected error happens.

I do not understand why the driver would work 5 minutes earlier, and the moment I install another package to run multiple sensors at the same time it suddenly stops working.

If anyone has an insight on how to solve this problem, please reply.

Also, as a disclaimer, I am in no way an expert in programming or computer science.
I do understand what the C++ code is doing regarding the sensor, but I don't understand why it is giving me such an error if it is compiling correctly and if it was working fine literally 5 minutes ago.
As such, please assume I am at a beginner level in your answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant