openairproject / sensor-esp32

air quality sensor based on ESP32
GNU General Public License v3.0
87 stars 25 forks source link

crash in esp_request #34

Closed kglowacki closed 6 years ago

kglowacki commented 6 years ago

D (16716) HTTP_REQ: Secure assertion "next > (intptr_t)block" failed: file "/opt/esp/esp-idf/components/heap/./multi_heap.c", line 116, function: get_next_block abort() was called at PC 0x40102623 on core 0 0x40102623: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:63 (discriminator 8)

Backtrace: 0x400875d8:0x3ffccb10 0x400876a3:0x3ffccb30 0x40102623:0x3ffccb50 0x400870cf:0x3ffccb80 0x40082456:0x3ffccba0 0x4008276d:0x3ffccbc0 0x4000bec7:0x3ffccbe0 0x4012a367:0x3ffccc00 0x4012a03d:0x3ffccc20 0x4012a1a6:0x3ffccc50 0x4012a1d9:0x3ffccc70 0x401158f3:0x3ffccc90 0x40115ae6:0x3ffcccd0 0x40115bf3:0x3ffccd00 0x40115db8:0x3ffccd40 0x400875d8: invoke_abort at /opt/esp/esp-idf/components/esp32/./panic.c:553

0x400876a3: abort at /opt/esp/esp-idf/components/esp32/./panic.c:553

0x40102623: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:63 (discriminator 8)

0x400870cf: get_next_block at /opt/esp/esp-idf/components/heap/./multi_heap.c:615 (discriminator 1) (inlined by) multi_heap_free_impl at /opt/esp/esp-idf/components/heap/./multi_heap.c:414 (discriminator 1)

0x40082456: heap_caps_free at /opt/esp/esp-idf/components/heap/./heap_caps.c:143

0x4008276d: _free_r at /opt/esp/esp-idf/components/newlib/./syscalls.c:42

0x4012a367: free_parsed_uri at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/esp-request/./uri_parser.c:250

0x4012a03d: req_setopt_from_uri at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/esp-request/./esp_request.c:402

0x4012a1a6: req_new_with_buf at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/esp-request/./esp_request.c:440

0x4012a1d9: req_new at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/esp-request/./esp_request.c:450

0x401158f3: fetch_last_ota_info at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/ota/./ota.c:146

0x40115ae6: is_ota_update_available at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/ota/./ota.c:254

0x40115bf3: check_ota at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/ota/./ota.c:301 (discriminator 1)

0x40115db8: check_ota_task at /opt/tomcat/.jenkins/workspace/oap-sensor-esp32/components/ota/./ota.c:360

kglowacki commented 6 years ago

see https://esp32.com/viewtopic.php?t=3198&p=15032

kglowacki commented 6 years ago

probably corrupted by ota stack overflow. it happens sometimes with https stress test, but should not be a problem with https mutex