-
Notifications
You must be signed in to change notification settings - Fork 314
Closed
Description
hi ,
we are seeing crash in sysrpeo, stack trace is as per below . We are using libyang version of "libyang-1.0-r4" and sysrepo-7.4 . Can you suggest any patch so that we can avoid following crash ?
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f7051bf9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f704f221700 (LWP 12909))]
(gdb) bt
#0 0x00007f7051bf9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007f7051bfb02a in __GI_abort () at abort.c:89
#2 0x00007f7051bf1bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f70520973b7 "!ret",
file=file@entry=0x7f7052097270 "/home/build/libyang-1.0-r4/src/hash_table.c", line=line@entry=390, function=function@entry=0x7f70520974af <_PRETTY_FUNCTION_.5833> "lyht_resize") at assert.c:92
#3 0x00007f7051bf1c82 in _GI__assert_fail (assertion=0x7f70520973b7 "!ret",
file=0x7f7052097270 "/home/build/libyang-1.0-r4/src/hash_table.c",
line=390, function=0x7f70520974af <_PRETTY_FUNCTION_.5833> "lyht_resize") at assert.c:101
#4 0x00007f7051faa725 in lyht_resize (ht=0x25b6ec0, enlarge=1)
at /home/build/libyang-1.0-r4/src/hash_table.c:390
#5 0x00007f7051fab171 in lyht_insert_with_resize_cb (ht=0x25b6ec0, val_p=0x7f704f21e520, hash=969379529, resize_val_equal=0x0,
match_p=0x7f704f21e530)
at /home/build/libyang-1.0-r4/src/hash_table.c:680
#6 0x00007f7051fab1f2 in lyht_insert (ht=0x25b6ec0, val_p=0x7f704f21e520, hash=969379529, match_p=0x7f704f21e530)
at /home/build/libyang-1.0-r4/src/hash_table.c:697
#7 0x00007f7051faa098 in dict_insert (ctx=0x25b6e30, value=0x7f7044096740 "14263", len=5, zerocopy=1)
at /home/build/libyang-1.0-r4/src/hash_table.c:209
#8 0x00007f7051faa2a9 in lydict_insert_zc (ctx=0x25b6e30, value=0x7f7044096740 "14263")
at /home/build/libyang-1.0-r4/src/hash_table.c:269
#9 0x00007f7051fc8088 in lyxml_parse_elem (ctx=0x25b6e30, data=0x7f7053344ba9 <error: Cannot access memory at address 0x7f7053344ba9>,
len=0x7f704f21e68c, parent=0x7f70440967b0, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1087
#10 0x00007f7051fc7f9b in lyxml_parse_elem (ctx=0x25b6e30, data=0x7f7053344b33 <error: Cannot access memory at address 0x7f7053344b33>,
len=0x7f704f21e74c, parent=0x7f7044096760, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1067
#11 0x00007f7051fc7f9b in lyxml_parse_elem (ctx=0x25b6e30, data=0x7f7053344b2d <error: Cannot access memory at address 0x7f7053344b2d>,
len=0x7f704f21e80c, parent=0x7f70440965d0, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1067
#12 0x00007f7051fc7f9b in lyxml_parse_elem (ctx=0x25b6e30, data=0x7f7053344a6d <error: Cannot access memory at address 0x7f7053344a6d>,
len=0x7f704f21e8cc, parent=0x7f704400d1b0, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1067
#13 0x00007f7051fc7f9b in lyxml_parse_elem (ctx=0x25b6e30, data=0x7f70532f5000 <error: Cannot access memory at address 0x7f70532f5000>,
len=0x7f704f21e97c, parent=0x0, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1067
#14 0x00007f7051fc855d in lyxml_parse_mem (ctx=0x25b6e30, data=0x7f70532f5000 <error: Cannot access memory at address 0x7f70532f5000>, options=1)
at /home/build/libyang-1.0-r4/src/xml.c:1206
#15 0x00007f705203d616 in lyd_parse_ (ctx=0x25b6e30, rpc_act=0x0, data=0x7f70532f5000 <error: Cannot access memory at address 0x7f70532f5000>,
format=LYD_XML, options=16897, data_tree=0x0, yang_data_name=0x0)
at /home/build/libyang-1.0-r4/src/tree_data.c:955
#16 0x00007f705203da4a in lyd_parse_data_ (ctx=0x25b6e30, data=0x7f70532f5000 <error: Cannot access memory at address 0x7f70532f5000>,
format=LYD_XML, options=16897, ap=0x7f704f21eae0)
--Type <return> to continue, or q <return> to quit--
at /home/build/libyang-1.0-r4/src/tree_data.c:1037
#17 0x00007f705203dc03 in lyd_parse_fd_ (ctx=0x25b6e30, fd=39, format=LYD_XML, options=16897, ap=0x7f704f21eae0)
at /home/build/libyang-1.0-r4/src/tree_data.c:1074
#18 0x00007f705203dceb in lyd_parse_fd (ctx=0x25b6e30, fd=39, format=LYD_XML, options=16897)
at /home/build/libyang-1.0-r4/src/tree_data.c:1090
#19 0x00007f7052e2b4fc in np_load_data_tree (np_ctx=0x25b6c10, user_cred=0x2696c40,
data_filename=0x7f704f21fcc0 "/opt/mavenir/mnxt/etc/sysrepo/data/notifications//ietf-netconf-notifications/2020-05-26_12-00.xml",
read_only=false, data_tree=0x7f704f21ec68, fd_p=0x7f704f21ec64)
at /home/build/sysrepo-0.7.4.ORAN/src/notification_processor.c:406
#20 0x00007f7052e36c09 in np_store_event_notification (np_ctx=0x25b6c10, user_cred=0x2696c40,
xpath=0x7f704401b6e0 "/ietf-netconf-notifications:netconf-session-end", generated_time=1590494565, notif_data_tree=0x7f7044001e30)
at /home/build/sysrepo-0.7.4.ORAN/src/notification_processor.c:1697
#21 0x00007f7052dbc131 in rp_event_notif_req_process (rp_ctx=0x25b69b0, session=0x2697530, msg=0x26b48b0, skip_msg_cleanup=0x7f704f220efb)
at /home/build/sysrepo-0.7.4.ORAN/src/request_processor.c:3297
#22 0x00007f7052dbeaca in rp_req_dispatch (rp_ctx=0x25b69b0, session=0x2697530, msg=0x26b48b0, skip_msg_cleanup=0x7f704f220efb)
at /home/build/sysrepo-0.7.4.ORAN/src/request_processor.c:3697
#23 0x00007f7052dbfcfe in rp_msg_dispatch (rp_ctx=0x25b69b0, session=0x2697530, msg=0x26b48b0)
at /home/build/sysrepo-0.7.4.ORAN/src/request_processor.c:3844
#24 0x00007f7052dc0660 in rp_worker_thread_execute (rp_ctx_p=0x25b69b0)
at /home/build/sysrepo-0.7.4.ORAN/src/request_processor.c:3945
#25 0x00007f7052aff6ba in start_thread (arg=0x7f704f221700) at pthread_create.c:333
#26 0x00007f7051ccb41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Metadata
Metadata
Assignees
Labels
No labels