Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Fix LoadProhibited #73

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

Bmooij
Copy link
Contributor

@Bmooij Bmooij commented Oct 15, 2019

For my project I'm using the Async Event Source Plugin from ESPAsyncWebServer.

When a client is disconnects the following error occurs:

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC      : 0x4017667f  PS      : 0x00060d30  A0      : 0x80176794  A1      : 0x3ffe8270  
A2      : 0x00000000  A3      : 0x3ffd98c0  A4      : 0x40085ff0  A5      : 0x00000001  
A6      : 0x00060d20  A7      : 0x00000000  A8      : 0x8008bb10  A9      : 0x3ffe8260  
A10     : 0x00000003  A11     : 0x00060f23  A12     : 0x00060f20  A13     : 0x0000000c  
A14     : 0x3ffdae48  A15     : 0x00000000  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000004  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0xffffffff  

Backtrace: 0x4017667f:0x3ffe8270 0x40176791:0x3ffe82a0 0x4017691f:0x3ffe82c0 0x4008a991:0x3ffe82f0

Decoded stack results:

0x4017667f: AsyncClient::_poll(tcp_pcb*) at .pio\libdeps\development\AsyncTCP\src\AsyncTCP.cpp line 945
0x40176791: AsyncClient::_s_poll(void*, tcp_pcb*) at .pio\libdeps\development\AsyncTCP\src\AsyncTCP.cpp line 1203
0x4017691f: _async_service_task(void*) at .pio\libdeps\development\AsyncTCP\src\AsyncTCP.cpp line 168
0x4008a991: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

This crash happens when arg is NULL.

@me-no-dev me-no-dev merged commit ca8ac5f into me-no-dev:master Oct 17, 2019
tve pushed a commit to tve/AsyncTCP that referenced this pull request Jan 22, 2020
* Fix LoadProhibited (me-no-dev#73)
* Use sizeof instead of strlen for const char[]
* Add Kconfig option to control ASYNC_TCP_SSL_ENABLED
* Optionally include ssl header files
* Add null check for psk_ident and pskey
* Do not default to PSK when root_ca is not explcitly set. tcp_ssl_new_client() has a case to handle this.
* Move psk null checks to top of function, remove unneeded include, syntax cleanup.

Authored-by: Bob <[email protected]>
@DShabroff
Copy link

In my Arduino ESP32 I use AsyncTCP library. I get this error exception:

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d35d8 PS : 0x00060230 A0 : 0x800d366e A1 : 0x3ffb1ef0
A2 : 0x3ffcfb90 A3 : 0x3ffd0a88 A4 : 0x0000002a A5 : 0x3ffcfc2a
A6 : 0x00000a0d A7 : 0x0a0d3439 A8 : 0x800d35e4 A9 : 0x3ffb1ed0
A10 : 0x00000000 A11 : 0x0000002a A12 : 0x0000002a A13 : 0x0000002a
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000000a EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff

ELF file SHA256: 0000000000000000

Backtrace: 0x400d35d8:0x3ffb1ef0 0x400d366b:0x3ffb1f10 0x400d3687:0x3ffb1f30 0x400d36dd:0x3ffb1f50 0x400d0d2b:0x3ffb1f80 0x400da3fd:0x3ffb1fb0 0x400897fa:0x3ffb1fd0

I previously worked with ESP8266 using another library: ESPAsyncTCP.h. No such errors were observed. The error causes the processor to reboot. Can you tell me how to avoid such mistakes? Thank you.

BlueAndi pushed a commit to BlueAndi/AsyncTCP that referenced this pull request Jun 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants