ueforth icon indicating copy to clipboard operation
ueforth copied to clipboard

httpd doesn't run as a task

Open p1er opened this issue 3 years ago • 0 comments

httpd does not run as a task, throwing a LoadProhibited exception:

ESP32forth v7.0.6.15 - rev 74125fc19e0ce05838c7
ESP32-D0WDQ5   240 MHz   2 cores   4194304 bytes flash
     System Heap: 201620 free + 346224 used = 547844 total (36% free)
                  98152 bytes max contiguous
Forth dictionary: 80956 free + 26692 used = 107648 total (75% free)
3 x Forth stacks: 2048 bytes each
 ok
--> wifi WIFI_MODE_STA wifi.mode z" guest" z" password" wifi.begin 4000 ms wifi.status
 ok
3 --> web-interface
 ok
3 --> : webs 80 server ;
 ok
3 --> ' webs 1500 300 task wui
 ok
3 --> wui start-task
 ok
3 --> Listening on port 80 
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400d2ca7  PS      : 0x00060c30  A0      : 0x800d301c  A1      : 0x3ffb1de0  
A2      : 0xffffffff  A3      : 0x3ffe67e4  A4      : 0x3ffe4388  A5      : 0x00000000  
A6      : 0x3ffe67d4  A7      : 0x3fff0898  A8      : 0x800d19de  A9      : 0x3ffe6748  
A10     : 0xffffffff  A11     : 0x00000000  A12     : 0x400d2ca3  A13     : 0x3ffc5ca8  
A14     : 0x3ffc5cbc  A15     : 0x00000000  SAR     : 0x0000000b  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  

ELF file SHA256: 0000000000000000

Backtrace: 0x400d2ca7:0x3ffb1de0 0x400d3019:0x3ffb1f90 0x400d9519:0x3ffb1fb0 0x4008b71a:0x3ffb1fd0

Rebooting...

When you run the exception through the ESP exception decoder you get this:

Decoding 8 results
0x400d2ca7: forth_run(int*) at /tmp/ESP32forth/ESP32forth.ino line 1210
0x400d2ca3: forth_run(int*) at /tmp/ESP32forth/ESP32forth.ino line 1210
0x400d2ca7: forth_run(int*) at /tmp/ESP32forth/ESP32forth.ino line 1210
0x400d3019: loop() at /tmp/ESP32forth/ESP32forth.ino line 2706
0x400d9519: loopTask(void*) at /tmp/.arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/main.cpp line 23
0x4008b71a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 355 (discriminator 1)

p1er avatar Feb 12 '22 03:02 p1er