nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

TLSF doesn't work with rv-virt/knsh64

Open yf13 opened this issue 9 months ago • 1 comments

Reproducing

Similar to that of issue #12209, but using latest master from Nuttx upstream.

QEMU is still 6.2 but OpenSBI firmware is v1.0, as the default v0.9 is no longer supported but latest S-mode.

Crash info:

(gdb) bt
#0  _assert (filename=filename@entry=0x8021ce90 "/home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c", linenum=<optimized out>, msg=0x0, regs=0x80401390 <g_last_regs>, regs@entry=0x0) at /home/yf/Projects/Nuttx/nuttx/sched/misc/assert.c:544
#1  0x0000000080202d50 in __assert (filename=filename@entry=0x8021ce90 "/home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c", linenum=<optimized out>, msg=<optimized out>) at /home/yf/Projects/Nuttx/nuttx/libs/libc/assert/lib_assert.c:36
#2  0x00000000802135a6 in pgalloc (brkaddr=<optimized out>, npages=<optimized out>) at /home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c:125
#3  0x0000000080209c6a in dispatch_syscall () at /home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_swint.c:76
Backtrace stopped: frame did not save the PC

As code base changed, this is booked to track it rather than reopening 12209.

yf13 avatar May 06 '24 07:05 yf13