atanisoft / HttpServer

HTTP Server implemented using OpenMRN StateFlow patterns.
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

HttpRequest::param(string, int) crashes if param value is not numeric #7

Open atanisoft opened 4 years ago

atanisoft commented 4 years ago
Incoming connection from 192.168.10.170, fd 53.
abort() was called at PC 0x400d66e3 on core 1
0x400d66e3: __cxa_end_catch at esp-idf/components/cxx/cxx_exception_stubs.cpp:13

ELF file SHA256: 2cde1b2b81f68a5e

Backtrace: 0x400873b0:0x3ffc74e0 0x400877a5:0x3ffc7500 0x400d66e3:0x3ffc7520 0x40196e39:0x3ffc7540 0x4010f005:0x3ffc7560 0x400edd4f:0x3ffc7590 0x401a8b27:0x3ffc76a0 0x40117157:0x3ffc76c0 0x4011b7fd:0x3ffc7710 0x4011b609:0x3ffc7740 0x401a9679:0x3ffc7770 0x40126f6f:0x3ffc7790
0x400873b0: invoke_abort at esp-idf/components/esp32/panic.c:157
0x400877a5: abort at esp-idf/components/esp32/panic.c:172
0x400d66e3: __cxa_end_catch at esp-idf/components/cxx/cxx_exception_stubs.cpp:13
0x40196e39: std::__throw_invalid_argument(char const*) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/src/c++11/functexcept.cc:74
0x4010f005: http::HttpRequest::param(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) at xtensa-esp32-elf\include\c++\8.4.0\ext/string_conversions.h:83
 (inlined by) ?? at xtensa-esp32-elf\include\c++\8.4.0\bits/basic_string.h:6411
 (inlined by) http::HttpRequest::param(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) at 
HttpServer/src/HttpRequest.cpp:273
0x400edd4f: process_config(http::HttpRequest*) at esp32commandstation\build/../main/WebServer.cpp:624 (discriminator 2)
0x401a8b27: std::_Function_handler<http::AbstractHttpResponse* (http::HttpRequest*), http::AbstractHttpResponse* (*)(http::HttpRequest*)>::_M_invoke(std::_Any_data const&, http::HttpRequest*&&) at xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:282
0x40117157: http::HttpRequestFlow::process_request_handler() at xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
 (inlined by) http::HttpRequestFlow::process_request_handler() at HttpServer/src/HttpRequestFlow.cpp:395
0x4011b7fd: StateFlowBase::run() at OpenMRNLite/src/executor/StateFlow.cpp:63 (discriminator 4)
0x4011b609: ExecutorBase::entry() at OpenMRNLite/src/executor/Executor.cpp:324
0x401a9679: OSThread::start(void*) at OpenMRNLite/src/os/OS.hxx:193
0x40126f6f: os_thread_start at OpenMRNLite/src/os/os.c:391