-
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
UAVCAN hardfault on "uavcan param list" #14736
Comments
This is probably just the command line uavcan param helpers missing locking. |
Working on a fix in #14741. |
Forgot to update here - the possible fix #14741 does not seem to work. Still unclear what the root cause might be. The suggested solution makes sense (race condition on resource access), but the location of the error has not yet been found. |
Thanks for the update, I'll try to reproduce locally with a debugger attached. |
Cool, that would make things much easier for sure. It doesn't always throw a hardfault though; whatever memory corruption is occurring seems to happen in a few possible locations. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
I experienced this too, I think this may have been a stack overflow, potentially fixed by #15864 |
Should be fixed by master, please re-open if that's not the case. |
Describe the bug
After a few calls
uavcan param <list/get/set>
, I encounter a hardfault that leads to a reboot.To Reproduce
Steps to reproduce the behavior:
px4_fmu-v3_default
) running latest PX4 master branchuavcan status
to ensure UAVCAN is running (this will produce a crap ton of node-spin and vehicle_air_data errors, these don't appear in v1.10...). It doesn't matter if you set UAVCAN_ENABLE to 0 and manually start it after boot, or set UAVCAN_ENABLE to 1.uavcan param list <nodeid>
a few timesLog Files and Screenshots

uavcan status
error messages:The hardfault after some get and set commands:

Reproducing the hardfault with 3 calls to

uavcan param list 3
:The text was updated successfully, but these errors were encountered: