crash observed after ssh_get_user_home_dir API call
we are observing crash at the ssh_get_user_home_dir() call when this is invoked from libnetconf library. The libssh version is 0.7.5.
Can you please help to check this.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fd7497827c6 in strlen () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fd740842700 (LWP 753))]
#0 0x00007fd7497827c6 in strlen () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fd7497824fe in strdup () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007fd74b34fabd in ssh_get_user_home_dir () at /share/build_cache/5G_Opensource/CACHE1/5g_platform/build/staging/du/x8
#3 0x00007fd74b350550 in ssh_path_expand_tilde (d=0x7fd74b37e404 "/.ssh") at /share/build_cache/5G_Opensource/CACHE1/5g_plat
#4 0x00007fd74b351b81 in ssh_options_set (session=0x7fd730056af0, type=SSH_OPTIONS_SSH_DIR, value=0x0) at /share/build_cache
#5 0x00007fd74b35334f in ssh_options_apply (session=0x7fd730056af0) at /share/build_cache/5G_Opensource/CACHE1/5g_platform/b
#6 0x00007fd74b340d4b in ssh_connect (session=0x7fd730056af0) at /share/build_cache/5G_Opensource/CACHE1/5g_platform/build/s
#7 0x00007fd74af0b40b in connect_ssh_session (session=0x7fd7300a88b0, opts=0x7fd7300011f8, timeout=10000) at /share/build_ca
#8 0x00007fd74af0c73b in _nc_connect_libssh (ssh_session=0x7fd730056af0, ctx=0x0, opts=0x7fd7300011f8, timeout=10000) at /sh
#9 0x00007fd74af0d02b in nc_accept_callhome_ssh_sock (sock=121, host=0x7fd7300a7210 "10.152.115.110", port=48846, ctx=0x0, t
#10 0x00007fd74aefecb0 in nc_accept_callhome (timeout=-1, ctx=0x0, session=0x7fd7408414d8) at /share/build_cache/5G_Opensourc
#11 0x0000000000c85601 in ranzure::platform::ruSessionMgr::startCallHomeThread (this=0x3037f60, arg=0x7fd74b124cc0 <context_m
#12 0x0000000000caaf02 in boost::_mfi::mf1<void, ranzure::platform::ruSessionMgr, void*>::operator() (this=0x321bbb8, p=0x303
#13 0x0000000000caad3f in boost::_bi::list2<boost::_bi::value<ranzure::platform::ruSessionMgr*>, boost::_bi::value<void*> >::
#14 0x0000000000caaa0d in boost::_bi::bind_t<void, boost::_mfi::mf1<void, ranzure::platform::ruSessionMgr, void*>, boost::_bi
#15 0x0000000000caa4f8 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf1<void, ranzure::platform::ruSes
#16 0x00007fd74ce6068d in thread_proxy () from /opt/mavenir/mvrp/lib/libboost_thread.so.1.62.0
#17 0x00007fd749fe76ba in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#18 0x00007fd7497fe51d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007fd7497827c6 in strlen () from /lib/x86_64-linux-gnu/libc.so.6
Edited by Jakub Jelen