libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

[v2.1.37] crash observed in nc_session_cpblt

Open divyanshu0045 opened this issue 9 months ago • 1 comments

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

divyanshu0045 avatar Mar 19 '25 17:03 divyanshu0045

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.

michalvasko avatar Mar 20 '25 07:03 michalvasko