atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

Intermittent crash when "node reboot" is received from JMRI #58

Closed atanisoft closed 2 years ago

atanisoft commented 3 years ago
abort() was called at PC 0x40198f4f on core 1
Backtrace:0x40088b4e:0x3ffeb970 0x400891e5:0x3ffeb990 0x4008fd39:0x3ffeb9b0 0x40198f4f:0x3ffeba30 0x4011d6f5:0x3ffeba60 0x4011d74d:0x3ffeba80 0x400f7a55:0x3ffebab0 0x400ebce3:0x3ffebae0 0x401287b7:0x3ffebb00
0x40088b4e: panic_abort at esp-idf-master/components/esp_system/panic.c:360
0x400891e5: esp_system_abort at esp-idf-master/components/esp_system/system_api.c:104
0x4008fd39: abort at esp-idf-master/components/newlib/abort.c:46
0x40198f4f: __assert_func at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:62 (discriminator 8)
0x4011d6f5: ActiveTimers::remove_locked(Timer*) at ESP32CommandStation/build/../components/OpenMRNLite/src/executor/Timer.cpp:168
0x4011d74d: ActiveTimers::update_timer(Timer*) at ESP32CommandStation/build/../components/OpenMRNLite/src/executor/Timer.cpp:177
0x400f7a55: esp32cs::shutdown_dcc_vfs() at ESP32CommandStation/build/../components/OpenMRNLite/src/executor/Timer.hxx:236
 (inlined by) ?? at ESP32CommandStation/build/../components/OpenMRNLite/src/executor/Timer.hxx:242
 (inlined by) ?? at ESP32CommandStation/build/../components/OpenMRNLite/src/openlcb/RefreshLoop.hxx:79
 (inlined by) esp32cs::shutdown_dcc_vfs() at ESP32CommandStation/build/../components/DCCSignalGenerator/DCCSignalVFS.cpp:478
0x400ebce3: node_reboot at ESP32CommandStation/build/../main/OpenMRNEsp32Overrides.cpp:38
0x401287b7: os_thread_start at ESP32CommandStation/build/../components/OpenMRNLite/src/os/os.c:391
atanisoft commented 3 years ago

slightly different variant:

[LCC] Disabling automatic fsync(7) calls...
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400fc13c  PS      : 0x00060730  A0      : 0x800ec03a  A1      : 0x3ffeeff0  
0x400fc13c: esp32cs::LCCStackManager::shutdown() at xtensa-esp32-elf/include/c++/8.4.0/bits/move.h:193
 (inlined by) ?? at components/OpenMRNLite/src/utils/AutoSyncFileFlow.hxx:72
 (inlined by) esp32cs::LCCStackManager::shutdown() at components/Configuration/LCCStackManager.cpp:205

A2      : 0x3ffbf0f0  A3      : 0x3ffb685c  A4      : 0x3ffb6864  A5      : 0xa5a5a5a5  
A6      : 0x3ffeeff8  A7      : 0x00000001  A8      : 0x00000001  A9      : 0x3ffeefd0  
A10     : 0x3ffc6224  A11     : 0x00000000  A12     : 0x3ffc2038  A13     : 0x00000000  
A14     : 0x00000000  A15     : 0x00000001  SAR     : 0x00000000  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xa5a5a611  LBEG    : 0x4000142d  LEND    : 0x4000143a  LCOUNT  : 0xffffffdd  

Backtrace:0x400fc139:0x3ffeeff0 0x400ec037:0x3ffef020 0x40127c57:0x3ffef040
0x400fc139: esp32cs::LCCStackManager::shutdown() at components/Configuration/LCCStackManager.cpp:205
0x400ec037: node_reboot at main/OpenMRNEsp32Overrides.cpp:79
0x40127c57: os_thread_start at components/OpenMRNLite/src/os/os.c:391