zephyr dlist crash


Ryan Johnson <Ryan.Johnson@...>
 

Hello,

 

I’m seeing zephyr crash w/ an invalid dlist pointer while handling timers.

 

I’m running mcuboot based on zephyr, so this issue may be mcuboot specific, but I thought I’d ask if anyone has seen this crash before.

 

[MCUBOOT] [INF] main: Starting bootloader

 

[MCUBOOT] [INF] boot_status_source: Image 0: magic=good, copy_done=0x1, image_ok=0xff

<LF>[MCUBOOT] [INF] boot_status_source: Scratch: magic=bad, copy_done=0x10, image_ok=0x6b

<LF>[MCUBOOT] [INF] boot_status_source: Boot source: none

<LF>[MCUBOOT] [INF] boot_swap_type: Swap type: revert

 

***** BUS FAULT *****

<LF>  Executing thread ID (thread): 0x20001658

<LF>  Faulting instruction address:  0x8007704

<LF>  Precise data bus error

<LF>  Address: 0xfe2bf00c

 

C:\STM32Toolchain\eclipse\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.13.3.201707031232\tools\compiler\bin>arm-none-eabi-addr2line.exe -e C:\cygwin64\home\sdorjohn\ns\mcuboot\outdir\ns_common\zephyr.elf -a 0x8007704

 

0x08007704

C:/cygwin64/home/sdorjohn/ns/zephyr/include/misc/dlist.h:228

 

 

Thread #1 (Suspended : Signal : SIGINT:Interrupt)           

               k_cpu_idle() at cpu_idle.S:135 0x8006bf0           

               _SysFatalErrorHandler() at sys_fatal_error_handler.c:70 0x8006c8e       

               _Fault() at fault.c:365 0x8006b28            

               __usage_fault() at fault_s.S:108 0x8006c16        

               <signal handler called>() at 0xfffffff1     

               sys_dlist_is_empty() at dlist.h:228 0x8007704   

               sys_dlist_peek_head() at dlist.h:256 0x8007704               

               handle_timeouts() at sys_clock.c:252 0x8007704             

               _nano_sys_clock_tick_announce() at sys_clock.c:377 0x8007704             

               _timer_int_handler() at cortex_m_systick.c:348 0x800224a        

               <signal handler called>() at 0xfffffffd    

               0x6402 

               0xd00dbeee      

 


Ryan C Johnson
Principal Systems Architect, Intelligent Asset Tracking Business Unit

5950 Nancy Ridge Dr. Ste 500
San Diego, CA 92121 USA

mobile: +1 858 401 3406
email: ryan.johnson@...
web: flex.com

 


Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message!