system/uorb: raise default UORB_STACKSIZE for UORB_FORMAT

"%pB" nests a second formatting pass, and the listener peaked at 2256
bytes of stack (measured with STACK_COLORATION), which does not fit in
a DEFAULT_TASK_STACKSIZE of 2048. The overflow did not fail cleanly: it
corrupted memory outside the task, surfacing as an unrelated assertion
in another task's mutex. Default to 4096 when UORB_FORMAT is enabled.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
This commit is contained in:
Felipe Moura 2026-07-31 17:48:47 -03:00
parent 8551a213ab
commit 8724e878a8

View file

@ -16,7 +16,11 @@ config UORB_PRIORITY
config UORB_STACKSIZE
int "stack size"
default 4096 if UORB_FORMAT
default DEFAULT_TASK_STACKSIZE
---help---
UORB_FORMAT needs around 2.2KB of stack for the listener, which
does not fit in a DEFAULT_TASK_STACKSIZE of 2048.
config UORB_FORMAT
bool