Skip to content

FreeRTOS deadlock on mutex_enter_blocking/recursive_mutex_enter_blocking #795

@godario

Description

@godario

Hi!
Using FreeRTOS and making intensive use of multiple String objects and Serial communication I noticed a deadlock during calls to mutex_enter_blocking()/recursive_mutex_enter_blocking()
Using platformio and debugging with picoprobe I get the calls stack leading to deadlock: attached two cases as screenshots inside the archive.
I am attaching a MCVE tested both with Arduino IDE and with VSCode & platform.io using the core version 2.4.1.
Can anything be done to prevent this problem from happening? Thank you!

mutex_enter_stuck_MCVE.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfreertosFreeRTOS support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions