netopeer2
netopeer2 copied to clipboard
Crash in netopeer2-server
Hi, We dont have much information as of now, but mostly looks like system was idle and following crash happened: NP2SRV_VERSION 2.1.10
netopeer2-server: /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/parser_xml.c:749: lydxml_envelope: Assertion `xmlctx->status == LYXML_ELEMENT' failed.
crash bt: #0 0x00007f597a785387 in raise () from /usr/lib64/libc.so.6 #1 0x00007f597a786bb8 in abort () from /usr/lib64/libc.so.6 #2 0x00007f597a77e1a6 in __assert_fail_base () from /usr/lib64/libc.so.6 #3 0x00007f597a77e252 in _assert_fail () from /usr/lib64/libc.so.6 #4 0x00007f597addd27f in lydxml_envelope (xmlctx=0x7f5968009e50, name=0x7f597aeb1e68 "rpc", uri=0x7f597aeb1e40 "urn:ietf:params:xml:ns:netconf:base:1.0", value=0 '\000', envp=0x7f5975156af0) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/parser_xml.c:749 #5 0x00007f597addd59f in lydxml_env_netconf_rpc (xmlctx=0x7f5968009e50, envp=0x7f5975156af0, int_opts=0x7f5975156a64, close_elem=0x7f5975156a60) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/parser_xml.c:821 #6 0x00007f597addec27 in lyd_parse_xml (ctx=0xc4da00, ext=0x0, parent=0x0, first_p=0x7f5975156af8, in=0x7f59680066f0, parse_opts=327680, val_opts=0, data_type=LYD_TYPE_RPC_NETCONF, envp=0x7f5975156af0, parsed=0x7f5975156b00, lydctx_p=0x7f5975156b18) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/parser_xml.c:1414 #7 0x00007f597adc7f88 in lyd_parse_op (ctx=0xc4da00, ext=0x0, parent=0x0, in=0x7f59680066f0, format=LYD_XML, data_type=LYD_TYPE_RPC_NETCONF, tree=0x7f5968006910, op=0x7f5968006918) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/tree_data.c:561 #8 0x00007f597adc82cf in lyd_parse_op (ctx=0xc4da00, parent=0x0, in=0x7f59680066f0, format=LYD_XML, data_type=LYD_TYPE_RPC_NETCONF, tree=0x7f5968006910, op=0x7f5968006918) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/libyang/src/tree_data.c:628 #9 0x00007f597b83c926 in nc_ps_poll () from /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/bin/du/usr/local/lib64/libnetconf2.so.3.1.3 #10 0x000000000040c61e in worker_thread (arg=0xdcce40) at /workspace/agent/PRG-Builds/OTA/6.5.0.096/ran_3rdparty/open_source/netconf/netopeer2/src/main.c:1029 #11 0x00007f597b0f2ea5 in start_thread () from /usr/lib64/libpthread.so.0 #12 0x00007f597a84db0d in epoll_pwait () from /usr/lib64/libc.so.6 #13 0x0000000000000000 in ?? ()
Any idea what is this crash and what could have caused this?
I think I may have fixed the problem, it could have occurred if the client sent some invalid XML NETCONF message.
Ok thanks Michal. Is this fix delivered to devel branch also?
The commit is referenced, it is only in the libyang devel branch for now.