eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.89k stars 784 forks source link

Does threadx have some tools, just like ASAN(address sanitizer) for tracking memory issues #319

Open frank-amy opened 10 months ago

frank-amy commented 10 months ago

Additional context

Does threadx have some tools, just like ASAN(address sanitizer) for tracking memory issues https://source.android.com/docs/security/test/asan?hl=zh-cn

williamelamie commented 8 months ago

I'm not aware of any such tool for ThreadX, but it is possible to write a function to interrogate the integrity of ThreadX objects, e.g., threads, queues, memory pools, etc. Each control block has an ID field that can be examined for corruption and there is metadata between each allocated block in block and byte memory pools.

frank-amy commented 7 months ago

thanks for your reply Yes, maybe those functions can be public for every user, to do dianostic or tracking