eclipse-zenoh / zenoh-pico

Eclipse zenoh for pico devices
Other
102 stars 65 forks source link

Mutexes accessed although not initialized #477

Closed philhoeb closed 1 week ago

philhoeb commented 3 weeks ago

Describe the bug

If _z_open() fails it can happen that _z_session_rc_drop() is called and mutexes are accessed although z_mutex_init() has never been called. At least with FreeRTOS this leads to problems. Either asserts fail (if configured) or you end up in a hard fault when the null pointer is dereferenced.

To reproduce

  1. Do not start a Zenoh router
  2. Call z_open() on STM32

System info

jean-roland commented 2 weeks ago

Will look into this, thanks for notifying us.

jean-roland commented 2 weeks ago

Hello @philhoeb, could you just tell me what zenoh platform is used in your setup? The list can be found in include/zenoh-pico/system/platform-common.h.