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

[BUG] Crash Introduced when calling app from nsh #15065

Closed
1 task done
stbenn opened this issue Dec 5, 2024 · 5 comments · Fixed by #15073
Closed
1 task done

[BUG] Crash Introduced when calling app from nsh #15065

stbenn opened this issue Dec 5, 2024 · 5 comments · Fixed by #15073
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Drivers Drivers issues Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@stbenn
Copy link
Contributor

stbenn commented Dec 5, 2024

Description / Steps to reproduce the issue

The simple Hello World example app is crashing when called from nsh on Coretex-M33 (armv8-m). It appears to be introduced in 2b22ee0.

Steps to Reproduce

This bug was found using the nucleo-h563zi:nsh configuration, and the most up to date apps commit (6600a5fd)

  1. Checkout apps master (6600a5fd) and nuttx master (or 2b22ee0)
  2. cd to nuttx directory
  3. make distclean
  4. ./tools/configure.sh -l nucleo-h563zi:nsh
  5. make menuconfig
  6. Application Configuration -> Examples -> Enable "Hello, World!" example
  7. Build and debug while monitoring the serial console.
  8. In serial console, nsh> hello

Log Files

Earliest commit it occurs: hello_crash_log_2b22ee03d6.txt
Current master branch: hello_crash_log_75fc19d729.txt

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 24.04

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Drivers], [Area: OS Components]

Verification

  • I have verified before submitting the report.
@stbenn stbenn added the Type: Bug Something isn't working label Dec 5, 2024
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Drivers Drivers issues Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) labels Dec 5, 2024
@acassis
Copy link
Contributor

acassis commented Dec 5, 2024

@hujun260 please take a look, any idea why your PR could have introduced this issue?

@stbenn
Copy link
Contributor Author

stbenn commented Dec 5, 2024

I checked with the Nucleo-G071RB and got what appears to be the same crash. Follow the same steps as described above, but with nucleo-g071rb:nsh configuration. Here is the log file

@stbenn
Copy link
Contributor Author

stbenn commented Dec 5, 2024

If it helps, PANIC() at the end of up_exit() in /nuttx/arch/arm/src/common/arm_exit.c is triggered.

@hujun260
Copy link
Contributor

hujun260 commented Dec 6, 2024

@hujun260 please take a look, any idea why your PR could have introduced this issue?

ok Let me analyze this issue

@hujun260
Copy link
Contributor

hujun260 commented Dec 6, 2024

try this pr #15073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Drivers Drivers issues Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants