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

When add two unsigned long long fields to the tx_thread structure,then create some threads, run some time, The system(cortex-m4) will enter a hardware failure. #259

Closed alwdev2019 closed 1 year ago

alwdev2019 commented 1 year ago

Describe the bug hardware environment: cortex-m4 When add two unsigned long long fields to the tx_thread structure,then create some threads, run some time, The system(cortex-m4) will enter a hardware failure. A thread uses the function vsnprintf to format a variable of type double into a buffer。but this thread formats variables of other types, such as int, there is hardware failure in the system。

Please also mention any information which could help others to understand the problem you're facing:

To Reproduce Steps to reproduce the behavior:

  1. Build my project in IAR Workbench.
  2. See error

Expected behavior A clear and concise description of what you expected to happen.

Impact What impact does this issue have on your progress (e.g., annoyance, showstopper)

Logs and console output If applicable, add console logs or other types of debug information like Wireshark capture as .zip file.

Additional context Add any other context about the problem here.

xiuwencai commented 1 year ago

Hi @alwdev2019, it seems the stack pointer was corrupted. Where are these unsigned long long fields added?

TiejunMS commented 1 year ago

Closing.