shafr / esp-canary

Simple ESP8266 / ESP32 Canary that simulates predefined application server and notifies you using E-mail, Telegram, etc if it was accessed.
MIT License
45 stars 5 forks source link

Tomcat Crashes #15

Open shafr opened 3 years ago

shafr commented 3 years ago

I've noticed that recently Tomcat became unstable. I was blaming NetCapture lib, but it seems to have no relation, with disabled ping, this error still occures. Stacktrace:

Exception Cause: 29  [StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores]

0x402049f4: lfs_file_opencfg at ??:?
0x4000050c: ?? ??:0
0x401027a4: wDev_ProcessFiq at ??:?
0x40217f51: littlefs_impl::LittleFSImpl::open(char const*, fs::OpenMode, fs::AccessMode) at ??:?
0x40100d0e: malloc at ??:?
0x4021b737: String::changeBuffer(unsigned int) at ??:?
0x40204c50: lfs_file_open at ??:?
0x40218010: littlefs_impl::LittleFSImpl::open(char const*, fs::OpenMode, fs::AccessMode) at ??:?
0x40100d0e: malloc at ??:?
0x40100d0e: malloc at ??:?
0x40219ffc: fs::FS::open(char const*, char const*) at ??:?
0x40233028: sdfat::FatVolume::clusterFirstBlock(unsigned int) const at ??:?
0x4021b772: String::changeBuffer(unsigned int) at ??:?
0x4021ba98: String::operator=(String const&) at ??:?
0x4021a060: fs::FS::open(String const&, char const*) at ??:?
0x4020d175: fs::File::~File() at ??:?
0x40212145: AsyncStaticWebHandler::_fileExists(AsyncWebServerRequest*, String const&) at ??:?
0x40233028: sdfat::FatVolume::clusterFirstBlock(unsigned int) const at ??:?
0x4021b772: String::changeBuffer(unsigned int) at ??:?
0x4021b6c9: String::invalidate() at ??:?
0x40212281: AsyncStaticWebHandler::_getFile(AsyncWebServerRequest*) at ??:?
0x4021237b: AsyncStaticWebHandler::canHandle(AsyncWebServerRequest*) at ??:?
0x4021b863: String::reserve(unsigned int) at ??:?
0x4020fd4c: AsyncWebServer::_attachHandler(AsyncWebServerRequest*) at ??:?
0x4021bc40: String::concat(char const*, unsigned int) at ??:?
0x4020d704: AsyncWebServerRequest::_parseLine() at ??:?
0x4021c6fc: String::trim() at ??:?
0x4020d990: AsyncWebServerRequest::_onData(void*, unsigned int) at ??:?
0x40100cd7: free at ??:?
0x40100532: millis at ??:?
0x4020d9e9: std::_Function_handler<void (void*, AsyncClient*, void*, unsigned int), AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer*, AsyncClient*)::{lambda(void*, AsyncClient*, void*, unsigned int)#8}>::_M_invoke(std::_Any_data const&, void*, AsyncClient*, void*, unsigned int) at WebRequest.cpp:?
0x4020b12e: AsyncClient::_recv(std::shared_ptr<ACErrorTracker>&, tcp_pcb*, pbuf*, long) at ??:?
0x4020b2da: AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, long) at ??:?
0x402570a0: tcp_input at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp_in.c:501 (discriminator 1)
0x40100d0e: malloc at ??:?
0x4025cc7a: ip4_input at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/ip4.c:1467
shafr commented 3 years ago

This issue is very confusing, I cannot pin it out to something specific. I have few ESP's - one fails due to PING, another due to Tomcat memory leak.