Skip to content

test: tests/kernel/mem_slab/mslab_threadsafe fails sporadically on nrf52 #13536

@mike-scott

Description

@mike-scott

Describe the bug
If you run the following test on nrf52_blenano2 (and possibly any nrf52832) it will fail with a hardware exception in a seemingly random pattern.

Painful repeated bisection leads me to this commit:
03f007e

To Reproduce
Steps to reproduce the behavior:

  1. cd tests/kernel/mem_slab/mslab_threadsafe
  2. mkdir build; cd build
  3. cmake -DBOARD=nrf52_blenano2 ..
  4. make flash
  5. 1 in say 6-7 tries (sometimes a lot more) see hardware exception

Expected behavior
Pass this test

Impact
CI fails in random ways when testing on real HW

Screenshots or console output

***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
PASS - test_mslab_threadsafe                                                                                                                                 
===================================================================                                                                                          
Test suite mslab_threadsafe succeeded                                                                                                                        
===================================================================                                                                                          
PROJECT EXECUTION SUCCESSFUL                                                                                                                                 
***** Booting Zephyr OS v1.14.0-rc1-330-gb71e1f941f *****                                                                                                    
Running test suite mslab_threadsafe                                                                                                                          
===================================================================                                                                                          
starting test - test_mslab_threadsafe                                                                                                                        
***** MPU FAULT *****                                                                                                                                        
  Data Access Violation                                                                                                                                      
  MMFAR Address: 0x0                                                                                                                                         
***** Hardware exception *****                                                                                                                               
Current thread ID = 0x20000114                                                                                                                               
Faulting instruction address = 0x4436                                                                                                                        
Fatal fault in ISR! Spinning...                                                                                                                              

Environment (please complete the following information):

  • OS: Arch Linux
  • Toolchain: Zephyr SDK
  • Master as of today (SHA: b71e1f9)

Metadata

Metadata

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions