Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rv-virt/knsh32 crashes after runing ELF app #12123

Closed
yf13 opened this issue Apr 11, 2024 · 1 comment · Fixed by #12132
Closed

rv-virt/knsh32 crashes after runing ELF app #12123

yf13 opened this issue Apr 11, 2024 · 1 comment · Fixed by #12132

Comments

@yf13
Copy link
Contributor

yf13 commented Apr 11, 2024

Host: Ubuntu 22.04
Toolchain: gcc-riscv64-unknown-elf 10.2.0-0ubuntu1
Target: qemu-system-riscv32 -M virt,aclint=on -semihosting -nographic 1:6.2+dfsg-2ubuntu6.16
Nuttx version: 12.5.1-rc0 or recent version on master

Config for reproducing:

  • tools/config.sh rv-virt/knsh32
  • kconfig-tweak -e DEBUG_ASSERTIONS

Building:

  • Build apps via the export-import steps and confirm ../apps/bin contains ELF apps before running nuttx.

After booting Nuttx, run hello command to see the crash. The crash happens in mm_pgfree() upon up_addrenv_destroy() time, but the culprit should happen earlier. The DEBUG_ASSERTION just reveals this issue.

@yf13 yf13 changed the title rv-virt/knsh32 crashes runing ELF app rv-virt/knsh32 crashes after runing ELF app Apr 12, 2024
@yf13
Copy link
Contributor Author

yf13 commented Apr 13, 2024

Duplicated with issue #11803.

@yf13 yf13 closed this as completed Apr 13, 2024
@xiaoxiang781216 xiaoxiang781216 linked a pull request Apr 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant