-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
ThreadX's threads, mutexes etc contain pointers to the next and previous thread, mutex etc, forming a linked list. When Zenoh Pico attempts to reconnect it uses memset() to zero these structs rather than deleting them properly. This leads to ThreadX attempting to dereference zeroed memory when going through the linked list, causing the program to crash. An example of this is at the start of the function _z_unicast_transport_create.
To reproduce
- Run any ThreadX example with
Z_FEATURE_AUTO_RECONNECT= 1 - Start an instance of
zenohd - Stop
zenohd - Start
zenohdagain - Zenoh pico will crash due to ThreadX attempting to dereference uninitialised memory
System info
- Platform: STM32H573, ThreadX, NetXduo
g4sp3r
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working