- **status**: accepted --> review


---

** [tickets:#3183] log: logd crashes when standby node startup during nfs 
unavailable**

**Status:** review
**Milestone:** 5.20.05
**Created:** Fri May 08, 2020 09:33 AM UTC by Huynh Minh Thien
**Last Updated:** Fri May 08, 2020 09:33 AM UTC
**Owner:** Huynh Minh Thien


When NFS is unavailable, client try to write to log. At that time, standby node 
startup. The logd on standby node crashes due to the data to prepare push to 
queue is NULL.

~~~
#0  0x00007f38f6329f3a in strlen () from /lib64/libc.so.6
#1  0x00007f38f6329c7e in strdup () from /lib64/libc.so.6
#2  0x000055b198e46586 in Cache::Data::Data (this=0x55b19a5aba08, 
data=0x7ffe63ba2d50) at src/log/logd/lgs_cache.cc:133
#3  0x000055b198e48010 in 
__gnu_cxx::new_allocator<Cache::Data>::construct<Cache::Data, CkptPushAsync*&> 
(__p=0x55b19a5aba08, this=<optimized out>) at 
/usr/include/c++/4.8/ext/new_allocator.h:120
#4  std::allocator_traits<std::allocator<Cache::Data> 
>::_S_construct<Cache::Data, CkptPushAsync*&> (__p=0x55b19a5aba08, __a=...) at 
/usr/include/c++/4.8/bits/alloc_traits.h:254
#5  std::allocator_traits<std::allocator<Cache::Data> >::construct<Cache::Data, 
CkptPushAsync*&> (__p=0x55b19a5aba08, __a=...) at 
/usr/include/c++/4.8/bits/alloc_traits.h:393
#6  std::_Sp_counted_ptr_inplace<Cache::Data, std::allocator<Cache::Data>, 
(__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<CkptPushAsync*&> (__a=..., 
this=0x55b19a5ab9f0) at /usr/include/c++/4.8/bits/shared_ptr_base.h:399
#7  __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2> 
>::construct<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2>, 
std::allocator<Cache::Data> const, CkptPushAsync*&> (__p=<optimized out>, 
this=<synthetic pointer>) at /usr/include/c++/4.8/ext/new_allocator.h:120
#8  
std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2> > 
>::_S_construct<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2>, 
std::allocator<Cache::Data> const, CkptPushAsync*&> (__p=<optimized out>, 
__a=<synthetic pointer>...) at /usr/include/c++/4.8/bits/alloc_traits.h:254
#9  
std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2> > 
>::construct<std::_Sp_counted_ptr_inplace<Cache::Data, 
std::allocator<Cache::Data>, (__gnu_cxx::_Lock_policy)2>, 
std::allocator<Cache::Data> const, CkptPushAsync*&> (__p=<optimized out>, 
__a=<synthetic pointer>...) at /usr/include/c++/4.8/bits/alloc_traits.h:393
#10 
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Cache::Data, 
std::allocator<Cache::Data>, CkptPushAsync*&> (__a=..., this=<synthetic 
pointer>) at /usr/include/c++/4.8/bits/shared_ptr_base.h:502
#11 std::__shared_ptr<Cache::Data, 
(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Cache::Data>, 
CkptPushAsync*&> (__a=..., __tag=..., this=<synthetic pointer>) at 
/usr/include/c++/4.8/bits/shared_ptr_base.h:957
#12 std::shared_ptr<Cache::Data>::shared_ptr<std::allocator<Cache::Data>, 
CkptPushAsync*&> (__a=..., __tag=..., this=<synthetic pointer>) at 
/usr/include/c++/4.8/bits/shared_ptr.h:316
#13 std::allocate_shared<Cache::Data, std::allocator<Cache::Data>, 
CkptPushAsync*&> (__a=...) at /usr/include/c++/4.8/bits/shared_ptr.h:598
#14 std::make_shared<Cache::Data, CkptPushAsync*&> () at 
/usr/include/c++/4.8/bits/shared_ptr.h:614
#15 ckpt_proc_push_async (cb=<optimized out>, data=0x7ffe63ba2d40) at 
src/log/logd/lgs_mbcsv_v8.cc:195
#16 0x000055b198e45a1c in Cache::DecodeColdSync (this=this@entry=0x55b199064c60 
<Cache::instance()::cache>, uba=uba@entry=0x7ffe63ba2f08, 
header=header@entry=0x7ffe63ba2d40, vdata=vdata@entry=0x7ffe63ba2d40, 
vckpt_rec=vckpt_rec@entry=0x7ffe63ba2b88, 
ckpt_rec_size=ckpt_rec_size@entry=112) at src/log/logd/lgs_cache.cc:360
#17 0x000055b198e26d11 in ckpt_decode_cold_sync (cb=0x55b199065080 <_lgs_cb>, 
cbk_arg=cbk_arg@entry=0x7ffe63ba2ee0) at src/log/logd/lgs_mbcsv.cc:1817
#18 0x000055b198e271b0 in ckpt_decode_cbk_handler (cbk_arg=0x7ffe63ba2ee0) at 
src/log/logd/lgs_mbcsv.cc:1133
#19 mbcsv_callback (arg=0x7ffe63ba2ee0) at src/log/logd/lgs_mbcsv.cc:644
#20 0x00007f38f70b5a92 in ncs_mbscv_rcv_decode (peer=peer@entry=0x55b19a5aa7a0, 
evt=evt@entry=0x7f38e800b6b0) at src/mbc/mbcsv_act.c:402
#21 0x00007f38f70b5f13 in ncs_mbcsv_rcv_cold_sync_resp_cmplt 
(peer=0x55b19a5aa7a0, evt=0x7f38e800b6b0) at src/mbc/mbcsv_act.c:589
#22 0x00007f38f70bca9c in mbcsv_process_events (rcvd_evt=0x7f38e800b6b0, 
mbcsv_hdl=mbcsv_hdl@entry=4293918753) at src/mbc/mbcsv_pr_evts.c:165
#23 0x00007f38f70bcc0b in mbcsv_hdl_dispatch_all (mbcsv_hdl=4293918753, 
mbx=mbx@entry=4284481537) at src/mbc/mbcsv_pr_evts.c:270
#24 0x00007f38f70b722a in mbcsv_process_dispatch_request (arg=0x7ffe63ba3050) 
at src/mbc/mbcsv_api.c:426
#25 0x000055b198e2287e in lgs_mbcsv_dispatch (mbcsv_hdl=<optimized out>) at 
src/log/logd/lgs_mbcsv.cc:509
#26 0x000055b198dfcf72 in main (argc=<optimized out>, argv=<optimized out>) at 
src/log/logd/lgs_main.cc:592

~~~



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to