[v2.1.37] crash observed in nc_session_cpblt
Hi Michal,
We observed a one-time crash while testing frequent reboots of the netconf server. At each restart, the client reconnects and tries to check session capabilities, but the Netconf server goes for a reboot.
Although this happens rarely, is there any protection that should be added here?
#0 0x00007f26d712066d in nc_session_cpblt (session=0x7f269c144d90, capab=0x7f26d8992f48 "urn:ietf:params:netconf:capability:writable-running") at /open-source/libnetconf2/src/session_client.c:1933
Thanks
Do you have some more context, maybe stack trace? The client session is being created when these capabilities are being stored so it is not accessible by the user yet. And when it is, the capabilities can only be read, that is why there is no lock.