You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When userspace is enabled, you need to ensure the following:
Kernel dynamic object allocation is enabled.
The executing thread is assigned a resource memory pool (heap).
You can ensure (1) by setting CONFIG_DYNAMIC_OBJECTS=y.
You can ensure (2) by either:
a. Defining a dedicated heap and assigning it to the executing thread (refer to the k_thread_heap_assign documentation).
b. Enabling the default system heap and assigning it to the executing thread (set CONFIG_HEAP_MEM_POOL_SIZE to a desired value and call k_thread_system_pool_assign).
Describe the bug
Assertion failed when newlib/printf is called under a specific combination of configuration items.
To Reproduce
In this example, printf() is called from kernel thread.
However, when CONFIG_USERSPACE=y and CONFIG_NEWLIB_LIBC=y, the assertion has been failed.
Logs and console output
Expected behavior
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: