mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
8551a213ab
commit
8724e878a8
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue