esp32 crashed with unknow reason

fftust
Posts: 3
Joined: Mon Jul 22, 2019 6:56 am

esp32 crashed with unknow reason

Postby fftust » Sat Aug 08, 2020 3:40 am

IDF version is release/v3.1.
My apllication is very complicate, so I can't describe my code clearly。

This is the whole backtrace, it will occured from time to time.I can't see any function in my application level.

Does anyone have an insight on this issue? thank you very much

backtrace: 40091b78 <invoke_abort>:
40091eb4 <abort>:
40086f38 <lock_acquire_generic>:
4008708c <_lock_acquire_recursive>:
401de8d8 <_vfiprintf_r>:
401d7e80 <fiprintf>:
401d7e10 <__assert_func>:
40099dd4 <vTaskEnterCritical>:
40083810 <esp_pm_impl_switch_mode>:
400839f4 <esp_pm_lock_acquire>:
400839ac <esp_pm_impl_isr_hook>:
40086b00 <_xt_lowint1>:
4026c768 <esp_pm_impl_waiti>:
40162c04 <esp_vApplicationIdleHook>:
4009a5c8 <prvIdleTask>:
4009b764 <vPortTaskWrapper>:

ESP_Sprite
Posts: 9723
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 crashed with unknow reason

Postby ESP_Sprite » Sat Aug 08, 2020 12:58 pm

Does this crash happen early in the code? May be a linker issue where the correct lock initialization code for Newlib does not get called...

fftust
Posts: 3
Joined: Mon Jul 22, 2019 6:56 am

Re: esp32 crashed with unknow reason

Postby fftust » Mon Aug 10, 2020 8:34 am

It did not crash in the beginning. After running for a few hours, my application crashed and output the same traceback.

Is it possible that an invalid pointer caused this crash?

ESP_Sprite
Posts: 9723
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 crashed with unknow reason

Postby ESP_Sprite » Tue Aug 11, 2020 11:11 am

Yes, if you got this crash later on it smells like something overwrote some Newlib stub pointers.

Who is online

Users browsing this forum: No registered users and 134 guests