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

struct FreeRtosTaskStatusFfi missing field #15

Closed
ololoshka2871 opened this issue Oct 11, 2021 · 1 comment
Closed

struct FreeRtosTaskStatusFfi missing field #15

ololoshka2871 opened this issue Oct 11, 2021 · 1 comment

Comments

@ololoshka2871
Copy link

I'm new in rust, but i used FreeRTOS before.

I wanted to get Tasks statistics using freertos_rust::task::FreeRtosUtils::get_all_tasks() but i got memory corrupt exception into FreeRTOS heap_4.c module.
Than I found, that struct freertos_rust::task::FreeRtosTaskStatus not an equivalent of struct xTASK_STATUS

Missing field StackType_t * pxStackBase;

So, memory allocation by Vec has incorrect size -> heap corruption.

@ololoshka2871
Copy link
Author

Ok, fixed by replacing crates.io version with git

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