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.
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.
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
System info