[Current thread is 1 (Thread 0x7f1ad4196700 (LWP 79333))]
Missing separate debuginfos, use: yum debuginfo-install netopeer2-server-2.1.59.2.g8b6a8e1-1.el8.x86_64
(gdb) info stack
#0 0x00007f1adadb97ca in sr_edit_find () from /lib64/libsysrepo.so.7
#1 0x00007f1adadbd161 in sr_edit_apply_r () from /lib64/libsysrepo.so.7
#2 0x00007f1adadbdf8e in sr_edit_mod_apply () from /lib64/libsysrepo.so.7
#3 0x00007f1adadb44a5 in sr_modinfo_edit_apply () from /lib64/libsysrepo.so.7
#4 0x00007f1adad9c810 in sr_apply_changes () from /lib64/libsysrepo.so.7
#5 0x000055e7933fa244 in np2srv_rpc_editconfig_cb ()
#6 0x00007f1adadd145d in sr_shmsub_rpc_listen_call_callback () from /lib64/libsysrepo.so.7
#7 0x00007f1adadd7bbe in sr_shmsub_rpc_listen_process_rpc_events () from /lib64/libsysrepo.so.7
#8 0x00007f1adad9d6be in sr_subscription_process_events () from /lib64/libsysrepo.so.7
#9 0x00007f1adadd8a92 in sr_shmsub_listen_thread () from /lib64/libsysrepo.so.7
#10 0x00007f1adb3301cf in start_thread () from /lib64/libpthread.so.0
#11 0x00007f1ada9fde73 in clone () from /lib64/libc.so.6
(gdb) quit
Hi, during some experiments with valid/invalid configdata, I run in an reproducible error, which crashs the netopeer2-server.
Steps to reproduce:
create a invalid config (new line in the hostname)
start netopeer2-server
run netopeer2-cli and connect to server and run:
(correct validation error appears)
now run:
netopeer2-server crashs with a segfault
maybe a small hint