mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 17:43:22 +08:00
dump_stacks() only checked kernelstack_sp != 0 || force, so for tasks with no kernel stack (e.g. idle, kernelstack_base == 0) the force path passed base 0 to dump_stackinfo() and dumped raw memory from address 0, triggering a secondary fault that truncated the panic log. Guard with kernelstack_base != 0. Signed-off-by: liang.huang <liang.huang@houmo.ai>