Skip to content

mimxrt1050_evk test/kernel/mem_protect/stack_random fails on stack fault #13654

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

Closed
hakehuang opened this issue Feb 22, 2019 · 8 comments
Closed
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP

Comments

@hakehuang
Copy link
Collaborator

Describe the bug
there are many fatal fault when execution on board mimxrt1050

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=mimxrt1050_evk ..
  3. make
  4. See error

Expected behavior
test case can return correct result

Impact
looks like the stack size setting for this case is not correct

Screenshots or console output

AASSRRIINNFFII  %]]@@%::dd***** USAGE FAULT *****

  Illegal load of EXC_RETURN into PC

***** Hardware exception *****

Current thread ID = 0x8000030c

Faulting instruction address = 0x72e003f6

Fatal fault in thread 0x8000030c! Aborting.

***** USAGE FAULT *****

  Illegal load of EXC_RETURN into PC

***** Hardware exception *****

Current thread ID = 0x8000030c

Faulting instruction address = 0x72e003f6

Fatal fault in thread 0x8000030c! Aborting.

***** USAGE FAULT *****

  Illegal load of EXC_RETURN into PC

***** Hardware exception *****

Current thread ID = 0x8000030c

Faulting instruction address = 0x72e003f6

Fatal fault in thread 0x8000030c! Aborting.
...

check attached file for more details
serial_2019-02-21-23-42-27.txt

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK
  • Version v1.14.0_rc1
@hakehuang hakehuang added the bug The issue is a bug, or the PR is fixing a bug label Feb 22, 2019
@hakehuang
Copy link
Collaborator Author

@MaureenHelm

@agansari
Copy link
Collaborator

agansari commented Feb 22, 2019

Tested on commit: c2d5e7b

***** Booting Zephyr OS v1.14.0-rc1-445-gc2d5e7b01c *****
Running test suite stack_pointer_randomness
===================================================================
starting test - test_stack_pt_randomization
Test Stack pointer randomization
stack pointer changed 58 times out of 64 tests
PASS - test_stack_pt_randomization
===================================================================
Test suite stack_pointer_randomness succeeded
===================================================================
PROJECT EXECUTION SUCCESSFUL

Test passes.

@dleach02
Copy link
Member

not able to reproduce this either...

@hakehuang
Copy link
Collaborator Author

I test RC1 based on 588d7b0, not c2d5e7b

@hakehuang
Copy link
Collaborator Author

hakehuang commented Feb 25, 2019

and if I run this case for 2 times, then I can reproduce this issue, but I think this is not the only reproduce way. @dleach02 @galak

@ioannisg
Copy link
Member

Unfortunately, I do not have hardware to test this on target.

@hakehuang
Copy link
Collaborator Author

after download the application reboot the board can not reproduce this issue, looks like it is related my program method, as I am using the on board cmsis-dap to program a bootloader first. I will check my bootloader fisrt. Thanks. @dleach02 @galak @ioannisg thanks for your checking

@hakehuang
Copy link
Collaborator Author

hakehuang commented Feb 28, 2019

this is the same root cause as #13655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP
Projects
None yet
Development

No branches or pull requests

4 participants