-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mbed-trace enable makes thread overflow in GCC #12561
Comments
How is the stack sizes measured? |
Greentea stats with with NUCLEO_F767ZI and tests-netsocket-tcp |
I don't know what Greentea stats is.. Do you mean Greentea tests? If you just modify the stack size, and run the tests. Whether it crashes or not, does not mean that the stack overflow did not happen. |
Seems like we do enable the checking by default: https://github.com/ARMmbed/mbed-os/blob/master/rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h#L149 Watermarking and debugger would be another way to check how much the stack is used: https://github.com/ARMmbed/mbed-os/blob/master/rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h#L156 How did the test indicate that it was a stack overflow? |
If you execute tests with mbed-os statistics enabled, Question of this issue is to try to understand why:
Thx |
Test is crashing in case of overflow :-) |
Seems that the required hooks are there.. but this wonders me: But that function is documented as follows:
As I linked earlier, we don't have the watermarking enabled, so does it work at all? If you have the board in hand, can you try enabling the RTX stack watermarking and re-running the tests? |
I think RTX stack watermarking is already enabled, as I enable stats: |
@jeromecoutant Hi Jerome could you please fill in the missing information in the issue template, in the right fields? Our latest automation requires all the fields filled (or at least n/a or None if not relevant) before an issue will be mirrored to out internal issue database . Technically no work on an issue should happen until it is mirrored :) |
@jeromecoutant thank you for the update.It appears however that there is still some missing information: What target(s) are you using? NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority. |
Description of defect
Discussion started in #12416
Tests done on top of #12464 with NUCLEO_F767ZI and tests-netsocket-tcp
Goal is to check the maximum thread size of stm32_emac_thread:
How can we explain so much difference in GCC ?
@kjbracey-arm @SeppoTakalo
Thx
Target(s) affected by this defect ?
All
Toolchain(s) (name and version) displaying this defect ?
GCC9
What version of Mbed-os are you using (tag or sha) ?
Master branch is indicated by 'mbed-os-99.99.99
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
None
How is this defect reproduced ?
None
The text was updated successfully, but these errors were encountered: