zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.97k stars 6.68k forks source link

LwM2M not pass official LightweightM2M-1.1-int-256 and stack enter dead lock #42353

Closed jheiskan81 closed 2 years ago

jheiskan81 commented 2 years ago

Describe the bug A clear and concise description of what the bug is. Server Object SSID should only have Read access but there is also write access. LightweightM2M-1.1-int-256 conformance test validate that write operation to SSID should return error. Overwrite SSID affect dead block for lwm2m engine and only reset will heal.

To Reproduce

Expected behavior Test expect: 4.05 Method not allowed. Result: 2.04 Changed.

Impact Block LwM2M v1.1 Conformance testing.

Logs and console output Dead lock console print after overwrited SSID engine loose access to server object and start print constantly next loop: [00:02:09.552,429] app_lwm2m_client.rd_client_event: Disconnected [00:02:10.552,886] net_lwm2m_rd_client: Failed to obtain Server Object instance, err -2 [00:02:10.552,917] net_lwm2m_rd_client: Unable to find a valid server instance.

Environment (please complete the following information):

Additional context

jheiskan81 commented 2 years ago

Fix to problem: https://github.com/zephyrproject-rtos/zephyr/pull/42352