Closed darcyllingyan closed 6 years ago
Hi Darcy,
the format has changed, yes, but (ideally) it should have no impact on any functionality so it is an issue if it does. Please provide t1.yang
and t1.xml
so I can try to reproduce the crash.
Regards, Michal
Hi Michal, Thanks for the response! I don't think the t1.yang and t1.xml have issues, as when I use another sysrepo-netopeer2 server which was installed one month ago, the t1.xml data can be obtained successfully with netopeer2-cli. The t1.yang is:
module t1 {
namespace "http://example/users";
prefix users;
container users {
list user {
key name;
leaf name {
type string;
}
leaf password {
type string;
mandatory true;
}
leaf role {
type string{
length 1..15;
pattern '[\p{IsBasicLatin}]+';
}
mandatory true;
}
}
}
}
The t1.xml is:
<users xmlns="http://example/users">
<user>
<name>ssss</name>
<password>1111</password>
<role>aaa</role>
</user>
<user>
<name>hunter</name>
<password>3333</password>
<role>aaa</role>
</user>
<user>
<name>jerry</name>
<password>3333</password>
<role>ccc</role>
</user>
</users>
Hi Darcy,
it is not about your files being wrong (although that is also possible) but about me being able to reproduce your issue. I have used these files successfully so I am doing something differently. Your first sysrepocfg
command failed in my case because there were no subscriptions for the model t1
.
Do you have a client running so the model is subscribed to in your case? If so, then please share what client you have used (if you can) and what is the exact order of the tasks that lead to the crash.
However, it seems you have pulled the new changes in libyang and sysrepo just before this issue arose so as the first thing I suggest to properly uninstall all the installed libraries and make sure only the new ones are being used.
Regards, Michal
Hi Michal,
Sorry for the misleading and infact I have subscribed for the model t1
, I didn't show the step.
I just pulled the lastest changes for libyang, sysrepo from github yesterday. Last week the crash is arose when I use RPM package to install the sysrepo-netopeer2 environment, so now I manually pulled and install all the packages needed for sysrepo-netopeer2, the crash is still arose.
The client I use is netopeer2-cli. Below is the detailed process:
# sysrepoctl --uninstall --module=t1
Uninstalling the module t1...
Deleted the schema file '/etc/sysrepo/yang/t1.yang'.
Deleted the data files for module 't1'.
Uninstall operation completed successfully.
Subscribe the t1 module:
sysrepo/build/examples/application_example t1
========== READING STARTUP CONFIG t1: ==========
/t1:users (container)
========== STARTUP CONFIG t1 APPLIED AS RUNNING ==========
4. Startup the netopeer2-cli
netopeer2-cli
connect nc VERBOSE: nc_sock_connect(localhost, 830, -1, -1) nc VERBOSE: Trying to connect via IPv6. nc VERBOSE: getsockopt error: (Connection refused). nc VERBOSE: Trying to connect via IPv4. nc VERBOSE: Successfully connected to localhost:830 over IPv4. [2018/08/28 13:59:19.335811, 2] ssh_connect: libssh 0.7.5 (c) 2003-2014 Aris Adamantiadis, Andreas Schneider, and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_pthread [2018/08/28 13:59:19.335835, 2] ssh_connect: Socket connecting, now waiting for the callbacks to work [2018/08/28 13:59:19.335846, 1] socket_callback_connected: Socket connection callback: 1 (0) [2018/08/28 13:59:19.338787, 1] ssh_client_connection_callback: SSH server banner: SSH-2.0-libssh_0.7.5 [2018/08/28 13:59:19.338801, 1] ssh_analyze_banner: Analyzing banner: SSH-2.0-libssh_0.7.5 [2018/08/28 13:59:19.384498, 2] ssh_packet_dh_reply: Received SSH_KEXDH_REPLY [2018/08/28 13:59:19.386463, 2] ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent [2018/08/28 13:59:19.386657, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS [2018/08/28 13:59:19.386771, 2] ssh_packet_newkeys: Signature verified and valid [2018/08/28 13:59:19.386863, 1] ssh_userauth_request_service: Failed to request "ssh-userauth" service [2018/08/28 13:59:19.387911, 2] ssh_packet_userauth_failure: Access denied. Authentication that can continue: publickey,keyboard-interactive,password [2018/08/28 13:59:19.387926, 1] ssh_packet_userauth_failure: Access denied. Authentication that can continue: publickey,keyboard-interactive,password nc VERBOSE: Keyboard-interactive authentication. Interactive SSH Authentication Type your password: Password: nc VERBOSE: Authentication successful. [2018/08/28 13:59:24.837601, 2] channel_open: Creating a channel 43 with 64000 window and 32768 max packet [2018/08/28 13:59:24.837789, 2] ssh_packet_channel_open_conf: Received a CHANNEL_OPEN_CONFIRMATION for channel 43:43 [2018/08/28 13:59:24.837805, 2] ssh_packet_channel_open_conf: Remote window : 32000, maxpacket : 35000 [2018/08/28 13:59:24.838604, 2] channel_request: Channel request subsystem success ly VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/yangdata.so" successfully loaded. ly VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/nacm.so" successfully loaded. ly VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/metadata.so" successfully loaded. ly VERBOSE: Plugin "/usr/local/lib64/libyang/user_types/user_date_and_time.so" successfully loaded. ly VERBOSE: Reading module "ietf-yang-metadata". ly VERBOSE: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented. ly VERBOSE: Reading module "yang". ly VERBOSE: Resolving "yang" unresolved schema nodes and their constraints... ly VERBOSE: All "yang" schema nodes and constraints resolved. ly VERBOSE: Module "yang@2017-02-20" successfully parsed as implemented. ly VERBOSE: Reading module "ietf-inet-types". ly VERBOSE: Resolving derived type "union" failed, it will be attempted later. ly VERBOSE: Resolving derived type "union" failed, it will be attempted later. ly VERBOSE: Resolving derived type "union" failed, it will be attempted later. ly VERBOSE: Resolving derived type "union" failed, it will be attempted later. ly VERBOSE: Resolving "ietf-inet-types" unresolved schema nodes and their constraints... ly VERBOSE: All "ietf-inet-types" schema nodes and constraints resolved. ly VERBOSE: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented. ly VERBOSE: Reading module "ietf-yang-types". ly VERBOSE: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented. [2018/08/28 13:59:24.840498, 2] grow_window: growing window (channel 43:43) to 1280000 bytes nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf-monitoring", revision "2010-10-04". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf-monitoring.yin". nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf", revision "2011-06-01". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf.yin". nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf-acm", revision "2018-02-14". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf-acm.yin". nc VERBOSE: Session 1: retreiving data for schema "ietf-yang-library", revision "2018-01-17". nc VERBOSE: Session 1: reading schema from server via get-schema. [2018/08/28 13:59:24.845137, 2] channel_rcv_change_window: Adding 1248212 bytes to channel (43:43) (from 31527 bytes) nc WARNING: Session 1: unable to identify revision of the schema "ietf-datastores" from the available server side information. nc VERBOSE: Session 1: retreiving data for schema "ietf-datastores", revision "(null)". nc VERBOSE: Session 1: reading schema from server via get-schema. ly VERBOSE: Resolving unresolved data nodes and their constraints... ly VERBOSE: All data nodes and constraints resolved. ly VERBOSE: Module "ietf-yang-metadata@2016-08-05" now implemented. ly VERBOSE: Module "ietf-inet-types@2013-07-15" now implemented. ly VERBOSE: Module "ietf-yang-types@2013-07-15" now implemented. ly VERBOSE: Module "ietf-datastores@2017-08-17" now implemented. ly VERBOSE: Module "ietf-netconf-acm@2018-02-14" now implemented. nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf-notifications", revision "2012-02-06". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf-notifications.yin". nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf", revision "2011-06-01". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf.yin". nc VERBOSE: Session 1: retreiving data for schema "notifications", revision "2008-07-14". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/notifications.yin". nc VERBOSE: Session 1: retreiving data for schema "nc-notifications", revision "2008-07-14". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/nc-notifications.yin". nc VERBOSE: Session 1: retreiving data for schema "notifications", revision "2008-07-14". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/notifications.yin". nc VERBOSE: Session 1: retreiving data for schema "turing-machine", revision "2013-12-27". nc VERBOSE: Session 1: reading schema from server via get-schema. nc VERBOSE: Session 1: retreiving data for schema "ietf-interfaces", revision "2014-05-08". nc VERBOSE: Session 1: reading schema from server via get-schema. nc VERBOSE: Session 1: retreiving data for schema "iana-if-type", revision "2014-05-08". nc VERBOSE: Session 1: reading schema from server via get-schema. nc VERBOSE: Session 1: retreiving data for schema "ietf-interfaces", revision "2014-05-08". nc VERBOSE: Session 1: reading schema from server via get-schema. nc VERBOSE: Session 1: retreiving data for schema "ietf-ip", revision "2014-06-16". nc VERBOSE: Session 1: reading schema from server via get-schema. nc VERBOSE: Session 1: retreiving data for schema "ietf-netconf-with-defaults", revision "2011-06-01". nc VERBOSE: Session 1: reading schema from localfile "/usr/local/share/libnetconf2/ietf-netconf-with-defaults.yin". nc VERBOSE: Session 1: retreiving data for schema "t1", revision "(null)". nc VERBOSE: Session 1: reading schema from localfile "/root/t1.yang".
The get-config and edit-config with netopeer2-cli will both lead to crash.
If I run the get-config for the startup datastore, the netopeer2-server crashed: 1) netopeer2-cli log:
> get-config --source startup
ly VERBOSE: Resolving unresolved data nodes and their constraints...
ly VERBOSE: All data nodes and constraints resolved.
[2018/08/28 13:55:22.281482, 1] ssh_socket_exception_callback: Socket exception callback: 1 (0)
[2018/08/28 13:55:22.281516, 1] ssh_socket_exception_callback: Socket error: disconnected
nc ERROR: Session 1: SSH channel poll error (Socket error: disconnected).
cli_send_recv: Failed to receive a reply.
2). The netopeer2-server log is:
# netopeer2-server -v2 -d
VERBOSE: Connected to daemon Sysrepo Engine at socket=/var/run/sysrepod.sock
VERBOSE: Netopeer2 connected to sysrepod.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/yangdata.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/nacm.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/metadata.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/user_types/user_date_and_time.so" successfully loaded.
VERBOSE: Reading module "ietf-yang-metadata".
VERBOSE: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented.
VERBOSE: Reading module "yang".
VERBOSE: Resolving "yang" unresolved schema nodes and their constraints...
VERBOSE: All "yang" schema nodes and constraints resolved.
VERBOSE: Module "yang@2017-02-20" successfully parsed as implemented.
VERBOSE: Reading module "ietf-inet-types".
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving "ietf-inet-types" unresolved schema nodes and their constraints...
VERBOSE: All "ietf-inet-types" schema nodes and constraints resolved.
VERBOSE: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented.
VERBOSE: Reading module "ietf-yang-types".
VERBOSE: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented.
VERBOSE: Reading module "ietf-datastores".
VERBOSE: Module "ietf-datastores@2017-08-17" successfully parsed as implemented.
VERBOSE: Reading module "ietf-yang-library".
VERBOSE: Module "ietf-yang-library@2018-01-17" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-notifications@2012-02-06" from sysrepo.
VERBOSE: Reading module "ietf-netconf-notifications".
VERBOSE: Reading module "ietf-netconf".
VERBOSE: Reading module "ietf-netconf-acm".
VERBOSE: Module "ietf-netconf-acm@2018-02-14" successfully parsed as imported.
VERBOSE: Module "ietf-netconf@2011-06-01" successfully parsed as imported.
VERBOSE: Resolving "ietf-netconf-notifications" unresolved schema nodes and their constraints...
VERBOSE: All "ietf-netconf-notifications" schema nodes and constraints resolved.
VERBOSE: Module "ietf-netconf-notifications@2012-02-06" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf@2011-06-01" from sysrepo.
VERBOSE: Module ietf-netconf@2011-06-01 already present in context.
VERBOSE: Module "ietf-netconf@2011-06-01" now implemented.
VERBOSE: Loading schema "ietf-netconf-acm@2018-02-14" from sysrepo.
VERBOSE: Module ietf-netconf-acm@2018-02-14 already present in context.
VERBOSE: Loading schema "nc-notifications@2008-07-14" from sysrepo.
VERBOSE: Reading module "nc-notifications".
VERBOSE: Reading module "notifications".
VERBOSE: Module "notifications@2008-07-14" successfully parsed as imported.
VERBOSE: Module "nc-notifications@2008-07-14" successfully parsed as implemented.
VERBOSE: Loading schema "notifications@2008-07-14" from sysrepo.
VERBOSE: Module notifications@2008-07-14 already present in context.
VERBOSE: Module "notifications@2008-07-14" now implemented.
VERBOSE: Loading schema "turing-machine@2013-12-27" from sysrepo.
VERBOSE: Reading module "turing-machine".
VERBOSE: Module "turing-machine@2013-12-27" successfully parsed as implemented.
VERBOSE: Loading schema "iana-if-type@2014-05-08" from sysrepo.
VERBOSE: Reading module "iana-if-type".
VERBOSE: Reading module "ietf-interfaces".
VERBOSE: Module "ietf-interfaces@2014-05-08" successfully parsed as imported.
VERBOSE: Module "iana-if-type@2014-05-08" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-interfaces@2014-05-08" from sysrepo.
VERBOSE: Module ietf-interfaces@2014-05-08 already present in context.
VERBOSE: Module "ietf-interfaces@2014-05-08" now implemented.
VERBOSE: Loading schema "ietf-ip@2014-06-16" from sysrepo.
VERBOSE: Reading module "ietf-ip".
VERBOSE: Module "ietf-ip@2014-06-16" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-with-defaults@2011-06-01" from sysrepo.
VERBOSE: Reading module "ietf-netconf-with-defaults".
VERBOSE: Module "ietf-netconf-with-defaults@2011-06-01" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-monitoring@2010-10-04" from sysrepo.
VERBOSE: Reading module "ietf-netconf-monitoring".
VERBOSE: Module "ietf-netconf-monitoring@2010-10-04" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-yang-library@2018-01-17" from sysrepo.
VERBOSE: Module ietf-yang-library@2018-01-17 already present in context.
VERBOSE: Loading schema "ietf-datastores@2017-08-17" from sysrepo.
VERBOSE: Module ietf-datastores@2017-08-17 already present in context.
WARNING: Sysrepo does not have the "ietf-netconf-server" module or keystored keys dir unknown, using default NETCONF server options.
VERBOSE: Listening on 0.0.0.0:830 for SSH connections.
VERBOSE: Loading added schema "t1" from sysrepo.
VERBOSE: Reading module "t1".
VERBOSE: Module "t1" successfully parsed as implemented.
VERBOSE: Generated new event (netconf-capability-change).
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Generated new internal event (yang-library-change).
VERBOSE: Accepted a connection on 0.0.0.0:830.
[2018/08/28 13:52:56.734317, 1] ssh_server_connection_callback: SSH client banner: SSH-2.0-libssh_0.7.5
[2018/08/28 13:52:56.734340, 1] ssh_analyze_banner: Analyzing banner: SSH-2.0-libssh_0.7.5
[2018/08/28 13:52:56.778880, 2] ssh_server_curve25519_init: SSH_MSG_KEX_ECDH_REPLY sent
[2018/08/28 13:52:56.778914, 2] ssh_server_curve25519_init: SSH_MSG_NEWKEYS sent
[2018/08/28 13:52:56.780826, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
VERBOSE: Received an SSH message "request-service" of subtype "ssh-userauth".
VERBOSE: Received an SSH message "request-auth" of subtype "none".
VERBOSE: Received an SSH message "request-auth" of subtype "interactive".
[2018/08/28 13:52:56.782240, 2] ssh_message_auth_interactive_request: Warning: Got a keyboard-interactive response but it seems we didn't send the request.
VERBOSE: Received an SSH message "request-auth" of subtype "interactive".
VERBOSE: User "root" authenticated.
VERBOSE: Received an SSH message "request-channel-open" of subtype "session".
VERBOSE: Received an SSH message "request-channel" of subtype "subsystem".
[2018/08/28 13:52:58.626238, 2] grow_window: growing window (channel 43:43) to 1280000 bytes
[2018/08/28 13:52:58.629381, 2] channel_rcv_change_window: Adding 1218996 bytes to channel (43:43) (from 61004 bytes)
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Generated new event (netconf-session-start).
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 0 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 0 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 0 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 0 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 0 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
Segmentation fault
> edit-config --target running --config=/root/t1.xml
ly VERBOSE: Resolving unresolved data nodes and their constraints...
ly VERBOSE: All data nodes and constraints resolved.
Segmentation fault
2). The netopeer2-server log is:
# netopeer2-server -v2 -d
VERBOSE: Connected to daemon Sysrepo Engine at socket=/var/run/sysrepod.sock
VERBOSE: Netopeer2 connected to sysrepod.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/yangdata.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/nacm.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/metadata.so" successfully loaded.
VERBOSE: Plugin "/usr/local/lib64/libyang/user_types/user_date_and_time.so" successfully loaded.
VERBOSE: Reading module "ietf-yang-metadata".
VERBOSE: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented.
VERBOSE: Reading module "yang".
VERBOSE: Resolving "yang" unresolved schema nodes and their constraints...
VERBOSE: All "yang" schema nodes and constraints resolved.
VERBOSE: Module "yang@2017-02-20" successfully parsed as implemented.
VERBOSE: Reading module "ietf-inet-types".
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving derived type "union" failed, it will be attempted later.
VERBOSE: Resolving "ietf-inet-types" unresolved schema nodes and their constraints...
VERBOSE: All "ietf-inet-types" schema nodes and constraints resolved.
VERBOSE: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented.
VERBOSE: Reading module "ietf-yang-types".
VERBOSE: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented.
VERBOSE: Reading module "ietf-datastores".
VERBOSE: Module "ietf-datastores@2017-08-17" successfully parsed as implemented.
VERBOSE: Reading module "ietf-yang-library".
VERBOSE: Module "ietf-yang-library@2018-01-17" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-notifications@2012-02-06" from sysrepo.
VERBOSE: Reading module "ietf-netconf-notifications".
VERBOSE: Reading module "ietf-netconf".
VERBOSE: Reading module "ietf-netconf-acm".
VERBOSE: Module "ietf-netconf-acm@2018-02-14" successfully parsed as imported.
VERBOSE: Module "ietf-netconf@2011-06-01" successfully parsed as imported.
VERBOSE: Resolving "ietf-netconf-notifications" unresolved schema nodes and their constraints...
VERBOSE: All "ietf-netconf-notifications" schema nodes and constraints resolved.
VERBOSE: Module "ietf-netconf-notifications@2012-02-06" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf@2011-06-01" from sysrepo.
VERBOSE: Module ietf-netconf@2011-06-01 already present in context.
VERBOSE: Module "ietf-netconf@2011-06-01" now implemented.
VERBOSE: Loading schema "ietf-netconf-acm@2018-02-14" from sysrepo.
VERBOSE: Module ietf-netconf-acm@2018-02-14 already present in context.
VERBOSE: Loading schema "nc-notifications@2008-07-14" from sysrepo.
VERBOSE: Reading module "nc-notifications".
VERBOSE: Reading module "notifications".
VERBOSE: Module "notifications@2008-07-14" successfully parsed as imported.
VERBOSE: Module "nc-notifications@2008-07-14" successfully parsed as implemented.
VERBOSE: Loading schema "notifications@2008-07-14" from sysrepo.
VERBOSE: Module notifications@2008-07-14 already present in context.
VERBOSE: Module "notifications@2008-07-14" now implemented.
VERBOSE: Loading schema "turing-machine@2013-12-27" from sysrepo.
VERBOSE: Reading module "turing-machine".
VERBOSE: Module "turing-machine@2013-12-27" successfully parsed as implemented.
VERBOSE: Loading schema "iana-if-type@2014-05-08" from sysrepo.
VERBOSE: Reading module "iana-if-type".
VERBOSE: Reading module "ietf-interfaces".
VERBOSE: Module "ietf-interfaces@2014-05-08" successfully parsed as imported.
VERBOSE: Module "iana-if-type@2014-05-08" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-interfaces@2014-05-08" from sysrepo.
VERBOSE: Module ietf-interfaces@2014-05-08 already present in context.
VERBOSE: Module "ietf-interfaces@2014-05-08" now implemented.
VERBOSE: Loading schema "ietf-ip@2014-06-16" from sysrepo.
VERBOSE: Reading module "ietf-ip".
VERBOSE: Module "ietf-ip@2014-06-16" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-with-defaults@2011-06-01" from sysrepo.
VERBOSE: Reading module "ietf-netconf-with-defaults".
VERBOSE: Module "ietf-netconf-with-defaults@2011-06-01" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-netconf-monitoring@2010-10-04" from sysrepo.
VERBOSE: Reading module "ietf-netconf-monitoring".
VERBOSE: Module "ietf-netconf-monitoring@2010-10-04" successfully parsed as implemented.
VERBOSE: Loading schema "ietf-yang-library@2018-01-17" from sysrepo.
VERBOSE: Module ietf-yang-library@2018-01-17 already present in context.
VERBOSE: Loading schema "ietf-datastores@2017-08-17" from sysrepo.
VERBOSE: Module ietf-datastores@2017-08-17 already present in context.
VERBOSE: Loading schema "t1" from sysrepo.
VERBOSE: Reading module "t1".
VERBOSE: Module "t1" successfully parsed as implemented.
WARNING: Sysrepo does not have the "ietf-netconf-server" module or keystored keys dir unknown, using default NETCONF server options.
VERBOSE: Listening on 0.0.0.0:830 for SSH connections.
VERBOSE: Accepted a connection on 0.0.0.0:830.
[2018/08/28 13:59:19.338633, 1] ssh_server_connection_callback: SSH client banner: SSH-2.0-libssh_0.7.5
[2018/08/28 13:59:19.338655, 1] ssh_analyze_banner: Analyzing banner: SSH-2.0-libssh_0.7.5
[2018/08/28 13:59:19.384387, 2] ssh_server_curve25519_init: SSH_MSG_KEX_ECDH_REPLY sent
[2018/08/28 13:59:19.384422, 2] ssh_server_curve25519_init: SSH_MSG_NEWKEYS sent
[2018/08/28 13:59:19.386528, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
VERBOSE: Received an SSH message "request-service" of subtype "ssh-userauth".
VERBOSE: Received an SSH message "request-auth" of subtype "none".
VERBOSE: Received an SSH message "request-auth" of subtype "interactive".
[2018/08/28 13:59:19.388057, 2] ssh_message_auth_interactive_request: Warning: Got a keyboard-interactive response but it seems we didn't send the request.
VERBOSE: Received an SSH message "request-auth" of subtype "interactive".
VERBOSE: User "root" authenticated.
VERBOSE: Received an SSH message "request-channel-open" of subtype "session".
VERBOSE: Received an SSH message "request-channel" of subtype "subsystem".
[2018/08/28 13:59:24.843964, 2] grow_window: growing window (channel 43:43) to 1280000 bytes
[2018/08/28 13:59:24.847229, 2] channel_rcv_change_window: Adding 1218996 bytes to channel (43:43) (from 61004 bytes)
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 1 event new RPC.
VERBOSE: Generated new event (netconf-session-start).
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 1 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 1 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Resolving unresolved data nodes and their constraints...
VERBOSE: All data nodes and constraints resolved.
VERBOSE: Session 1: thread 3 event new RPC.
[2018/08/28 13:59:55.280297, 1] ssh_socket_exception_callback: Socket exception callback: 1 (0)
[2018/08/28 13:59:55.280360, 1] ssh_socket_exception_callback: Socket error: disconnected
ERROR: Session 1: SSH channel poll error (Socket error: disconnected).
VERBOSE: Session 1: thread 2 event session terminated.
VERBOSE: Generated new event (netconf-session-end).
Thanks Darcy
Hi Darcy,
I keep failing to reproduce this. What options did you use for sysrepo compilation? Also, could you please provide the output of # ldconfig -p
? Thanks.
Regards, Michal
Hi Michal,
Thanks for the effort! It's OK to use sysrepocfg to write data to datastore, so I think maybe the issue is netopeer2 but the sysrepo? But I don't know what the root cause is.
The sysrepo compilation is:
cmake -DCMAKE_BUILD_TYPE=Release ENABLE_CONFIGURATION=on -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
The ldconfig -p is shown below.
# ldconfig -p
459 libs found in cache `/etc/ld.so.cache'
p11-kit-trust.so (libc6,x86-64) => /lib64/p11-kit-trust.so
libzip.so.2 (libc6,x86-64) => /lib64/libzip.so.2
libz.so.1 (libc6,x86-64) => /lib64/libz.so.1
libz.so (libc6,x86-64) => /lib64/libz.so
libyang.so.0.16 (libc6,x86-64) => /usr/local/lib64/libyang.so.0.16
libyang.so (libc6,x86-64) => /usr/local/lib64/libyang.so
libyaml-0.so.2 (libc6,x86-64) => /lib64/libyaml-0.so.2
libxtables.so.10 (libc6,x86-64) => /lib64/libxtables.so.10
libxslt.so.1 (libc6,x86-64) => /lib64/libxslt.so.1
libxshmfence.so.1 (libc6,x86-64) => /lib64/libxshmfence.so.1
libxml2.so.2 (libc6,x86-64) => /lib64/libxml2.so.2
libxerces-c-3.1.so (libc6,x86-64) => /lib64/libxerces-c-3.1.so
libxcb.so.1 (libc6,x86-64) => /lib64/libxcb.so.1
libxcb-xvmc.so.0 (libc6,x86-64) => /lib64/libxcb-xvmc.so.0
libxcb-xv.so.0 (libc6,x86-64) => /lib64/libxcb-xv.so.0
libxcb-xtest.so.0 (libc6,x86-64) => /lib64/libxcb-xtest.so.0
libxcb-xselinux.so.0 (libc6,x86-64) => /lib64/libxcb-xselinux.so.0
libxcb-xkb.so.1 (libc6,x86-64) => /lib64/libxcb-xkb.so.1
libxcb-xinput.so.0 (libc6,x86-64) => /lib64/libxcb-xinput.so.0
libxcb-xinerama.so.0 (libc6,x86-64) => /lib64/libxcb-xinerama.so.0
libxcb-xf86dri.so.0 (libc6,x86-64) => /lib64/libxcb-xf86dri.so.0
libxcb-xfixes.so.0 (libc6,x86-64) => /lib64/libxcb-xfixes.so.0
libxcb-xevie.so.0 (libc6,x86-64) => /lib64/libxcb-xevie.so.0
libxcb-sync.so.1 (libc6,x86-64) => /lib64/libxcb-sync.so.1
libxcb-shm.so.0 (libc6,x86-64) => /lib64/libxcb-shm.so.0
libxcb-shape.so.0 (libc6,x86-64) => /lib64/libxcb-shape.so.0
libxcb-screensaver.so.0 (libc6,x86-64) => /lib64/libxcb-screensaver.so.0
libxcb-res.so.0 (libc6,x86-64) => /lib64/libxcb-res.so.0
libxcb-render.so.0 (libc6,x86-64) => /lib64/libxcb-render.so.0
libxcb-record.so.0 (libc6,x86-64) => /lib64/libxcb-record.so.0
libxcb-randr.so.0 (libc6,x86-64) => /lib64/libxcb-randr.so.0
libxcb-present.so.0 (libc6,x86-64) => /lib64/libxcb-present.so.0
libxcb-glx.so.0 (libc6,x86-64) => /lib64/libxcb-glx.so.0
libxcb-dri3.so.0 (libc6,x86-64) => /lib64/libxcb-dri3.so.0
libxcb-dri2.so.0 (libc6,x86-64) => /lib64/libxcb-dri2.so.0
libxcb-dpms.so.0 (libc6,x86-64) => /lib64/libxcb-dpms.so.0
libxcb-damage.so.0 (libc6,x86-64) => /lib64/libxcb-damage.so.0
libxcb-composite.so.0 (libc6,x86-64) => /lib64/libxcb-composite.so.0
libwrap.so.0 (libc6,x86-64) => /lib64/libwrap.so.0
libwayland-server.so.0 (libc6,x86-64) => /lib64/libwayland-server.so.0
libwayland-client.so.0 (libc6,x86-64) => /lib64/libwayland-client.so.0
libverto.so.1 (libc6,x86-64) => /lib64/libverto.so.1
libverto.so (libc6,x86-64) => /lib64/libverto.so
libuuid.so.1 (libc6,x86-64) => /lib64/libuuid.so.1
libutil.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libutil.so.1
libutil.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libutil.so
libutempter.so.0 (libc6,x86-64) => /lib64/libutempter.so.0
libustr-1.0.so.1 (libc6,x86-64) => /lib64/libustr-1.0.so.1
libuser.so.1 (libc6,x86-64) => /lib64/libuser.so.1
libusb-1.0.so.0 (libc6,x86-64) => /lib64/libusb-1.0.so.0
libusb-0.1.so.4 (libc6,x86-64) => /lib64/libusb-0.1.so.4
libunistring.so.0 (libc6,x86-64) => /lib64/libunistring.so.0
libungif.so.4 (libc6,x86-64) => /lib64/libungif.so.4
libunbound.so.2 (libc6,x86-64) => /lib64/libunbound.so.2
libudev.so.1 (libc6,x86-64) => /lib64/libudev.so.1
libtspi.so.1 (libc6,x86-64) => /lib64/libtspi.so.1
libtommath.so.0 (libc6,x86-64) => /lib64/libtommath.so.0
libtomcrypt.so.0 (libc6,x86-64) => /lib64/libtomcrypt.so.0
libtirpc.so.1 (libc6,x86-64) => /lib64/libtirpc.so.1
libtinfo.so.5 (libc6,x86-64) => /lib64/libtinfo.so.5
libtic.so.5 (libc6,x86-64) => /lib64/libtic.so.5
libthread_db.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libthread_db.so.1
libthread_db.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libthread_db.so
libtevent.so.0 (libc6,x86-64) => /lib64/libtevent.so.0
libtdb.so.1 (libc6,x86-64) => /lib64/libtdb.so.1
libtcl8.5.so (libc6,x86-64) => /lib64/libtcl8.5.so
libtasn1.so.6 (libc6,x86-64) => /lib64/libtasn1.so.6
libtalloc.so.2 (libc6,x86-64) => /lib64/libtalloc.so.2
libsystemd.so.0 (libc6,x86-64) => /lib64/libsystemd.so.0
libsystemd-login.so.0 (libc6,x86-64) => /lib64/libsystemd-login.so.0
libsystemd-journal.so.0 (libc6,x86-64) => /lib64/libsystemd-journal.so.0
libsystemd-id128.so.0 (libc6,x86-64) => /lib64/libsystemd-id128.so.0
libsystemd-daemon.so.0 (libc6,x86-64) => /lib64/libsystemd-daemon.so.0
libsysrepo.so.0.7 (libc6,x86-64) => /lib64/libsysrepo.so.0.7
libsysrepo.so (libc6,x86-64) => /lib64/libsysrepo.so
libsysfs.so.2 (libc6,x86-64) => /lib64/libsysfs.so.2
libstdc++.so.6 (libc6,x86-64) => /lib64/libstdc++.so.6
libssl3.so (libc6,x86-64) => /lib64/libssl3.so
libssl.so.10 (libc6,x86-64) => /lib64/libssl.so.10
libssl.so (libc6,x86-64) => /lib64/libssl.so
libssh2.so.1 (libc6,x86-64) => /lib64/libssh2.so.1
libssh_threads.so.4 (libc6,x86-64) => /lib/libssh_threads.so.4
libssh_threads.so (libc6,x86-64) => /lib/libssh_threads.so
libssh.so.4 (libc6,x86-64) => /lib/libssh.so.4
libssh.so (libc6,x86-64) => /lib/libssh.so
libss.so.2 (libc6,x86-64) => /lib64/libss.so.2
libsqlite3.so.0 (libc6,x86-64) => /lib64/libsqlite3.so.0
libsoftokn3.so (libc6,x86-64) => /lib64/libsoftokn3.so
libsnappy.so.1 (libc6,x86-64) => /lib64/libsnappy.so.1
libsmime3.so (libc6,x86-64) => /lib64/libsmime3.so
libsmi.so.2 (libc6,x86-64) => /lib64/libsmi.so.2
libslapi-2.4.so.2 (libc6,x86-64) => /lib64/libslapi-2.4.so.2
libslang.so.2 (libc6,x86-64) => /lib64/libslang.so.2
libsepol.so.1 (libc6,x86-64) => /lib64/libsepol.so.1
libsepol.so (libc6,x86-64) => /lib64/libsepol.so
libsensors.so.4 (libc6,x86-64) => /lib64/libsensors.so.4
libsemanage.so.1 (libc6,x86-64) => /lib64/libsemanage.so.1
libselinux.so.1 (libc6,x86-64) => /lib64/libselinux.so.1
libselinux.so (libc6,x86-64) => /lib64/libselinux.so
libsefs.so.4 (libc6,x86-64) => /lib64/libsefs.so.4
libseccomp.so.2 (libc6,x86-64) => /lib64/libseccomp.so.2
libseaudit.so.4 (libc6,x86-64) => /lib64/libseaudit.so.4
libsdc.so (libc6,x86-64) => /lib64/libsdc.so
libsctp.so.1 (libc6,x86-64) => /lib64/libsctp.so.1
libsasl2.so.3 (libc6,x86-64) => /lib64/libsasl2.so.3
libruby.so.2.0 (libc6,x86-64) => /lib64/libruby.so.2.0
librt.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/librt.so.1
librt.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/librt.so
librpmsign.so.1 (libc6,x86-64) => /lib64/librpmsign.so.1
librpmio.so.3 (libc6,x86-64) => /lib64/librpmio.so.3
librpmbuild.so.3 (libc6,x86-64) => /lib64/librpmbuild.so.3
librpm.so.3 (libc6,x86-64) => /lib64/librpm.so.3
librom1394.so.0 (libc6,x86-64) => /lib64/librom1394.so.0
librom1394.so (libc6,x86-64) => /lib64/librom1394.so
libresolv.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libresolv.so.2
libresolv.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libresolv.so
libref_array.so.1 (libc6,x86-64) => /lib64/libref_array.so.1
libredblack.so.0 (libc6,x86-64) => /usr/local/lib/libredblack.so.0
libredblack.so (libc6,x86-64) => /usr/local/lib/libredblack.so
libreadline.so.6 (libc6,x86-64) => /lib64/libreadline.so.6
libraw1394.so.11 (libc6,x86-64) => /lib64/libraw1394.so.11
libraw1394.so (libc6,x86-64) => /lib64/libraw1394.so
libqrencode.so.3 (libc6,x86-64) => /lib64/libqrencode.so.3
libqpol.so.1 (libc6,x86-64) => /lib64/libqpol.so.1
libp11-kit.so.0 (libc6,x86-64) => /lib64/libp11-kit.so.0
libpython2.7.so.1.0 (libc6,x86-64) => /lib64/libpython2.7.so.1.0
libpytalloc-util.so.2 (libc6,x86-64) => /lib64/libpytalloc-util.so.2
libpyglib-2.0-python.so.0 (libc6,x86-64) => /lib64/libpyglib-2.0-python.so.0
libpyglib-2.0-python.so (libc6,x86-64) => /lib64/libpyglib-2.0-python.so
libpwquality.so.1 (libc6,x86-64) => /lib64/libpwquality.so.1
libpthread.so.0 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libpthread.so.0
libpth.so.20 (libc6,x86-64) => /lib64/libpth.so.20
libproxy.so.1 (libc6,x86-64) => /lib64/libproxy.so.1
libprotoc.so.8 (libc6,x86-64) => /lib64/libprotoc.so.8
libprotobuf.so.8 (libc6,x86-64) => /lib64/libprotobuf.so.8
libprotobuf-c.so.1 (libc6,x86-64) => /lib64/libprotobuf-c.so.1
libprotobuf-c.so (libc6,x86-64) => /lib64/libprotobuf-c.so
libprocps.so.4 (libc6,x86-64) => /lib64/libprocps.so.4
libpq.so.5 (libc6,x86-64) => /lib64/libpq.so.5
libpopt.so.0 (libc6,x86-64) => /lib64/libpopt.so.0
libpolkit-gobject-1.so.0 (libc6,x86-64) => /lib64/libpolkit-gobject-1.so.0
libpolkit-agent-1.so.0 (libc6,x86-64) => /lib64/libpolkit-agent-1.so.0
libpoldiff.so.1 (libc6,x86-64) => /lib64/libpoldiff.so.1
libpng15.so.15 (libc6,x86-64) => /lib64/libpng15.so.15
libply.so.2 (libc6,x86-64) => /lib64/libply.so.2
libply-splash-core.so.2 (libc6,x86-64) => /lib64/libply-splash-core.so.2
libply-boot-client.so.2 (libc6,x86-64) => /lib64/libply-boot-client.so.2
libplds4.so (libc6,x86-64) => /lib64/libplds4.so
libplc4.so (libc6,x86-64) => /lib64/libplc4.so
libpixman-1.so.0 (libc6,x86-64) => /lib64/libpixman-1.so.0
libpipeline.so.1 (libc6,x86-64) => /lib64/libpipeline.so.1
libpgtypes.so.3 (libc6,x86-64) => /lib64/libpgtypes.so.3
libperf-jvmti.so (libc6,x86-64) => /lib64/libperf-jvmti.so
libpcre32.so.0 (libc6,x86-64) => /lib64/libpcre32.so.0
libpcre32.so (libc6,x86-64) => /lib64/libpcre32.so
libpcre16.so.0 (libc6,x86-64) => /lib64/libpcre16.so.0
libpcre16.so (libc6,x86-64) => /lib64/libpcre16.so
libpcreposix.so.0 (libc6,x86-64) => /lib64/libpcreposix.so.0
libpcreposix.so (libc6,x86-64) => /lib64/libpcreposix.so
libpcrecpp.so.0 (libc6,x86-64) => /lib64/libpcrecpp.so.0
libpcrecpp.so (libc6,x86-64) => /lib64/libpcrecpp.so
libpcre.so.1 (libc6,x86-64) => /lib64/libpcre.so.1
libpcre.so (libc6,x86-64) => /lib64/libpcre.so
libpcprofile.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libpcprofile.so
libpciaccess.so.0 (libc6,x86-64) => /lib64/libpciaccess.so.0
libpci.so.3 (libc6,x86-64) => /lib64/libpci.so.3
libpcap.so.1 (libc6,x86-64) => /lib64/libpcap.so.1
libpath_utils.so.1 (libc6,x86-64) => /lib64/libpath_utils.so.1
libparted.so.2 (libc6,x86-64) => /lib64/libparted.so.2
libparted-fs-resize.so.0 (libc6,x86-64) => /lib64/libparted-fs-resize.so.0
libparted-fs-resize.so (libc6,x86-64) => /lib64/libparted-fs-resize.so
libpanelw.so.5 (libc6,x86-64) => /lib64/libpanelw.so.5
libpanel.so.5 (libc6,x86-64) => /lib64/libpanel.so.5
libpamc.so.0 (libc6,x86-64) => /lib64/libpamc.so.0
libpam_misc.so.0 (libc6,x86-64) => /lib64/libpam_misc.so.0
libpam.so.0 (libc6,x86-64) => /lib64/libpam.so.0
libopts.so.25 (libc6,x86-64) => /lib64/libopts.so.25
libopcodes-2.27-27.base.el7.so (libc6,x86-64) => /lib64/libopcodes-2.27-27.base.el7.so
libomapi.so.0 (libc6,x86-64) => /lib64/libomapi.so.0
libnuma.so.1 (libc6,x86-64) => /lib64/libnuma.so.1
libnss3.so (libc6,x86-64) => /lib64/libnss3.so
libnssutil3.so (libc6,x86-64) => /lib64/libnssutil3.so
libnsssysinit.so (libc6,x86-64) => /lib64/libnsssysinit.so
libnsspem.so (libc6,x86-64) => /lib64/libnsspem.so
libnssdbm3.so (libc6,x86-64) => /lib64/libnssdbm3.so
libnss_nisplus.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_nisplus.so.2
libnss_nisplus.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_nisplus.so
libnss_nis.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_nis.so.2
libnss_nis.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_nis.so
libnss_mymachines.so.2 (libc6,x86-64) => /lib64/libnss_mymachines.so.2
libnss_myhostname.so.2 (libc6,x86-64) => /lib64/libnss_myhostname.so.2
libnss_hesiod.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_hesiod.so.2
libnss_hesiod.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_hesiod.so
libnss_files.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_files.so.2
libnss_files.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_files.so
libnss_dns.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_dns.so.2
libnss_dns.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_dns.so
libnss_db.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_db.so.2
libnss_db.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_db.so
libnss_compat.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_compat.so.2
libnss_compat.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnss_compat.so
libnspr4.so (libc6,x86-64) => /lib64/libnspr4.so
libnsl.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnsl.so.1
libnsl.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libnsl.so
libnm.so.0 (libc6,x86-64) => /lib64/libnm.so.0
libnl-3.so.200 (libc6,x86-64) => /lib64/libnl-3.so.200
libnl-xfrm-3.so.200 (libc6,x86-64) => /lib64/libnl-xfrm-3.so.200
libnl-route-3.so.200 (libc6,x86-64) => /lib64/libnl-route-3.so.200
libnl-nf-3.so.200 (libc6,x86-64) => /lib64/libnl-nf-3.so.200
libnl-idiag-3.so.200 (libc6,x86-64) => /lib64/libnl-idiag-3.so.200
libnl-genl-3.so.200 (libc6,x86-64) => /lib64/libnl-genl-3.so.200
libnfnetlink.so.0 (libc6,x86-64) => /lib64/libnfnetlink.so.0
libnettle.so.4 (libc6,x86-64) => /lib64/libnettle.so.4
libnetsnmptrapd.so.31 (libc6,x86-64) => /lib64/libnetsnmptrapd.so.31
libnetsnmpmibs.so.31 (libc6,x86-64) => /lib64/libnetsnmpmibs.so.31
libnetsnmphelpers.so.31 (libc6,x86-64) => /lib64/libnetsnmphelpers.so.31
libnetsnmpagent.so.31 (libc6,x86-64) => /lib64/libnetsnmpagent.so.31
libnetsnmp.so.31 (libc6,x86-64) => /lib64/libnetsnmp.so.31
libnetfilter_conntrack.so.3 (libc6,x86-64) => /lib64/libnetfilter_conntrack.so.3
libnetconf2.so.0.12 (libc6,x86-64) => /usr/local/lib64/libnetconf2.so.0.12
libnetconf2.so (libc6,x86-64) => /usr/local/lib64/libnetconf2.so
libncursesw.so.5 (libc6,x86-64) => /lib64/libncursesw.so.5
libncurses.so.5 (libc6,x86-64) => /lib64/libncurses.so.5
libncurses++w.so.5 (libc6,x86-64) => /lib64/libncurses++w.so.5
libncurses++.so.5 (libc6,x86-64) => /lib64/libncurses++.so.5
libmysqlclient.so.18 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.18
libmpfr.so.4 (libc6,x86-64) => /lib64/libmpfr.so.4
libmpc.so.3 (libc6,x86-64) => /lib64/libmpc.so.3
libmozjs-17.0.so (libc6,x86-64) => /lib64/libmozjs-17.0.so
libmount.so.1 (libc6,x86-64) => /lib64/libmount.so.1
libmodman.so.1 (libc6,x86-64) => /lib64/libmodman.so.1
libmnl.so.0 (libc6,x86-64) => /lib64/libmnl.so.0
libmenuw.so.5 (libc6,x86-64) => /lib64/libmenuw.so.5
libmenu.so.5 (libc6,x86-64) => /lib64/libmenu.so.5
libmemusage.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libmemusage.so
libmeas.so (libc6,x86-64) => /lib64/libmeas.so
libmagic.so.1 (libc6,x86-64) => /lib64/libmagic.so.1
libm.so.6 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libm.so.6
libm.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libm.so
liblz4.so.1 (libc6,x86-64) => /lib64/liblz4.so.1
liblzo2.so.2 (libc6,x86-64) => /lib64/liblzo2.so.2
liblzma.so.5 (libc6,x86-64) => /lib64/liblzma.so.5
liblwres.so.90 (libc6,x86-64) => /lib64/liblwres.so.90
liblvm2cmd.so.2.02 (libc6,x86-64) => /lib64/liblvm2cmd.so.2.02
liblvm2app.so.2.2 (libc6,x86-64) => /lib64/liblvm2app.so.2.2
liblua-5.1.so (libc6,x86-64) => /lib64/liblua-5.1.so
liblogging.so (libc6,x86-64) => /lib64/liblogging.so
libldns.so.1 (libc6,x86-64) => /lib64/libldns.so.1
libldb.so.1 (libc6,x86-64) => /lib64/libldb.so.1
libldap_r-2.4.so.2 (libc6,x86-64) => /lib64/libldap_r-2.4.so.2
libldap-2.4.so.2 (libc6,x86-64) => /lib64/libldap-2.4.so.2
liblber-2.4.so.2 (libc6,x86-64) => /lib64/liblber-2.4.so.2
libk5crypto.so.3 (libc6,x86-64) => /lib64/libk5crypto.so.3
libk5crypto.so (libc6,x86-64) => /lib64/libk5crypto.so
libkrb5support.so.0 (libc6,x86-64) => /lib64/libkrb5support.so.0
libkrb5support.so (libc6,x86-64) => /lib64/libkrb5support.so
libkrb5.so.3 (libc6,x86-64) => /lib64/libkrb5.so.3
libkrb5.so (libc6,x86-64) => /lib64/libkrb5.so
libkrad.so.0 (libc6,x86-64) => /lib64/libkrad.so.0
libkrad.so (libc6,x86-64) => /lib64/libkrad.so
libkms.so.1 (libc6,x86-64) => /lib64/libkms.so.1
libkmod.so.2 (libc6,x86-64) => /lib64/libkmod.so.2
libkeyutils.so.1 (libc6,x86-64) => /lib64/libkeyutils.so.1
libkeyutils.so (libc6,x86-64) => /lib64/libkeyutils.so
libkdb5.so.8 (libc6,x86-64) => /lib64/libkdb5.so.8
libkdb5.so (libc6,x86-64) => /lib64/libkdb5.so
libkadm5srv_mit.so.11 (libc6,x86-64) => /lib64/libkadm5srv_mit.so.11
libkadm5srv_mit.so (libc6,x86-64) => /lib64/libkadm5srv_mit.so
libkadm5clnt_mit.so.11 (libc6,x86-64) => /lib64/libkadm5clnt_mit.so.11
libkadm5clnt_mit.so (libc6,x86-64) => /lib64/libkadm5clnt_mit.so
libjson.so.0 (libc6,x86-64) => /lib64/libjson.so.0
libjson-c.so.2 (libc6,x86-64) => /lib64/libjson-c.so.2
libjpeg.so.62 (libc6,x86-64) => /lib64/libjpeg.so.62
libjansson.so.4 (libc6,x86-64) => /lib64/libjansson.so.4
libisccfg.so.90 (libc6,x86-64) => /lib64/libisccfg.so.90
libisccfg-export.so.90 (libc6,x86-64) => /lib64/libisccfg-export.so.90
libisccc.so.90 (libc6,x86-64) => /lib64/libisccc.so.90
libisc.so.95 (libc6,x86-64) => /lib64/libisc.so.95
libisc-export.so.95 (libc6,x86-64) => /lib64/libisc-export.so.95
libirs-export.so.90 (libc6,x86-64) => /lib64/libirs-export.so.90
libip6tc.so.0 (libc6,x86-64) => /lib64/libip6tc.so.0
libip4tc.so.0 (libc6,x86-64) => /lib64/libip4tc.so.0
libiptc.so.0 (libc6,x86-64) => /lib64/libiptc.so.0
libipset.so.3 (libc6,x86-64) => /lib64/libipset.so.3
libipm_cli.so.0 (libc6,x86-64) => /lib64/libipm_cli.so.0
libidn.so.11 (libc6,x86-64) => /lib64/libidn.so.11
libhogweed.so.2 (libc6,x86-64) => /lib64/libhogweed.so.2
libhistory.so.6 (libc6,x86-64) => /lib64/libhistory.so.6
libgudev-1.0.so.0 (libc6,x86-64) => /lib64/libgudev-1.0.so.0
libgthread-2.0.so.0 (libc6,x86-64) => /lib64/libgthread-2.0.so.0
libgssrpc.so.4 (libc6,x86-64) => /lib64/libgssrpc.so.4
libgssrpc.so (libc6,x86-64) => /lib64/libgssrpc.so
libgssapi_krb5.so.2 (libc6,x86-64) => /lib64/libgssapi_krb5.so.2
libgssapi_krb5.so (libc6,x86-64) => /lib64/libgssapi_krb5.so
libgrpc_plugin_support.so (libc6,x86-64) => /lib64/libgrpc_plugin_support.so
libgrpc.so (libc6,x86-64) => /lib64/libgrpc.so
libgrpc++.so (libc6,x86-64) => /lib64/libgrpc++.so
libgpr.so (libc6,x86-64) => /lib64/libgpr.so
libgpgme.so.11 (libc6,x86-64) => /lib64/libgpgme.so.11
libgpgme-pthread.so.11 (libc6,x86-64) => /lib64/libgpgme-pthread.so.11
libgpg-error.so.0 (libc6,x86-64) => /lib64/libgpg-error.so.0
libgomp.so.1 (libc6,x86-64) => /lib64/libgomp.so.1
libgobject-2.0.so.0 (libc6,x86-64) => /lib64/libgobject-2.0.so.0
libgnutls.so.28 (libc6,x86-64) => /lib64/libgnutls.so.28
libgnutls-dane.so.0 (libc6,x86-64) => /lib64/libgnutls-dane.so.0
libgnome-keyring.so.0 (libc6,x86-64) => /lib64/libgnome-keyring.so.0
libgmpxx.so.4 (libc6,x86-64) => /lib64/libgmpxx.so.4
libgmp.so.10 (libc6,x86-64) => /lib64/libgmp.so.10
libgmodule-2.0.so.0 (libc6,x86-64) => /lib64/libgmodule-2.0.so.0
libglib-2.0.so.0 (libc6,x86-64) => /lib64/libglib-2.0.so.0
libglapi.so.0 (libc6,x86-64) => /lib64/libglapi.so.0
libgirepository-1.0.so.1 (libc6,x86-64) => /lib64/libgirepository-1.0.so.1
libgio-2.0.so.0 (libc6,x86-64) => /lib64/libgio-2.0.so.0
libgif.so.4 (libc6,x86-64) => /lib64/libgif.so.4
libgettextsrc-0.19.8.1.so (libc6,x86-64) => /lib64/libgettextsrc-0.19.8.1.so
libgettextpo.so.0 (libc6,x86-64) => /lib64/libgettextpo.so.0
libgettextlib-0.19.8.1.so (libc6,x86-64) => /lib64/libgettextlib-0.19.8.1.so
libgdbm_compat.so.4 (libc6,x86-64) => /lib64/libgdbm_compat.so.4
libgdbm.so.4 (libc6,x86-64) => /lib64/libgdbm.so.4
libgcrypt.so.11 (libc6,x86-64) => /lib64/libgcrypt.so.11
libgcc_s.so.1 (libc6,x86-64) => /lib64/libgcc_s.so.1
libgbm.so.1 (libc6,x86-64) => /lib64/libgbm.so.1
libganglia.so.0 (libc6,x86-64) => /lib64/libganglia.so.0
libganglia.so (libc6,x86-64) => /lib64/libganglia.so
libgamin-1.so.0 (libc6,x86-64) => /lib64/libgamin-1.so.0
libfreetype.so.6 (libc6,x86-64) => /lib64/libfreetype.so.6
libfreebl3.so (libc6,x86-64) => /lib64/libfreebl3.so
libfreeblpriv3.so (libc6,x86-64) => /lib64/libfreeblpriv3.so
libformw.so.5 (libc6,x86-64) => /lib64/libformw.so.5
libform.so.5 (libc6,x86-64) => /lib64/libform.so.5
libfontenc.so.1 (libc6,x86-64) => /lib64/libfontenc.so.1
libfontconfig.so.1 (libc6,x86-64) => /lib64/libfontconfig.so.1
libfipscheck.so.1 (libc6,x86-64) => /lib64/libfipscheck.so.1
libffi.so.6 (libc6,x86-64) => /lib64/libffi.so.6
libfastjson.so.4 (libc6,x86-64) => /lib64/libfastjson.so.4
libfam.so.0 (libc6,x86-64) => /lib64/libfam.so.0
libe2p.so.2 (libc6,x86-64) => /lib64/libe2p.so.2
libext2fs.so.2 (libc6,x86-64) => /lib64/libext2fs.so.2
libexslt.so.0 (libc6,x86-64) => /lib64/libexslt.so.0
libexpect5.45.so (libc6,x86-64) => /lib64/libexpect5.45.so
libexpect.so (libc6,x86-64) => /lib64/libexpect.so
libexpat.so.1 (libc6,x86-64) => /lib64/libexpat.so.1
libevent_pthreads-2.0.so.5 (libc6,x86-64) => /lib64/libevent_pthreads-2.0.so.5
libevent_openssl-2.0.so.5 (libc6,x86-64) => /lib64/libevent_openssl-2.0.so.5
libevent_extra-2.0.so.5 (libc6,x86-64) => /lib64/libevent_extra-2.0.so.5
libevent_core-2.0.so.5 (libc6,x86-64) => /lib64/libevent_core-2.0.so.5
libevent-2.0.so.5 (libc6,x86-64) => /lib64/libevent-2.0.so.5
libev.so.4 (libc6,x86-64) => /lib64/libev.so.4
libev.so (libc6,x86-64) => /lib64/libev.so
libestr.so.0 (libc6,x86-64) => /lib64/libestr.so.0
libelf.so.1 (libc6,x86-64) => /lib64/libelf.so.1
libedit.so.0 (libc6,x86-64) => /lib64/libedit.so.0
libecpg_compat.so.3 (libc6,x86-64) => /lib64/libecpg_compat.so.3
libecpg.so.6 (libc6,x86-64) => /lib64/libecpg.so.6
libebtc.so (libc6,x86-64) => /lib64/libebtc.so
libdw.so.1 (libc6,x86-64) => /lib64/libdw.so.1
libdrm_radeon.so.1 (libc6,x86-64) => /lib64/libdrm_radeon.so.1
libdrm_nouveau.so.2 (libc6,x86-64) => /lib64/libdrm_nouveau.so.2
libdrm_intel.so.1 (libc6,x86-64) => /lib64/libdrm_intel.so.1
libdrm_amdgpu.so.1 (libc6,x86-64) => /lib64/libdrm_amdgpu.so.1
libdrm.so.2 (libc6,x86-64) => /lib64/libdrm.so.2
libdns.so.100 (libc6,x86-64) => /lib64/libdns.so.100
libdns-export.so.100 (libc6,x86-64) => /lib64/libdns-export.so.100
libdl.so.2 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libdl.so.2
libdl.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libdl.so
libdhcpctl.so.0 (libc6,x86-64) => /lib64/libdhcpctl.so.0
libdevmapper.so.1.02 (libc6,x86-64) => /lib64/libdevmapper.so.1.02
libdevmapper-event.so.1.02 (libc6,x86-64) => /lib64/libdevmapper-event.so.1.02
libdevmapper-event-lvm2thin.so (libc6,x86-64) => /lib64/libdevmapper-event-lvm2thin.so
libdevmapper-event-lvm2snapshot.so (libc6,x86-64) => /lib64/libdevmapper-event-lvm2snapshot.so
libdevmapper-event-lvm2raid.so (libc6,x86-64) => /lib64/libdevmapper-event-lvm2raid.so
libdevmapper-event-lvm2mirror.so (libc6,x86-64) => /lib64/libdevmapper-event-lvm2mirror.so
libdevmapper-event-lvm2.so.2.02 (libc6,x86-64) => /lib64/libdevmapper-event-lvm2.so.2.02
libdbus-1.so.3 (libc6,x86-64) => /lib64/libdbus-1.so.3
libdbus-glib-1.so.2 (libc6,x86-64) => /lib64/libdbus-glib-1.so.2
libdb-5.3.so (libc6,x86-64) => /lib64/libdb-5.3.so
libdaemon.so.0 (libc6,x86-64) => /lib64/libdaemon.so.0
libcurl.so.4 (libc6,x86-64) => /lib64/libcurl.so.4
libcryptsetup.so.4 (libc6,x86-64) => /lib64/libcryptsetup.so.4
libcrypto.so.10 (libc6,x86-64) => /lib64/libcrypto.so.10
libcrypto.so (libc6,x86-64) => /lib64/libcrypto.so
libcrypt.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libcrypt.so.1
libcrypt.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libcrypt.so
libcroco-0.6.so.3 (libc6,x86-64) => /lib64/libcroco-0.6.so.3
libcrack.so.2 (libc6,x86-64) => /lib64/libcrack.so.2
libcpupower.so.0 (libc6,x86-64) => /lib64/libcpupower.so.0
libcpprest.so.2.9 (libc6,x86-64) => /lib64/libcpprest.so.2.9
libconfuse.so.0 (libc6,x86-64) => /lib64/libconfuse.so.0
libcom_err.so.2 (libc6,x86-64) => /lib64/libcom_err.so.2
libcom_err.so (libc6,x86-64) => /lib64/libcom_err.so
libclang.so (libc6,x86-64) => /usr/lib64/llvm/libclang.so
libcidn.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libcidn.so.1
libcidn.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libcidn.so
libcgroup.so.1 (libc6,x86-64) => /lib64/libcgroup.so.1
libcares.so.2 (libc6,x86-64) => /lib64/libcares.so.2
libcap.so.2 (libc6,x86-64) => /lib64/libcap.so.2
libcap-ng.so.0 (libc6,x86-64) => /lib64/libcap-ng.so.0
libcairo.so.2 (libc6,x86-64) => /lib64/libcairo.so.2
libcairo-script-interpreter.so.2 (libc6,x86-64) => /lib64/libcairo-script-interpreter.so.2
libcairo-gobject.so.2 (libc6,x86-64) => /lib64/libcairo-gobject.so.2
libc.so.6 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libc.so.6
libbz2.so.1 (libc6,x86-64) => /lib64/libbz2.so.1
libboringssl.so (libc6,x86-64) => /lib64/libboringssl.so
libboringcrypto.so (libc6,x86-64) => /lib64/libboringcrypto.so
libboost_thread.so.1.61.0 (libc6,x86-64) => /lib64/libboost_thread.so.1.61.0
libboost_system.so.1.61.0 (libc6,x86-64) => /lib64/libboost_system.so.1.61.0
libboost_regex.so.1.61.0 (libc6,x86-64) => /lib64/libboost_regex.so.1.61.0
libboost_random.so.1.61.0 (libc6,x86-64) => /lib64/libboost_random.so.1.61.0
libboost_locale.so.1.61.0 (libc6,x86-64) => /lib64/libboost_locale.so.1.61.0
libboost_filesystem.so.1.61.0 (libc6,x86-64) => /lib64/libboost_filesystem.so.1.61.0
libboost_date_time.so.1.61.0 (libc6,x86-64) => /lib64/libboost_date_time.so.1.61.0
libboost_chrono.so.1.61.0 (libc6,x86-64) => /lib64/libboost_chrono.so.1.61.0
libboost_atomic.so.1.61.0 (libc6,x86-64) => /lib64/libboost_atomic.so.1.61.0
libblkid.so.1 (libc6,x86-64) => /lib64/libblkid.so.1
libbind9.so.90 (libc6,x86-64) => /lib64/libbind9.so.90
libbfd-2.27-27.base.el7.so (libc6,x86-64) => /lib64/libbfd-2.27-27.base.el7.so
libavc1394.so.0 (libc6,x86-64) => /lib64/libavc1394.so.0
libavc1394.so (libc6,x86-64) => /lib64/libavc1394.so
libauparse.so.0 (libc6,x86-64) => /lib64/libauparse.so.0
libaudit.so.1 (libc6,x86-64) => /lib64/libaudit.so.1
libattr.so.1 (libc6,x86-64) => /lib64/libattr.so.1
libassuan.so.0 (libc6,x86-64) => /lib64/libassuan.so.0
libasprintf.so.0 (libc6,x86-64) => /lib64/libasprintf.so.0
libasound.so.2 (libc6,x86-64) => /lib64/libasound.so.2
libasm.so.1 (libc6,x86-64) => /lib64/libasm.so.1
libarchive.so.13 (libc6,x86-64) => /lib64/libarchive.so.13
libapr-1.so.0 (libc6,x86-64) => /lib64/libapr-1.so.0
libapol.so.4 (libc6,x86-64) => /lib64/libapol.so.4
libanl.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libanl.so.1
libanl.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libanl.so
libalarm.so (libc6,x86-64) => /lib64/libalarm.so
libaio.so.1.0.0 (libc6,x86-64) => /lib64/libaio.so.1.0.0
libaio.so.1 (libc6,x86-64) => /lib64/libaio.so.1
libacl.so.1 (libc6,x86-64) => /lib64/libacl.so.1
libX11.so.6 (libc6,x86-64) => /lib64/libX11.so.6
libX11-xcb.so.1 (libc6,x86-64) => /lib64/libX11-xcb.so.1
libXxf86vm.so.1 (libc6,x86-64) => /lib64/libXxf86vm.so.1
libXtst.so.6 (libc6,x86-64) => /lib64/libXtst.so.6
libXrender.so.1 (libc6,x86-64) => /lib64/libXrender.so.1
libXi.so.6 (libc6,x86-64) => /lib64/libXi.so.6
libXfont.so.1 (libc6,x86-64) => /lib64/libXfont.so.1
libXfixes.so.3 (libc6,x86-64) => /lib64/libXfixes.so.3
libXext.so.6 (libc6,x86-64) => /lib64/libXext.so.6
libXdamage.so.1 (libc6,x86-64) => /lib64/libXdamage.so.1
libXau.so.6 (libc6,x86-64) => /lib64/libXau.so.6
libSysrepo-cpp.so.0.7 (libc6,x86-64) => /lib64/libSysrepo-cpp.so.0.7
libSysrepo-cpp.so (libc6,x86-64) => /lib64/libSysrepo-cpp.so
libSegFault.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libSegFault.so
libSM.so.6 (libc6,x86-64) => /lib64/libSM.so.6
libLTO.so (libc6,x86-64) => /usr/lib64/llvm/libLTO.so
libLLVM-3.4.so (libc6,x86-64) => /usr/lib64/llvm/libLLVM-3.4.so
libICE.so.6 (libc6,x86-64) => /lib64/libICE.so.6
libGeoIPUpdate.so.0 (libc6,x86-64) => /lib64/libGeoIPUpdate.so.0
libGeoIP.so.1 (libc6,x86-64) => /lib64/libGeoIP.so.1
libGL.so.1 (libc6,x86-64) => /lib64/libGL.so.1
libEGL.so.1 (libc6,x86-64) => /lib64/libEGL.so.1
libBrokenLocale.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libBrokenLocale.so.1
libBrokenLocale.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib64/libBrokenLocale.so
ld-linux-x86-64.so.2 (libc6,x86-64) => /lib64/ld-linux-x86-64.so.2
Thanks Darcy
Hi Darcy,
ldconfig
output seems fine. So, it is good to know that netopeer2
is not even required to reproduce ti, we need to find the simplest case I can reproduce. So, please recompile sysrepo (with a clean repository) and post the exact commands you have used until it crashed. I will expect a sysrepoctl
call installing t1
model and then one or more sysrepocfg
calls that import/do something with t1
data. Thank you.
Regards, Michal
Hi Michal, In fact, after the sysrepo-netopeer2 environment is startup and no other data is written to the datastore, the crash will happen directly. The process is below:
Clean the repository:
# ll /etc/sysrepo
total 8
drwxr-xr-x. 4 root root 4096 Aug 29 08:37 data
drwxr-xr-x. 3 root root 4096 Aug 29 08:37 yang
# rm -rf /etc/sysrepo
# ll /etc/sysrepo
ls: cannot access /etc/sysrepo: No such file or directory
Compile the sysrepo
# cd /root/sysrepo
# cd build
# rm -rf *
# cmake -DCMAKE_BUILD_TYPE=Release ENABLE_CONFIGURATION=on -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
-- The C compiler identification is Clang 3.4.2
-- The CXX compiler identification is Clang 3.4.2
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Preparing systemwide build of sysrepo v. 0.7.4
-- sysrepo repository location: /etc/sysrepo
-- Found ev: /usr/lib64/libev.so
-- Found yang: /usr/local/lib64/libyang.so
-- Found protobuf-c: /usr/lib64/libprotobuf-c.so
-- Could NOT find avl (missing: AVL_LIBRARY AVL_INCLUDE_DIR)
-- Found redblack: /usr/local/lib/libredblack.so
-- libredblack will be used for binary tree manipulations.
-- Looking for pthread_rwlockattr_setkind_np
-- Looking for pthread_rwlockattr_setkind_np - found
-- Looking for getpeereid
-- Looking for getpeereid - not found
-- Looking for getpeerucred
-- Looking for getpeerucred - not found
-- Looking for include file ucred.h
-- Looking for include file ucred.h - not found
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for setfsuid
-- Looking for setfsuid - found
-- Looking for fsetxattr
-- Looking for fsetxattr - found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- Performing Test HAVE_STAT_ST_MTIM
-- Performing Test HAVE_STAT_ST_MTIM - Success
-- Example code and YANG models will be built and installed.
CMake Warning at CMakeLists.txt:244 (find_package):
By not providing "FindCMOCKA.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CMOCKA", but
CMake did not find one.
Could not find a package configuration file provided by "CMOCKA" with any of the following names:
CMOCKAConfig.cmake
cmocka-config.cmake
Add the installation prefix of "CMOCKA" to CMAKE_PREFIX_PATH or set "CMOCKA_DIR" to a directory containing one of the above files. If "CMOCKA" provides a separate development package or SDK, be sure it has been installed.
CMake Warning at CMakeLists.txt:250 (MESSAGE): CMocka not found, tests are disabled.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) CMake Warning at swig/CMakeLists.txt:11 (message): SWIG library not found
-- Configuring done -- Generating done -- Build files have been written to: /root/sysrepo/build
2. Install the sysrepo
[ 1%] Running C protocol buffer compiler on /root/sysrepo/src/sysrepo.proto Scanning dependencies of target COMMON [ 2%] Building C object src/CMakeFiles/COMMON.dir/common/sysrepo.pb-c.c.o [ 4%] Building C object src/CMakeFiles/COMMON.dir/common/sr_common.c.o [ 5%] Building C object src/CMakeFiles/COMMON.dir/common/sr_utils.c.o [ 7%] Building C object src/CMakeFiles/COMMON.dir/common/sr_data_structs.c.o [ 8%] Building C object src/CMakeFiles/COMMON.dir/common/sr_logger.c.o [ 10%] Building C object src/CMakeFiles/COMMON.dir/common/sr_protobuf.c.o [ 11%] Building C object src/CMakeFiles/COMMON.dir/common/sr_mem_mgmt.c.o [ 13%] Building C object src/CMakeFiles/COMMON.dir/utils/plugins.c.o [ 14%] Building C object src/CMakeFiles/COMMON.dir/utils/trees.c.o [ 16%] Building C object src/CMakeFiles/COMMON.dir/utils/values.c.o [ 17%] Building C object src/CMakeFiles/COMMON.dir/utils/xpath.c.o [ 17%] Built target COMMON Scanning dependencies of target SR_ENGINE [ 19%] Building C object src/CMakeFiles/SR_ENGINE.dir/access_control.c.o [ 20%] Building C object src/CMakeFiles/SR_ENGINE.dir/connection_manager.c.o [ 22%] Building C object src/CMakeFiles/SR_ENGINE.dir/cm_session_manager.c.o [ 23%] Building C object src/CMakeFiles/SR_ENGINE.dir/request_processor.c.o [ 25%] Building C object src/CMakeFiles/SR_ENGINE.dir/rp_dt_xpath.c.o [ 26%] Building C object src/CMakeFiles/SR_ENGINE.dir/rp_dt_lookup.c.o [ 27%] Building C object src/CMakeFiles/SR_ENGINE.dir/rp_dt_get.c.o [ 29%] Building C object src/CMakeFiles/SR_ENGINE.dir/rp_dt_edit.c.o [ 30%] Building C object src/CMakeFiles/SR_ENGINE.dir/rp_dt_filter.c.o [ 32%] Building C object src/CMakeFiles/SR_ENGINE.dir/data_manager.c.o [ 33%] Building C object src/CMakeFiles/SR_ENGINE.dir/notification_processor.c.o [ 35%] Building C object src/CMakeFiles/SR_ENGINE.dir/persistence_manager.c.o [ 36%] Building C object src/CMakeFiles/SR_ENGINE.dir/module_dependencies.c.o [ 38%] Building C object src/CMakeFiles/SR_ENGINE.dir/nacm.c.o [ 38%] Built target SR_ENGINE Scanning dependencies of target SR_SRC [ 39%] Building C object src/CMakeFiles/SR_SRC.dir/clientlib/client_library.c.o [ 41%] Building C object src/CMakeFiles/SR_SRC.dir/clientlib/cl_subscription_manager.c.o [ 42%] Building C object src/CMakeFiles/SR_SRC.dir/clientlib/cl_common.c.o [ 44%] Building C object src/CMakeFiles/SR_SRC.dir/clientlib/cl_trees.c.o [ 44%] Built target SR_SRC Scanning dependencies of target sysrepo Linking C shared library libsysrepo.so [ 44%] Built target sysrepo Scanning dependencies of target sysrepo-plugind [ 45%] Building C object src/CMakeFiles/sysrepo-plugind.dir/executables/sysrepo-plugind.c.o Linking C executable sysrepo-plugind [ 45%] Built target sysrepo-plugind Scanning dependencies of target sysrepo_a Linking C static library libsysrepo.a [ 45%] Built target sysrepo_a Scanning dependencies of target sysrepocfg [ 47%] Building C object src/CMakeFiles/sysrepocfg.dir/executables/sysrepocfg.c.o Linking C executable sysrepocfg [ 47%] Built target sysrepocfg Scanning dependencies of target sysrepoctl [ 48%] Building C object src/CMakeFiles/sysrepoctl.dir/executables/sysrepoctl.c.o Linking C executable sysrepoctl [ 48%] Built target sysrepoctl Scanning dependencies of target sysrepod [ 50%] Building C object src/CMakeFiles/sysrepod.dir/executables/sysrepod.c.o Linking C executable sysrepod [ 50%] Built target sysrepod Scanning dependencies of target application_changes_example [ 51%] Building C object examples/CMakeFiles/application_changes_example.dir/application_changes_example.c.o Linking C executable application_changes_example [ 51%] Built target application_changes_example Scanning dependencies of target application_example [ 52%] Building C object examples/CMakeFiles/application_example.dir/application_example.c.o Linking C executable application_example [ 52%] Built target application_example Scanning dependencies of target application_fd_watcher_example [ 54%] Building C object examples/CMakeFiles/application_fd_watcher_example.dir/application_fd_watcher_example.c.o Linking C executable application_fd_watcher_example [ 54%] Built target application_fd_watcher_example Scanning dependencies of target event_notif_sub_example [ 55%] Building C object examples/CMakeFiles/event_notif_sub_example.dir/event_notif_sub_example.c.o Linking C executable event_notif_sub_example [ 55%] Built target event_notif_sub_example Scanning dependencies of target event_notif_sub_tree_example [ 57%] Building C object examples/CMakeFiles/event_notif_sub_tree_example.dir/event_notif_sub_tree_example.c.o Linking C executable event_notif_sub_tree_example [ 57%] Built target event_notif_sub_tree_example Scanning dependencies of target oper_data_example [ 58%] Building C object examples/CMakeFiles/oper_data_example.dir/oper_data_example.c.o Linking C executable oper_data_example [ 58%] Built target oper_data_example Scanning dependencies of target rpc_example [ 60%] Building C object examples/CMakeFiles/rpc_example.dir/rpc_example.c.o Linking C executable rpc_example [ 60%] Built target rpc_example Scanning dependencies of target rpc_tree_example [ 61%] Building C object examples/CMakeFiles/rpc_tree_example.dir/rpc_tree_example.c.o Linking C executable rpc_tree_example [ 61%] Built target rpc_tree_example Scanning dependencies of target sr_delete_item_example [ 63%] Building C object examples/CMakeFiles/sr_delete_item_example.dir/sr_delete_item_example.c.o Linking C executable sr_delete_item_example [ 63%] Built target sr_delete_item_example Scanning dependencies of target sr_get_changes_iter_example [ 64%] Building C object examples/CMakeFiles/sr_get_changes_iter_example.dir/sr_get_changes_iter_example.c.o Linking C executable sr_get_changes_iter_example [ 64%] Built target sr_get_changes_iter_example Scanning dependencies of target sr_get_item_example [ 66%] Building C object examples/CMakeFiles/sr_get_item_example.dir/sr_get_item_example.c.o Linking C executable sr_get_item_example [ 66%] Built target sr_get_item_example Scanning dependencies of target sr_get_items_example [ 67%] Building C object examples/CMakeFiles/sr_get_items_example.dir/sr_get_items_example.c.o Linking C executable sr_get_items_example [ 67%] Built target sr_get_items_example Scanning dependencies of target sr_get_items_iter_example [ 69%] Building C object examples/CMakeFiles/sr_get_items_iter_example.dir/sr_get_items_iter_example.c.o Linking C executable sr_get_items_iter_example [ 69%] Built target sr_get_items_iter_example Scanning dependencies of target sr_get_subtree_example [ 70%] Building C object examples/CMakeFiles/sr_get_subtree_example.dir/sr_get_subtree_example.c.o Linking C executable sr_get_subtree_example [ 70%] Built target sr_get_subtree_example Scanning dependencies of target sr_get_subtree_iter_example [ 72%] Building C object examples/CMakeFiles/sr_get_subtree_iter_example.dir/sr_get_subtree_iter_example.c.o Linking C executable sr_get_subtree_iter_example [ 72%] Built target sr_get_subtree_iter_example Scanning dependencies of target sr_get_subtrees_example [ 73%] Building C object examples/CMakeFiles/sr_get_subtrees_example.dir/sr_get_subtrees_example.c.o Linking C executable sr_get_subtrees_example [ 73%] Built target sr_get_subtrees_example Scanning dependencies of target sr_set_item_example [ 75%] Building C object examples/CMakeFiles/sr_set_item_example.dir/sr_set_item_example.c.o Linking C executable sr_set_item_example [ 75%] Built target sr_set_item_example Scanning dependencies of target oven [ 76%] Building C object examples/plugins/CMakeFiles/oven.dir/oven.c.o Linking C shared library liboven.so [ 76%] Built target oven Scanning dependencies of target turing-machine [ 77%] Building C object examples/plugins/CMakeFiles/turing-machine.dir/turing-machine.c.o Linking C shared library libturing-machine.so [ 77%] Built target turing-machine Scanning dependencies of target Sysrepo-cpp [ 79%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Sysrepo.cpp.o [ 80%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Connection.cpp.o [ 82%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Session.cpp.o [ 83%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Struct.cpp.o [ 85%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Xpath.cpp.o [ 86%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Tree.cpp.o [ 88%] Building CXX object swig/CMakeFiles/Sysrepo-cpp.dir/cpp/src/Internal.cpp.o Linking CXX shared library libSysrepo-cpp.so [ 88%] Built target Sysrepo-cpp Scanning dependencies of target cpp_application_changes_example [ 89%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/cpp_application_changes_example.cpp.o Linking CXX executable cpp_application_changes_example [ 89%] Built target cpp_application_changes_example Scanning dependencies of target cpp_application_example [ 91%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_application_example.dir/cpp_application_example.cpp.o Linking CXX executable cpp_application_example [ 91%] Built target cpp_application_example Scanning dependencies of target cpp_delete_item_example [ 92%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/cpp_delete_item_example.cpp.o Linking CXX executable cpp_delete_item_example [ 92%] Built target cpp_delete_item_example Scanning dependencies of target cpp_get_item_example [ 94%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_get_item_example.dir/cpp_get_item_example.cpp.o Linking CXX executable cpp_get_item_example [ 94%] Built target cpp_get_item_example Scanning dependencies of target cpp_get_items_example [ 95%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_get_items_example.dir/cpp_get_items_example.cpp.o Linking CXX executable cpp_get_items_example [ 95%] Built target cpp_get_items_example Scanning dependencies of target cpp_get_items_iter_example [ 97%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_get_items_iter_example.dir/cpp_get_items_iter_example.cpp.o Linking CXX executable cpp_get_items_iter_example [ 97%] Built target cpp_get_items_iter_example Scanning dependencies of target cpp_rpc_example [ 98%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_rpc_example.dir/cpp_rpc_example.cpp.o Linking CXX executable cpp_rpc_example [ 98%] Built target cpp_rpc_example Scanning dependencies of target cpp_set_item_example [100%] Building CXX object swig/cpp/examples/CMakeFiles/cpp_set_item_example.dir/cpp_set_item_example.cpp.o Linking CXX executable cpp_set_item_example [100%] Built target cpp_set_item_example
[ 17%] Built target COMMON [ 38%] Built target SR_ENGINE [ 44%] Built target SR_SRC [ 44%] Built target sysrepo [ 45%] Built target sysrepo-plugind [ 45%] Built target sysrepo_a [ 47%] Built target sysrepocfg [ 48%] Built target sysrepoctl [ 50%] Built target sysrepod [ 51%] Built target application_changes_example [ 52%] Built target application_example [ 54%] Built target application_fd_watcher_example [ 55%] Built target event_notif_sub_example [ 57%] Built target event_notif_sub_tree_example [ 58%] Built target oper_data_example [ 60%] Built target rpc_example [ 61%] Built target rpc_tree_example [ 63%] Built target sr_delete_item_example [ 64%] Built target sr_get_changes_iter_example [ 66%] Built target sr_get_item_example [ 67%] Built target sr_get_items_example [ 69%] Built target sr_get_items_iter_example [ 70%] Built target sr_get_subtree_example [ 72%] Built target sr_get_subtree_iter_example [ 73%] Built target sr_get_subtrees_example [ 75%] Built target sr_set_item_example [ 76%] Built target oven [ 77%] Built target turing-machine [ 88%] Built target Sysrepo-cpp [ 89%] Built target cpp_application_changes_example [ 91%] Built target cpp_application_example [ 92%] Built target cpp_delete_item_example [ 94%] Built target cpp_get_item_example [ 95%] Built target cpp_get_items_example [ 97%] Built target cpp_get_items_iter_example [ 98%] Built target cpp_rpc_example [100%] Built target cpp_set_item_example Install the project... -- Install configuration: "Release" -- Installing: /etc/sysrepo -- Installing: /etc/sysrepo/yang/ -- Installing: /etc/sysrepo/data/ -- Installing: /etc/sysrepo/data/internal/ -- Installing: /var/run/sysrepo-subscriptions -- Installing: /usr/lib64/sysrepo/plugins -- Installing: /etc/sysrepo/yang/internal/sysrepo-persistent-data.yang -- Installing: /etc/sysrepo/yang/internal/sysrepo-module-dependencies.yang -- Installing: /etc/sysrepo/yang/internal/sysrepo-notification-store.yang -- Installing: /usr/lib64/pkgconfig/libsysrepo.pc -- Up-to-date: /usr/share/man/man1/sysrepoctl.1 -- Up-to-date: /usr/share/man/man1/sysrepocfg.1 -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/yang/ietf-netconf-notifications.yang --permissions=666 -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/yang/nc-notifications.yang --permissions=666 -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/yang/notifications.yang --permissions=666 -- Installing: /usr/lib64/libsysrepo.so.0.7.4 -- Up-to-date: /usr/lib64/libsysrepo.so.0.7 -- Up-to-date: /usr/lib64/libsysrepo.so -- Removed runtime path from "/usr/lib64/libsysrepo.so.0.7.4" -- Installing: /usr/lib64/libsysrepo.a -- Installing: /usr/bin/sysrepod -- Removed runtime path from "/usr/bin/sysrepod" -- Installing: /usr/bin/sysrepo-plugind -- Removed runtime path from "/usr/bin/sysrepo-plugind" -- Installing: /usr/bin/sysrepoctl -- Removed runtime path from "/usr/bin/sysrepoctl" -- Installing: /usr/bin/sysrepocfg -- Removed runtime path from "/usr/bin/sysrepocfg" -- Installing: /usr/include -- Installing: /usr/include/sysrepo -- Up-to-date: /usr/include/sysrepo/values.h -- Up-to-date: /usr/include/sysrepo/plugins.h -- Up-to-date: /usr/include/sysrepo/xpath.h -- Up-to-date: /usr/include/sysrepo/trees.h -- Up-to-date: /usr/include/sysrepo.h -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/examples/yang/turing-machine.yang --permissions=666; /root/sysrepo/build/src/sysrepocfg --import=/root/sysrepo/examples/yang/turing-machine.data.xml --datastore=startup --format=xml --level=0 turing-machine -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/examples/yang/iana-if-type.yang --permissions=666 -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/examples/yang/ietf-ip@2014-06-16.yang --permissions=666 -- Exec: /root/sysrepo/build/src/sysrepoctl --install --yang=/root/sysrepo/examples/yang/ietf-interfaces@2014-05-08.yang --permissions=666; /root/sysrepo/build/src/sysrepocfg --import=/root/sysrepo/examples/yang/ietf-interfaces.data.xml --datastore=startup --format=xml --level=0 ietf-interfaces -- Installing: /usr/lib64/sysrepo/plugins/libturing-machine.so -- Removed runtime path from "/usr/lib64/sysrepo/plugins/libturing-machine.so" -- Installing: /usr/lib64/libSysrepo-cpp.so.0.7.4 -- Up-to-date: /usr/lib64/libSysrepo-cpp.so.0.7 -- Up-to-date: /usr/lib64/libSysrepo-cpp.so -- Removed runtime path from "/usr/lib64/libSysrepo-cpp.so.0.7.4" -- Up-to-date: /usr/include/sysrepo-cpp/Sysrepo.h -- Up-to-date: /usr/include/sysrepo-cpp/Connection.h -- Up-to-date: /usr/include/sysrepo-cpp/Session.h -- Up-to-date: /usr/include/sysrepo-cpp/Struct.h -- Up-to-date: /usr/include/sysrepo-cpp/Xpath.h -- Up-to-date: /usr/include/sysrepo-cpp/Tree.h -- Up-to-date: /usr/include/sysrepo-cpp/Internal.h -- Installing: /usr/lib64/pkgconfig/libSysrepo-cpp.pc
4. Compile and install the netopeer2-server
-- The C compiler identification is Clang 3.4.2
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Failed to learn keystored keys directory, rerun cmake and set KEYSTORED_KEYS_DIR manually or the server configuration will not work.
-- Server configuration off, default SSH host key will be used: "/etc/ssh/ssh_host_rsa_key".
-- Unable to learn libnetconf2 thread support, check skipped
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for pthread_rwlockattr_setkind_np
-- Looking for pthread_rwlockattr_setkind_np - found
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - found
-- Found sysrepo: /usr/lib64/libsysrepo.so
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
-- Build files have been written to: /root/Netopeer2/server/build
Scanning dependencies of target serverobj [ 5%] Building C object CMakeFiles/serverobj.dir/ietf_netconf_server.c.o [ 11%] Building C object CMakeFiles/serverobj.dir/ietf_system.c.o [ 17%] Building C object CMakeFiles/serverobj.dir/ietf_keystore.c.o [ 23%] Building C object CMakeFiles/serverobj.dir/netconf_monitoring.c.o [ 29%] Building C object CMakeFiles/serverobj.dir/operations.c.o [ 35%] Building C object CMakeFiles/serverobj.dir/op_get_config.c.o [ 41%] Building C object CMakeFiles/serverobj.dir/op_editconfig.c.o [ 47%] Building C object CMakeFiles/serverobj.dir/op_copyconfig.c.o [ 52%] Building C object CMakeFiles/serverobj.dir/op_deleteconfig.c.o [ 58%] Building C object CMakeFiles/serverobj.dir/op_candidate.c.o [ 64%] Building C object CMakeFiles/serverobj.dir/op_validate.c.o [ 70%] Building C object CMakeFiles/serverobj.dir/op_un_lock.c.o [ 76%] Building C object CMakeFiles/serverobj.dir/op_generic.c.o [ 82%] Building C object CMakeFiles/serverobj.dir/op_notifications.c.o [ 88%] Building C object CMakeFiles/serverobj.dir/op_kill.c.o [ 94%] Building C object CMakeFiles/serverobj.dir/log.c.o [ 94%] Built target serverobj Scanning dependencies of target netopeer2-server [100%] Building C object CMakeFiles/netopeer2-server.dir/main.c.o Linking C executable netopeer2-server [100%] Built target netopeer2-server
[ 94%] Built target serverobj [100%] Built target netopeer2-server Install the project... -- Install configuration: "Release" -- Installing: /usr/local/bin/netopeer2-server -- Removed runtime path from "/usr/local/bin/netopeer2-server"
5. Compile and install the netopeer2-cli
-- The C compiler identification is Clang 3.4.2
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - found
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- Looking for eaccess
-- Looking for eaccess - found
-- Looking for mkstemps
-- Looking for mkstemps - found
roff2html not found, html version of man pages cannot be generated!
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
-- Build files have been written to: /root/Netopeer2/cli/build
Scanning dependencies of target netopeer2-cli [ 20%] Building C object CMakeFiles/netopeer2-cli.dir/main.c.o [ 40%] Building C object CMakeFiles/netopeer2-cli.dir/commands.c.o [ 60%] Building C object CMakeFiles/netopeer2-cli.dir/completion.c.o [ 80%] Building C object CMakeFiles/netopeer2-cli.dir/configuration.c.o [100%] Building C object CMakeFiles/netopeer2-cli.dir/linenoise/linenoise.c.o Linking C executable netopeer2-cli [100%] Built target netopeer2-cli
[100%] Built target netopeer2-cli Install the project... -- Install configuration: "Release" -- Installing: /usr/local/bin/netopeer2-cli -- Removed runtime path from "/usr/local/bin/netopeer2-cli" -- Up-to-date: /usr/local/share/man/man1/netopeer2-cli.1
6. Startup the sysrepod
[INF] Initializing Data Manager, schema_search_dir=/etc/sysrepo/yang/, data_search_dir=/etc/sysrepo/data/ [INF] Sysrepo daemon initialized successfully.
7. Startup the netopeer2-server
VERBOSE: Connected to daemon Sysrepo Engine at socket=/var/run/sysrepod.sock VERBOSE: Netopeer2 connected to sysrepod. VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/yangdata.so" successfully loaded. VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/nacm.so" successfully loaded. VERBOSE: Plugin "/usr/local/lib64/libyang/extensions/metadata.so" successfully loaded. VERBOSE: Plugin "/usr/local/lib64/libyang/user_types/user_date_and_time.so" successfully loaded. VERBOSE: Reading module "ietf-yang-metadata". VERBOSE: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented. VERBOSE: Reading module "yang". VERBOSE: Resolving "yang" unresolved schema nodes and their constraints... VERBOSE: All "yang" schema nodes and constraints resolved. VERBOSE: Module "yang@2017-02-20" successfully parsed as implemented. VERBOSE: Reading module "ietf-inet-types". VERBOSE: Resolving derived type "union" failed, it will be attempted later. VERBOSE: Resolving derived type "union" failed, it will be attempted later. VERBOSE: Resolving derived type "union" failed, it will be attempted later. VERBOSE: Resolving derived type "union" failed, it will be attempted later. VERBOSE: Resolving "ietf-inet-types" unresolved schema nodes and their constraints... VERBOSE: All "ietf-inet-types" schema nodes and constraints resolved. VERBOSE: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented. VERBOSE: Reading module "ietf-yang-types". VERBOSE: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented. VERBOSE: Reading module "ietf-datastores". VERBOSE: Module "ietf-datastores@2017-08-17" successfully parsed as implemented. VERBOSE: Reading module "ietf-yang-library". VERBOSE: Module "ietf-yang-library@2018-01-17" successfully parsed as implemented. VERBOSE: Loading schema "ietf-netconf-notifications@2012-02-06" from sysrepo. VERBOSE: Reading module "ietf-netconf-notifications". VERBOSE: Reading module "ietf-netconf". VERBOSE: Reading module "ietf-netconf-acm". VERBOSE: Module "ietf-netconf-acm@2018-02-14" successfully parsed as imported. VERBOSE: Module "ietf-netconf@2011-06-01" successfully parsed as imported. VERBOSE: Resolving "ietf-netconf-notifications" unresolved schema nodes and their constraints... VERBOSE: All "ietf-netconf-notifications" schema nodes and constraints resolved. VERBOSE: Module "ietf-netconf-notifications@2012-02-06" successfully parsed as implemented. VERBOSE: Loading schema "ietf-netconf@2011-06-01" from sysrepo. VERBOSE: Module ietf-netconf@2011-06-01 already present in context. VERBOSE: Module "ietf-netconf@2011-06-01" now implemented. VERBOSE: Loading schema "ietf-netconf-acm@2018-02-14" from sysrepo. VERBOSE: Module ietf-netconf-acm@2018-02-14 already present in context. VERBOSE: Loading schema "nc-notifications@2008-07-14" from sysrepo. VERBOSE: Reading module "nc-notifications". VERBOSE: Reading module "notifications". VERBOSE: Module "notifications@2008-07-14" successfully parsed as imported. VERBOSE: Module "nc-notifications@2008-07-14" successfully parsed as implemented. VERBOSE: Loading schema "notifications@2008-07-14" from sysrepo. VERBOSE: Module notifications@2008-07-14 already present in context. VERBOSE: Module "notifications@2008-07-14" now implemented. VERBOSE: Loading schema "turing-machine@2013-12-27" from sysrepo. VERBOSE: Reading module "turing-machine". VERBOSE: Module "turing-machine@2013-12-27" successfully parsed as implemented. VERBOSE: Loading schema "iana-if-type@2014-05-08" from sysrepo. VERBOSE: Reading module "iana-if-type". VERBOSE: Reading module "ietf-interfaces". VERBOSE: Module "ietf-interfaces@2014-05-08" successfully parsed as imported. VERBOSE: Module "iana-if-type@2014-05-08" successfully parsed as implemented. VERBOSE: Loading schema "ietf-interfaces@2014-05-08" from sysrepo. VERBOSE: Module ietf-interfaces@2014-05-08 already present in context. VERBOSE: Module "ietf-interfaces@2014-05-08" now implemented. VERBOSE: Loading schema "ietf-ip@2014-06-16" from sysrepo. VERBOSE: Reading module "ietf-ip". VERBOSE: Module "ietf-ip@2014-06-16" successfully parsed as implemented. VERBOSE: Loading schema "ietf-netconf-with-defaults@2011-06-01" from sysrepo. VERBOSE: Reading module "ietf-netconf-with-defaults". VERBOSE: Module "ietf-netconf-with-defaults@2011-06-01" successfully parsed as implemented. VERBOSE: Loading schema "ietf-netconf-monitoring@2010-10-04" from sysrepo. VERBOSE: Reading module "ietf-netconf-monitoring". VERBOSE: Module "ietf-netconf-monitoring@2010-10-04" successfully parsed as implemented. VERBOSE: Loading schema "ietf-datastores@2017-08-17" from sysrepo. VERBOSE: Module ietf-datastores@2017-08-17 already present in context. VERBOSE: Loading schema "ietf-yang-library@2018-01-17" from sysrepo. VERBOSE: Module ietf-yang-library@2018-01-17 already present in context. WARNING: Sysrepo does not have the "ietf-netconf-server" module or keystored keys dir unknown, using default NETCONF server options. VERBOSE: Listening on 0.0.0.0:830 for SSH connections.
7. Startup the netopeer2-cli
connect Interactive SSH Authentication Type your password: Password: root@localhost password:
# netopeer2-cli
> connect
Interactive SSH Authentication
Type your password:
Password:
root@localhost password:
> get-config --source startup
nc ERROR: Session 1: SSH channel poll error (Socket error: disconnected).
cli_send_recv: Failed to receive a reply.
Thanks
Darcy
Hi Darcy,
still works for me and I am still thinking some incompatibilities in your installed libraries. Please, first remove all the libraries (libyang, libnetconf2, and libsysrepo), run # ldconfig
, try to install them again, and finally run # ldconfig
again. It must work.
Regards, Michal
Hi Michal, Thanks for the response! Unfortunately, it still doesn't work though I follow the procedure!
The last way: I will clean the lab and re-install the total environment to see whether it works.
Thanks Darcy
Hi Michal, It's strange, I use a clean lab and install the sysrepo-netopeer2 server. After the sysrepo-netopeer2 server is startup, send the get-config --source startup from netopeer2-cli, the netopeer2-server crash backtrace is:
Segmentation fault, backtrace:
netopeer2-server(signal_handler+0xa7)[0x407ed7]
/usr/lib64/libpthread.so.0(+0xf680)[0x7f04967e6680]
/usr/local/lib64/libyang.so.0.16(lyd_wd_toprint+0x41d)[0x7f0496552c5d]
/usr/local/lib64/libyang.so.0.16(xml_print_node+0x2d)[0x7f049658b5ad]
/usr/local/lib64/libyang.so.0.16(+0x11659b)[0x7f049658c59b]
/usr/local/lib64/libyang.so.0.16(xml_print_node+0x20b)[0x7f049658b78b]
/usr/local/lib64/libyang.so.0.16(+0x115a6a)[0x7f049658ba6a]
/usr/local/lib64/libyang.so.0.16(xml_print_node+0x1a2)[0x7f049658b722]
/usr/local/lib64/libyang.so.0.16(+0x115a6a)[0x7f049658ba6a]
/usr/local/lib64/libyang.so.0.16(xml_print_node+0x1a2)[0x7f049658b722]
/usr/local/lib64/libyang.so.0.16(+0x116a4b)[0x7f049658ca4b]
/usr/local/lib64/libyang.so.0.16(xml_print_node+0x22a)[0x7f049658b7aa]
/usr/local/lib64/libyang.so.0.16(xml_print_data+0x33b)[0x7f049658cf6b]
/usr/local/lib64/libyang.so.0.16(+0xdc576)[0x7f0496552576]
/usr/local/lib64/libyang.so.0.16(lyd_print_clb+0xad)[0x7f049655281d]
/usr/local/lib64/libnetconf2.so.0.12(+0xcf9a)[0x7f0496239f9a]
/usr/local/lib64/libnetconf2.so.0.12(+0x25fd9)[0x7f0496252fd9]
/usr/local/lib64/libnetconf2.so.0.12(nc_ps_poll+0x703)[0x7f04962522c3]
netopeer2-server[0x409a62]
/usr/lib64/libpthread.so.0(+0x7dd5)[0x7f04967dedd5]
Use gdb to check, it report the 886 line in /root/libyang/src/printer.c:
(gdb) run -d
Starting program: /usr/local/bin/netopeer2-server -d
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x7ffff3b2a700 (LWP 2723)]
[New Thread 0x7ffff2b1d700 (LWP 2724)]
[New Thread 0x7ffff231c700 (LWP 2725)]
[New Thread 0x7ffff1b1b700 (LWP 2726)]
[New Thread 0x7ffff131a700 (LWP 2727)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff793ac5a in lyd_wd_toprint (node=0x6a5a40, options=0) at /root/libyang/src/printer.c:886
886 if (elem->schema->flags & LYS_CONFIG_R) {
Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-19.el7.x86_64 libcom_err-1.42.9-12.el7_5.x86_64 libev-4.15-7.el7.x86_64 libselinux-2.5-12.el7.x86_64 nss-softokn-freebl-3.36.0-5.el7_5.x86_64 openssl-libs-1.0.2k-12.el7.x86_64 pcre-8.32-17.el7.x86_64 protobuf-c-1.0.2-3.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007ffff793ac5a in lyd_wd_toprint (node=0x6a5a40, options=0) at /root/libyang/src/printer.c:886
#1 0x00007ffff79735ad in xml_print_node (out=0x7fffffffd680, level=0, node=0x6a5a40, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:582
#2 0x00007ffff797459b in xml_print_list (out=0x7fffffffd680, level=0, node=0x6a2d00, is_list=1, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:481
#3 0x00007ffff797378b in xml_print_node (out=0x7fffffffd680, level=0, node=0x6a2d00, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:601
#4 0x00007ffff7973a6a in xml_print_container (out=0x7fffffffd680, level=0, node=0x6a2d70, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:441
#5 0x00007ffff7973722 in xml_print_node (out=0x7fffffffd680, level=0, node=0x6a2d70, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:592
#6 0x00007ffff7973a6a in xml_print_container (out=0x7fffffffd680, level=0, node=0x6a2b90, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:441
#7 0x00007ffff7973722 in xml_print_node (out=0x7fffffffd680, level=0, node=0x6a2b90, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:592
#8 0x00007ffff7974a4b in xml_print_anydata (out=0x7fffffffd680, level=0, node=0x62ca10, toplevel=1, options=257)
at /root/libyang/src/printer_xml.c:540
#9 0x00007ffff79737aa in xml_print_node (out=0x7fffffffd680, level=0, node=0x62ca10, toplevel=1, options=257)
at /root/libyang/src/printer_xml.c:605
#10 0x00007ffff7974f6b in xml_print_data (out=0x7fffffffd680, root=0x62ca10, options=257) at /root/libyang/src/printer_xml.c:663
#11 0x00007ffff793a576 in lyd_print_ (out=0x7fffffffd680, root=0x62c9c0, format=LYD_XML, options=257)
at /root/libyang/src/printer.c:693
#12 0x00007ffff793a81d in lyd_print_clb (writeclb=0x7ffff76232a0 <nc_write_xmlclb>, arg=0x7fffffffdae8, root=0x62c9c0,
format=LYD_XML, options=257) at /root/libyang/src/printer.c:788
#13 0x00007ffff7621f9a in nc_write_msg_io (session=0x7fffe80008e0, io_timeout=0, type=6) at /root/libnetconf2/src/io.c:1169
---Type <return> to continue, or q <return> to quit---
#14 0x00007ffff763afd9 in nc_server_send_reply_io (session=0x7fffe80008e0, io_timeout=0, rpc=0x6a2be0)
at /root/libnetconf2/src/session_server.c:1213
#15 0x00007ffff763a2c3 in nc_ps_poll (ps=0x6a1aa0, timeout=0, session=0x7fffffffe1f0) at /root/libnetconf2/src/session_server.c:1557
#16 0x0000000000409a62 in worker_thread (arg=0x6a26e0) at /root/Netopeer2/server/main.c:1326
#17 0x0000000000408fd1 in main (argc=2, argv=0x7fffffffe558) at /root/Netopeer2/server/main.c:1591
The who process I install the environment is:
1. # yum install gcc gcc-c++ clang cmake git pkgconfig libev-devel zlib-devel openssl-devel -y
Installed:
clang.x86_64 0:3.4.2-8.el7 cmake.x86_64 0:2.8.12.2-2.el7 gcc.x86_64 0:4.8.5-28.el7_5.1 gcc-c++.x86_64 0:4.8.5-28.el7_5.1
git.x86_64 0:1.8.3.1-14.el7_5 libev-devel.x86_64 0:4.15-7.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-28.el7_5.1 glibc-devel.x86_64 0:2.17-222.el7 glibc-headers.x86_64 0:2.17-222.el7
kernel-headers.x86_64 0:3.10.0-862.11.6.el7 libev.x86_64 0:4.15-7.el7 libmpc.x86_64 0:1.0.1-3.el7
libstdc++-devel.x86_64 0:4.8.5-28.el7_5.1 llvm.x86_64 0:3.4.2-8.el7 llvm-libs.x86_64 0:3.4.2-8.el7
mpfr.x86_64 0:3.1.1-4.el7 perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-14.el7_5
perl-TermReadKey.x86_64 0:2.30-20.el7
2. # yum install protobuf-c-devel -y
Installed:
protobuf-c-devel.x86_64 0:1.0.2-3.el7
Dependency Installed:
protobuf.x86_64 0:2.5.0-8.el7 protobuf-c.x86_64 0:1.0.2-3.el7 protobuf-c-compiler.x86_64 0:1.0.2-3.el7
protobuf-compiler.x86_64 0:2.5.0-8.el7
# protoc --version
libprotoc 2.5.0
# protoc-c --version
protobuf-c 1.0.2
libprotoc 2.5.0
3. # yum install pcre-devel
Installed:
pcre-devel.x86_64 0:8.32-17.el7
4. # git clone -b devel https://github.com/CESNET/libyang.git
# cd libyang; mkdir build; cd build
# cmake -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ ..
# make
# make install
5.# git clone https://github.com/sysrepo/libredblack.git
# cd libredblack
# ./configure CC=/usr/bin/clang CXX=/usr/bin/clang++
# make
# make install
6.# git clone -b devel https://github.com/sysrepo/sysrepo.git
# cd sysrepo; mkdir build; cd build
# cmake -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
# make
# make install
7.# wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
# mkdir build;cd build
# cmake -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ ..
# make
# make install
8.# git clone -b devel https://github.com/CESNET/libnetconf2.git
# cd libnetconf2; mkdir build;cd build
# cmake -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ ..
# make
# make install
9.# git clone -b devel-server https://github.com/CESNET/Netopeer2.git
# cd Netopeer2/server;mkdir build;cd build
# cmake -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ ..
# make
# make install
10.# cd Netopeer2/cli;mkdir build;cd build
# cmake -D CMAKE_C_COMPILER=/usr/bin/clang -D CMAKE_CXX_COMPILER=/usr/bin/clang++ ..
# make
# make install
Seems the libyang has some issue? Any ideas about it? Thanks very much!
Thanks Darcy
Hi Darcy,
I see that you are using some derivative of RedHat Enterprise Linux 7.5, which uses painfully old versions of all the packages. That should not really matter, but who knows. If you have installed the recent versions of all our libraries on a clean system, then there is nothing more I can suggest. Maybe compile at least libyang for Debug
and provide the backtrace again? Even better if you use valgrind
and provide its output, too.
Regards, Michal
Hi Michal, Yes, I use the RedHat Enterprise Linux 7.5. The valgrind output is:
# valgrind --vgdb=yes --vgdb-error=0 --leak-check=full --show-leak-kinds=all netopeer2-server
==6095== Memcheck, a memory error detector
==6095== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6095== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==6095== Command: netopeer2-server
==6095==
==6095== (action at startup) vgdb me ...
==6095==
==6095== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==6095== /path/to/gdb netopeer2-server
==6095== and then give GDB the following command
==6095== target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=6095
==6095== --pid is optional if only one valgrind process is running
==6095==
==5999== Thread 4:
==5999== Invalid read of size 2
==5999== at 0x512EC5D: lyd_wd_toprint (printer.c:886)
==5999== by 0x51675AC: xml_print_node (printer_xml.c:582)
==5999== by 0x516859A: xml_print_list (printer_xml.c:481)
==5999== by 0x516778A: xml_print_node (printer_xml.c:601)
==5999== by 0x5167A69: xml_print_container (printer_xml.c:441)
==5999== by 0x5167721: xml_print_node (printer_xml.c:592)
==5999== by 0x5167A69: xml_print_container (printer_xml.c:441)
==5999== by 0x5167721: xml_print_node (printer_xml.c:592)
==5999== by 0x5168A4A: xml_print_anydata (printer_xml.c:540)
==5999== by 0x51677A9: xml_print_node (printer_xml.c:605)
==5999== by 0x5168F6A: xml_print_data (printer_xml.c:663)
==5999== by 0x512E575: lyd_print_ (printer.c:693)
==5999== Address 0x9229b68 is 18 bytes after a block of size 6 alloc'd
==5999== at 0x4C29BC3: malloc (vg_replace_malloc.c:299)
==5999== by 0x5091DF0: parse_text (xml.c:710)
==5999== by 0x509285E: parse_attr (xml.c:820)
==5999== by 0x5091065: lyxml_parse_elem (xml.c:1088)
==5999== by 0x5090D99: lyxml_parse_elem (xml.c:1048)
==5999== by 0x5090D99: lyxml_parse_elem (xml.c:1048)
==5999== by 0x5090D99: lyxml_parse_elem (xml.c:1048)
==5999== by 0x5092C6B: lyxml_parse_mem (xml.c:1185)
==5999== by 0x50AC50A: yin_read_module (parser_yin.c:7424)
==5999== by 0x51041CF: lys_parse_mem_ (tree_schema.c:1008)
==5999== by 0x5104538: lys_parse_mem (tree_schema.c:1038)
==5999== by 0x40A888: np2srv_init_schemas (main.c:963)
==5999==
The backtrace is below after compile libyang with Debug:
# gdb netopeer2-server
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/netopeer2-server...done.
(gdb) run -d
Starting program: /usr/local/bin/netopeer2-server -d
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x7ffff3b2a700 (LWP 6863)]
[New Thread 0x7ffff2b1d700 (LWP 6864)]
[New Thread 0x7ffff231c700 (LWP 6865)]
[New Thread 0x7ffff1b1b700 (LWP 6866)]
[New Thread 0x7ffff131a700 (LWP 6867)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2b1d700 (LWP 6864)]
0x00007ffff793ac5a in lyd_wd_toprint (node=0x7fffe4002bc0, options=0) at /root/libyang/src/printer.c:886
886 if (elem->schema->flags & LYS_CONFIG_R) {
Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-19.el7.x86_64 libcom_err-1.42.9-12.el7_5.x86_64 libev-4.15-7.el7.x86_64 libselinux-2.5-12.el7.x86_64 nss-softokn-freebl-3.36.0-5.el7_5.x86_64 openssl-libs-1.0.2k-12.el7.x86_64 pcre-8.32-17.el7.x86_64 protobuf-c-1.0.2-3.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007ffff793ac5a in lyd_wd_toprint (node=0x7fffe4002bc0, options=0) at /root/libyang/src/printer.c:886
#1 0x00007ffff79735ad in xml_print_node (out=0x7ffff2b1c240, level=0, node=0x7fffe4002bc0, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:582
#2 0x00007ffff797459b in xml_print_list (out=0x7ffff2b1c240, level=0, node=0x7fffe4006b70, is_list=1, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:481
#3 0x00007ffff797378b in xml_print_node (out=0x7ffff2b1c240, level=0, node=0x7fffe4006b70, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:601
#4 0x00007ffff7973a6a in xml_print_container (out=0x7ffff2b1c240, level=0, node=0x7fffe4006820, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:441
#5 0x00007ffff7973722 in xml_print_node (out=0x7ffff2b1c240, level=0, node=0x7fffe4006820, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:592
#6 0x00007ffff7973a6a in xml_print_container (out=0x7ffff2b1c240, level=0, node=0x7fffe4004af0, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:441
#7 0x00007ffff7973722 in xml_print_node (out=0x7ffff2b1c240, level=0, node=0x7fffe4004af0, toplevel=0, options=0)
at /root/libyang/src/printer_xml.c:592
#8 0x00007ffff7974a4b in xml_print_anydata (out=0x7ffff2b1c240, level=0, node=0x7fffe4013d90, toplevel=1, options=257)
at /root/libyang/src/printer_xml.c:540
#9 0x00007ffff79737aa in xml_print_node (out=0x7ffff2b1c240, level=0, node=0x7fffe4013d90, toplevel=1, options=257)
at /root/libyang/src/printer_xml.c:605
#10 0x00007ffff7974f6b in xml_print_data (out=0x7ffff2b1c240, root=0x7fffe4013d90, options=257)
at /root/libyang/src/printer_xml.c:663
#11 0x00007ffff793a576 in lyd_print_ (out=0x7ffff2b1c240, root=0x7fffe4013d40, format=LYD_XML, options=257)
at /root/libyang/src/printer.c:693
#12 0x00007ffff793a81d in lyd_print_clb (writeclb=0x7ffff76232a0 <nc_write_xmlclb>, arg=0x7ffff2b1c6a8, root=0x7fffe4013d40,
format=LYD_XML, options=257) at /root/libyang/src/printer.c:788
---Type <return> to continue, or q <return> to quit---
#13 0x00007ffff7621f9a in nc_write_msg_io (session=0x7fffe40008e0, io_timeout=0, type=6) at /root/libnetconf2/src/io.c:1169
#14 0x00007ffff763afd9 in nc_server_send_reply_io (session=0x7fffe40008e0, io_timeout=0, rpc=0x7fffe4004bc0)
at /root/libnetconf2/src/session_server.c:1213
#15 0x00007ffff763a2c3 in nc_ps_poll (ps=0x6a1aa0, timeout=0, session=0x7ffff2b1cdb0) at /root/libnetconf2/src/session_server.c:1557
#16 0x0000000000409a62 in worker_thread (arg=0x6a1c60) at /root/Netopeer2/server/main.c:1326
#17 0x00007ffff7bc6dd5 in start_thread () from /usr/lib64/libpthread.so.0
#18 0x00007ffff6f31b3d in clone () from /usr/lib64/libc.so.6
Thanks Darcy
Hi Michal, After I change the compiler from clang to gcc, the netopeer2-server isn't crashed now.
I didn't use other platforms before, so not sure whether there are some incompability issues between clang and Redhat 7.5.
Anyway, I will use the gcc to avoid the crash. Thanks!
Thanks Darcy
Hi Darcy, I managed to reproduce this crash when using a similar distribution to yours. It seems there is a bug in Clang 3.4.2 that causes it. I have not found any more information on this so I do not know what version fixed it but it definitely works with Clang 5.0.0 and newer. Or use GCC like you did.
Regards, Michal
Hi Michal, Thanks very much for the information.
Thanks Darcy
Hi, I installed the sysrepo/netopeer2/libyang/libnetconf/yang for the devel branch. The netopeer2-server crashed when netopeer2-cli send the get-config request for startup datastore, for running datastore isn't crashed but couldn't get the right data, seems the data format of sysrepo data is changed, not sure whether it has impact(it isn't the XML format now). The procedure is below:
ll /etc/sysrepo/data -rw-rw-rw-. 1 root root 232 Aug 27 09:12 t1.persist -rw-rw-rw-. 1 root root 113 Aug 27 09:13 t1.running -rw-rw-rw-. 1 root root 0 Aug 27 09:12 t1.running.lock -rw-rw-rw-. 1 root root 113 Aug 27 09:13 t1.startup -rw-rw-rw-. 1 root root 0 Aug 27 09:12 t1.startup.lock
netopeer2-cli