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

ChibiOS: avoid bdshot fault on null event waiter #29379

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Feb 25, 2025

This avoids a write to a null pointer in bdshot if the waiter is set to null while a timer is still pending

@andyp1per it would be good to get your input. This fix is more of a bandaid than a real fix

This fixes #29370

gives a crash dump for easier analysis. Don't enable on production
aircraft
@tridge tridge force-pushed the pr-bdshot-crash-fix branch from f54e962 to cb67ae5 Compare February 25, 2025 23:55
@tridge
Copy link
Contributor Author

tridge commented Feb 26, 2025

@andyp1per we need to know when this was introduced too, so we know if this could happen in 4.5.x

Comment on lines +629 to +630
enable this on H7 to make writes to the first 1k of RAM on H7
produce a hard fault and crash dump
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enable this on H7 to make writes to the first 1k of RAM on H7
produce a hard fault and crash dump
enable this on H7 to make writes to the first 1k of RAM on H7
produce a hard fault and crash dump instead of an internal error.
do not enable on production aircraft!

@rmackay9 rmackay9 requested a review from Copilot February 27, 2025 00:53

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Development

Successfully merging this pull request may close these issues.

AP-4.6.0: TradHeli internal errors 0X4000000 and 0X4000020
2 participants