assert failed: xTaskRemoveFromEventList tasks.c:3866 (pxUnblockedTCB)

Serdar
Posts: 18
Joined: Fri Sep 02, 2022 7:33 pm

assert failed: xTaskRemoveFromEventList tasks.c:3866 (pxUnblockedTCB)

Postby Serdar » Tue Jan 24, 2023 9:25 pm

Hello, I have a project that uses the official esp-idf wifi and NVS librarys.
Both work separately without any problems.

But if wifi task is created in the project.
And then if I use commands like a "nvs_flash_init partition(str);"
I get this error.

Code: Select all

[USB] Received CMD: {"flashCfg":null}

assert failed: xTaskRemoveFromEventList tasks.c:3866 (pxUnblockedTCB)

Backtrace: 0x40376552:0x3fc9a500 0x4037dcf1:0x3fc9a520 0x40385239:0x3fc9a540 0x4037ec0e:0x3fc9a660 0x403808e9:0x3fc9a680 0x40379912:0x3fc9a6b0 0x4003d25e:0x3fc9a6d0 |<-CORRUPTED
0x40376552: panic_abort at /home/toren/esp/esp-idf/components/esp_system/panic.c:417
0x4037dcf1: esp_system_abort at /home/toren/esp/esp-idf/components/esp_system/esp_system.c:135
0x40385239: __assert_func at /home/toren/esp/esp-idf/components/newlib/assert.c:78
0x4037ec0e: xTaskRemoveFromEventList at /home/toren/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3866 (discriminator 1)
0x403808e9: xQueueGenericSendFromISR at /home/toren/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1118
0x40379912: queue_send_from_isr_wrapper at /home/toren/esp/esp-idf/components/esp_wifi/esp32s3/esp_adapter.c:409

ELF file SHA256: 25655987218de98b
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021

Wifi codes work as TCP server.

Do you have idea on how to solve this issue?

Have nice a work!
-Serdar

ESP_Sprite
Posts: 9850
Joined: Thu Nov 26, 2015 4:08 am

Re: assert failed: xTaskRemoveFromEventList tasks.c:3866 (pxUnblockedTCB)

Postby ESP_Sprite » Wed Jan 25, 2023 1:56 am

Nothing much I can deduce from only that, but I can tell you from experience that issues like this tend to be because of memory corruption. Check your code for buffer overflows, use-after-free situations etc.

pooladkhay
Posts: 1
Joined: Tue Sep 17, 2024 7:18 pm

Re: assert failed: xTaskRemoveFromEventList tasks.c:3866 (pxUnblockedTCB)

Postby pooladkhay » Tue Sep 17, 2024 7:22 pm

ESP_Sprite wrote:
Wed Jan 25, 2023 1:56 am
Nothing much I can deduce from only that, but I can tell you from experience that issues like this tend to be because of memory corruption. Check your code for buffer overflows, use-after-free situations etc.

I can confirm this is indeed due to an overflow.
Stack overflow, in my case!

Who is online

Users browsing this forum: 7amaaan, ESP_Roland and 63 guests