Skip to content

Commit e324cf3

Browse files
committed
tests: logging: Stack overflow caught with TLS in log_core_additional
When thread local storage is enabled, log_core_additional generates stack overflows in the main thread on several architectures. Increase the stack size to 4096 bytes for this thread. Signed-off-by: Keith Packard <[email protected]>
1 parent b1f6324 commit e324cf3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tests/subsys/logging/log_core_additional/log_sync.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ CONFIG_LOG=y
66
CONFIG_LOG_OUTPUT=y
77
CONFIG_LOG_BACKEND_UART=y
88
CONFIG_LOG_MODE_IMMEDIATE=y
9+
CONFIG_MAIN_STACK_SIZE=4096

tests/subsys/logging/log_core_additional/log_user.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=1
1111
CONFIG_THREAD_MONITOR=y
1212
CONFIG_LOG_PRINTK=y
1313
CONFIG_LOG_BLOCK_IN_THREAD=y
14-
CONFIG_MAIN_STACK_SIZE=1024
14+
CONFIG_MAIN_STACK_SIZE=4096

tests/subsys/logging/log_core_additional/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_CBPRINTF_FP_SUPPORT=y
1111
CONFIG_CBPRINTF_LIBC_SUBSTS=y
1212
CONFIG_ZTEST_STACK_SIZE=4096
1313
CONFIG_LOG_PROCESS_THREAD=n
14+
CONFIG_MAIN_STACK_SIZE=4096
1415

1516
CONFIG_MPSC_CLEAR_ALLOCATED=y
1617
CONFIG_LOG_BACKEND_UART=y

0 commit comments

Comments
 (0)