-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Issue with Master_vehicle crash #11408
Comments
Potentially #11376 |
Wow, ouch. Looking. |
In both cases (fmu-v4 and fmu-v5) the pc points to math::max (mathlib/math/Limits.hpp:72) called from navigator MissionBlock::get_time_inside(). I think the problem is passing the reference of a packed struct (mission_item) member to the template function. Taking a closer look... |
This is easy enough to fix once off, but I'm looking for a most exhaustive solution (compiler warning perhaps) otherwise we'll need to be careful around anything packed (mission items, mavlink in general). |
Newer gcc has |
WIP fixes in #11411 |
We need to do a quick pass of packed structure usage looking for anything that might take the address of a member, create a reference, or pass it into a function that does. This includes navigator (mission_item), mavlink (anything from the mavlink spec), and a few drivers. |
- cleanup Limits.hpp - add -Waddress-of-packed-member where available - fixes #11408
- cleanup Limits.hpp - add -Waddress-of-packed-member where available - fixes #11408
- cleanup Limits.hpp - add -Waddress-of-packed-member where available - fixes #11408
Today we tested Master v1.9.0 (beta) (7f3b170) with the Pixracer, Pixhawk 4 mini, Pixhawk 4. Created mission. The vehicle armed good, took off. At 30 meters the vehicle started spinning and came down to the ground. Resulted in a crash. Same behavior for all 3 platforms.
Steps to reproduce the behavior:
Pixracer:
https://review.px4.io/plot_app?log=4f0c2692-5f27-4d83-bfbd-765bf48a989e
Pixhawk 4 Mini:
https://review.px4.io/plot_app?log=53fa724b-906d-4e93-87fe-5a4f4c2a50b8
Pixhawk 4:
https://review.px4.io/plot_app?log=69f42b00-6259-4a97-96c1-bd8f06b4d29d
@dagar
The text was updated successfully, but these errors were encountered: