Call to nc_recv_reply is causing SIGABRT (libnetconf2 version is 2.1.25) #535
Unanswered
krishnamohandasu
asked this question in
Q&A
Replies: 2 comments 9 replies
-
I expect some invalid parameters. Try compiling libnetconf2 with debug symbols and then using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Upon further observations, we find netopeer server is sending reply in multiple chunks. In libnetconf library, is it possible to allocate bigger block of memory to avoid reallocating memory when the reply is coming multiple chunks? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Call to nc_recv_reply is causing signal abort in realloc function.
#2 0x0000007fb8b8a37c in __GI_raise (sig=sig@entry=6) at /usr/src/debug/glibc/2.38+git-r0/sysdeps/posix/raise.c:26
#3 0x0000007fb8b76f24 in __GI_abort () at abort.c:79
#4 0x0000007fb8bc2358 in __libc_message (fmt=fmt@entry=0x7fb8c9b7b0 "\204\212")
at /usr/src/debug/glibc/2.38+git-r0/sysdeps/posix/libc_fatal.c:150
#5 0x0000007fb8bd7928 in malloc_printerr (str=str@entry=0x7fb8c96d80 "\2762H\211\361A\366Dp\001 t$H\215B\001\017\037\200")
at malloc.c:5765
#6 0x0000007fb8bda90c in _int_malloc (av=av@entry=0x7fb8ce0a50 <main_arena>, bytes=bytes@entry=2033) at malloc.c:4071
#7 0x0000007fb8bdb444 in _int_realloc (av=av@entry=0x7fb8ce0a50 <main_arena>, oldp=oldp@entry=0x2dee13c0,
oldsize=oldsize@entry=1024, nb=nb@entry=2048) at malloc.c:4968
#8 0x0000007fb8bdc79c in __GI___libc_realloc (oldmem=0x2dee13d0, bytes=2028) at malloc.c:3510
#9 0x0000007fa420cbec in ?? ()
from /var/fpwork/workspace_manon/crash_debug/install_dir/sysroots/aarch64-linux-gnu/usr/lib64/libnetconf2.so.3
#10 0x0000007fa4216680 in ?? ()
from /var/fpwork/workspace_manon/crash_debug/install_dir/sysroots/aarch64-linux-gnu/usr/lib64/libnetconf2.so.3
#11 0x0000007fa42187ac in nc_recv_reply ()
nc_recv_reply signature being used is below
NC_MSG_TYPE nc_recv_reply | ( | struct nc_session * | session, -- | -- | -- | -- | | struct nc_rpc * | rpc, | | uint64_t | msgid, | | int | timeout, | | struct lyd_node ** | envp, | | struct lyd_node ** | op | ) |nc_recv_reply ( struct nc_session * session,
struct nc_rpc * rpc,
uint64_t msgid,
int timeout,
struct lyd_node ** envp,
struct lyd_node ** op
)
Beta Was this translation helpful? Give feedback.
All reactions