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

logging: Increase thread stack size when net backend in use #34573

Merged

Conversation

nordic-krch
Copy link
Contributor

@nordic-krch nordic-krch commented Apr 26, 2021

It has been seen that when net backend is enabled stack usage
is around 1080. Setting 1152 as the default.

Fixes #34515.

Signed-off-by: Krzysztof Chruscinski krzysztof.chruscinski@nordicsemi.no

It has been seen that when net backend is enabled stack usage
is around 1080. Setting 1152 as the default.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
@nordic-krch
Copy link
Contributor Author

@aunsbjerg can you try this fix and see if it helps? I've been only able to run it on qemu_x86. There was already stack overflow before logging overhaul merge. It was using 1080 bytes of 768 byte stack.

@nordic-krch nordic-krch requested review from jukkar and dcpleung April 26, 2021 13:00
@nordic-krch nordic-krch added the bug The issue is a bug, or the PR is fixing a bug label Apr 26, 2021
@aunsbjerg
Copy link
Collaborator

@nordic-krch thank you for the fix. Can confirm that this PR fixes the issue. Tested on a frdm_k64f and mimxrt1064_evk.

default 2048 if (RISCV && 64BIT)
default 2048 if LOG_BACKEND_FS
default 1152 if LOG_BACKEND_NET
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a note that in CONFIG_USERSPACE builds on ARMv7-M, this gets rounded up to 2048

@nashif nashif merged commit 292a15b into zephyrproject-rtos:master Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

samples: net: syslog_net: hard fault when running on frdm_k64f
6 participants