Stack dumping at address with same trace data periodically
Posted: Wed Jul 26, 2017 7:02 pm
I'm an AVR convert, and I have ported existing Mega 2560 code to ESP8266. After getting it to run it was pretty stable I thought. Then I noticed uptime was not moving forward. I have the visible kinks worked out but this one eludes me. So I started logging stack dumps to EEPROM and on the next reboot offloading it into SPIFFS.
Here's what I'm getting:
I put it into the decoder, but I'm a little lost from here. Do I read it top as newest event or bottom? How am I supposed to use this to dig my code?
I could use some ESP wizard help. Thanks.
Here's what I'm getting:
Code: Select all
Crash information recovered from EEPROM
Crash # 1 at 160373 ms
Reason for restart: 2
Exception cause: 9
epc1=0x40105a0c epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000
>>>stack>>>
3ffffe60: 3fff5c14 3ffffe70 00000008 40220218
3ffffe70: 40105c38 02fbba3e 3fff3478 00000000
3ffffe80: 3fff25f0 3fff3478 3fff6984 402212c8
3ffffe90: 00000000 02fbae09 40201728 0000000a
3ffffea0: 3fff3478 3ffeae80 3ffea4b8 00000000
3ffffeb0: 3ffeae80 3fff3540 3fff32b0 4021a107
3ffffec0: 3ffeca88 00000000 000003e8 4021f6c5
3ffffed0: 00000000 00000000 3fffff00 4021f7cc
3ffffee0: 00000010 3fffff58 3fff32b0 3fff27c8
3ffffef0: 3fff30e4 3fff563c 3fff32b0 4021a15e
3fffff00: 3fff696c 0000000f 00000007 7d3ca426
3fffff10: 3fff66d1 00000001 3fff5024 0000000f
3fffff20: 00000007 7d3ca426 3fff66d1 00000001
3fffff30: 402257e8 3fff672c 3fff693c 4020bc38
3fffff40: 3fff8094 0000000f 00000007 7d3ca426
3fffff50: 3ffe66d1 00000001 00000000 00000000
3fffff60: 00000000 02fbb3dd 3fff30a4 4020d0fd
3fffff70: 3ffee948 3fff693c 3fff6744 4020be2b
3fffff80: 40225aaa 3fff0e08 00000000 3fff27c8
3fffff90: 3fffdc10 00000000 3fff693c 4023d29c
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<
I put it into the decoder, but I'm a little lost from here. Do I read it top as newest event or bottom? How am I supposed to use this to dig my code?
Code: Select all
Decoding 16 results
0x40220218: operator delete(void*) at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/abi.cpp line 57
0x40105c38: ets_timer_arm_new at ?? line ?
0x402212c8: std::__shared_count(__gnu_cxx::_Lock_policy)0>::~__shared_count() at c:\users\youngja\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/shared_ptr_base.h line 547
0x40201728: delay at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/core_esp8266_wiring.c line 45
0x4021a107: AsyncFSWebServer::onWiFiDisconnected(WiFiEventStationModeDisconnected) at C:\Users\youngja\Documents\Arduino\libraries\FSBrowserNG-master\src/FSWebServerLib.cpp line 1500
0x4021f6c5: String::copy(char const*, unsigned int) at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x4021f7cc: String::operator=(String const&) at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x4021a15e: ~WiFiEventStationModeDisconnected at C:\Users\youngja\Documents\Arduino\libraries\FSBrowserNG-master\src/FSWebServerLib.cpp line 1500
: (inlined by) operator() at C:\Users\youngja\Documents\Arduino\libraries\FSBrowserNG-master\src/FSWebServerLib.cpp line 160
: (inlined by) _M_invoke at c:\users\youngja\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional line 2071
0x402257e8: ppRecycleRxPkt at ?? line ?
0x4020bc38: ~WiFiEventStationModeDisconnected at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.cpp line 96
: (inlined by) operator() at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.cpp line 121
: (inlined by) _M_invoke at c:\users\youngja\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional line 2071
0x4020d0fd: WiFiClient::stopAll() at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 149
0x4020be2b: std::_List_iterator >::operator++() at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.cpp line 96
: (inlined by) ESP8266WiFiGenericClass::_eventCallback(void*) at C:\Users\youngja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.cpp line 219
0x40225aaa: pp_tx_idle_timeout at ?? line ?
0x4023d29c: wifi_set_status_led_output_level at ?? line ?
I could use some ESP wizard help. Thanks.