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

sys/print_stack_usage: update MIN_SIZE [backport 2022.10] #18924

Conversation

maribu
Copy link
Member

@maribu maribu commented Nov 17, 2022

Backport of #18917

Contribution description

Since fmt no longer has a significant advantage in stack consumption, we need to bump the MIN_SIZE guard that prevents causing stack overflows due to the printing of the stack consumption.

Testing procedure

$ make BOARD=nucleo-f767zi -C tests/pthread_flood flash test

Should no longer print stack usage for the dummy POSIX threads and not result in hard faults due to stack overflows anymore.

Issues/PRs references

Better alternative to #18916

Since fmt no longer has a significant advantage in stack consumption,
we need to bump the `MIN_SIZE` guard that prevents causing stack
overflows due to the printing of the stack consumption.

(cherry picked from commit 5b86848)
@maribu maribu added Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master labels Nov 17, 2022
@maribu maribu enabled auto-merge November 17, 2022 13:11
@riot-ci
Copy link

riot-ci commented Nov 17, 2022

Murdock results

✔️ PASSED

7b54a45 sys/print_stack_usage: update MIN_SIZE

Success Failures Total Runtime
115836 0 115836 02h:02m:26s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@maribu maribu merged commit 27197c6 into RIOT-OS:2022.10-branch Nov 17, 2022
@maribu maribu deleted the backport/2022.10/sys/test_utils/print_stack_usage branch November 17, 2022 16:04
@maribu
Copy link
Member Author

maribu commented Nov 17, 2022

Thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants