arch: arm64: fatal: limit max number of stack traces
In some cases, the `fp` will never be `NULL` and the stack unwinding can go on and on forever, limit the max depth so that this will not happen. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
c87dc641bc
commit
94346d2441
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ static void esf_unwind(const z_arch_esf_t *esf)
|
|||
uint64_t lr;
|
||||
|
||||
LOG_ERR("");
|
||||
while (fp != NULL) {
|
||||
for (int i = 0; (fp != NULL) && (i < CONFIG_EXCEPTION_STACK_TRACE_MAX_FRAMES); i++) {
|
||||
lr = fp[1];
|
||||
#ifdef CONFIG_SYMTAB
|
||||
uint32_t offset = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue