Skip to content

Panic in NimBLEScan::clearResults() #302

@DTTerastar

Description

@DTTerastar
CORRUPT HEAP: Bad head at 0x3ffeb5b4. Expected 0xabba1234 got 0x3ffeb650
abort() was called at PC 0x4008778d on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x40090220:0x3ffe1080 0x4009049d:0x3ffe10a0 0x4008778d:0x3ffe10c0 0x400878b9:0x3ffe10f0 0x40126f9f:0x3ffe1110 0x40120a45:0x3ffe13d0 0x401209c9:0x3ffe1420 0x400951f9:0x3ffe1450 0x4008291e:0x3ffe1470 0x40087685:0x3ffe1490 0x4000bec7:0x3ffe14b0 0x401ab309:0x3ffe14d0 0x400e049d:0x3ffe14f0 0x400e063e:0x3ffe1510 0x400f110f:0x3ffe1540 0x400f5b53:0x3ffe15b0 0x400d7451:0x3ffe1760 0x400914ae:0x3ffe17e0
  #0  0x40090220:0x3ffe1080 in invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #1  0x4009049d:0x3ffe10a0 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #2  0x4008778d:0x3ffe10c0 in lock_acquire_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:143
  #3  0x400878b9:0x3ffe10f0 in _lock_acquire_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:171
  #4  0x40126f9f:0x3ffe1110 in _vfiprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:860 (discriminator 2)
  #5  0x40120a45:0x3ffe13d0 in fiprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/fiprintf.c:50
  #6  0x401209c9:0x3ffe1420 in __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:59 (discriminator 8)
  #7  0x400951f9:0x3ffe1450 in multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c:305
  #8  0x4008291e:0x3ffe1470 in heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c:232
  #9  0x40087685:0x3ffe1490 in _free_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c:42
  #10 0x4000bec7:0x3ffe14b0 in ?? ??:0
  #11 0x401ab309:0x3ffe14d0 in operator delete(void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_op.cc:46
  #12 0x400e049d:0x3ffe14f0 in __gnu_cxx::new_allocator<unsigned char>::deallocate(unsigned char*, unsigned int) at .pio/libdeps/m5atom-matrix/NimBLE-Arduino/src/NimBLEScan.cpp:408
      (inlined by) std::allocator_traits<std::allocator<unsigned char> >::deallocate(std::allocator<unsigned char>&, unsigned char*, unsigned int) at /Users/dturner/.platformio/packages/[email protected]/xtensa-esp32-elf/include/c++/5.2.0/bits/alloc_traits.h:386
      (inlined by) std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_deallocate(unsigned char*, unsigned int) at /Users/dturner/.platformio/packages/[email protected]/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_vector.h:178
      (inlined by) std::_Vector_base<unsigned char, std::allocator<unsigned char> >::~_Vector_base() at /Users/dturner/.platformio/packages/[email protected]/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_vector.h:160
      (inlined by) std::vector<unsigned char, std::allocator<unsigned char> >::~vector() at /Users/dturner/.platformio/packages/[email protected]/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_vector.h:425
      (inlined by) NimBLEAdvertisedDevice::~NimBLEAdvertisedDevice() at .pio/libdeps/m5atom-matrix/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h:40
      (inlined by) NimBLEScan::clearResults() at .pio/libdeps/m5atom-matrix/NimBLE-Arduino/src/NimBLEScan.cpp:465
  #13 0x400e063e:0x3ffe1510 in NimBLEScan::stop() at .pio/libdeps/m5atom-matrix/NimBLE-Arduino/src/NimBLEScan.cpp:408
  #14 0x400f110f:0x3ffe1540 in NimBLEClient::connect(NimBLEAddress const&, bool) at .pio/libdeps/m5atom-matrix/NimBLE-Arduino/src/NimBLEClient.cpp:454
  #15 0x400f5b53:0x3ffe15b0 in BleFingerprint::query() at .pio/libdeps/m5atom-matrix/ArduinoJson/src/ArduinoJson/Variant/ConverterImpl.hpp:138
  #16 0x400d7451:0x3ffe1760 in scanForDevices(void*) at src/main.cpp:339
  #17 0x400914ae:0x3ffe17e0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions