[tickets] [opensaf:tickets] #2322 Amf: Amfd crashed during cold sync
- **status**: review --> fixed - **Comment**: changeset: 8619:addb5d754d71 branch: opensaf-5.0.x parent: 8607:adc96bde4277 user:Nagendra Kumardate:Mon Feb 27 13:49:09 2017 +0530 files: osaf/services/saf/amf/amfd/sutcomptype.cc description: amfd: fix null ptr accessing issue [#2322] changeset: 8620:5be5a71b5069 branch: opensaf-5.1.x parent: 8617:37f663fdfaaa user:Nagendra Kumar date:Mon Feb 27 13:49:44 2017 +0530 files: osaf/services/saf/amf/amfd/sutcomptype.cc description: amfd: fix null ptr accessing issue [#2322] changeset: 8621:7e68a07b0742 tag: tip parent: 8618:2e299171c00e user:Nagendra Kumar date:Mon Feb 27 13:50:04 2017 +0530 files: src/amf/amfd/sutcomptype.cc description: amfd: fix null ptr accessing issue [#2322] [staging:addb5d] [staging:5be5a7] [staging:7e68a0] --- ** [tickets:#2322] Amf: Amfd crashed during cold sync** **Status:** fixed **Milestone:** 5.0.2 **Created:** Thu Feb 23, 2017 11:33 AM UTC by Nagendra Kumar **Last Updated:** Thu Feb 23, 2017 12:36 PM UTC **Owner:** Nagendra Kumar Steps to reproduce 1. Start SC-1, upload a demo app. 2. Keep 5 seconds delay at the following code: diff --git a/src/amf/amfd/imm.cc b/src/amf/amfd/imm.cc --- a/src/amf/amfd/imm.cc +++ b/src/amf/amfd/imm.cc @@ -1602,6 +1602,10 @@ unsigned int avd_imm_config_get(void) if (avd_comptype_config_get() != SA_AIS_OK) goto done; + LOG_ER("1. Before sleep "); + sleep(5); + LOG_ER("2. After sleep"); + /* SaAmfSUType needed by SaAmfSGType */ if (avd_sutype_config_get() != SA_AIS_OK) goto done; 3. Start SC-2, when it print "Before sleep". Then run the below command on SC-1: immcfg -d "safMemberCompType=safVersion=1\,safCompType=AmfDemo1,safVersion=1,safSuType=AmfDemo1" Observed behaviour -- When SC-2 comes up after sleep, it crashes at: Core was generated by `/usr/local/lib/opensaf/osafamfd --tracemask=0x'. Program terminated with signal 11, Segmentation fault. #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 131 if (sutcomptype->curr_num_components == 0) { (gdb) bt #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 #1 0x7f64bc2d9757 in ccb_completed_cb(unsigned long long, unsigned long long) () at src/amf/amfd/imm.cc:1065 #2 0x7f64bb81dd64 in imma_process_callback_info(imma_cb*, imma_client_node*, imma_callback_info*, unsigned long long) () at src/imm/agent/imma_proc.cc:2174 #3 0x7f64bb81f739 in imma_hdl_callbk_dispatch_all(imma_cb*, unsigned long long) () at src/imm/agent/imma_proc.cc:1732 #4 0x7f64bb81659a in saImmOiDispatch () at src/imm/agent/imma_oi_api.cc:609 #5 0x7f64bc296ab8 in main () at src/amf/amfd/main.cc:729 --- Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.-- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Opensaf-tickets mailing list Opensaf-tickets@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-tickets
[tickets] [opensaf:tickets] #2322 Amf: Amfd crashed during cold sync
- **status**: accepted --> review --- ** [tickets:#2322] Amf: Amfd crashed during cold sync** **Status:** review **Milestone:** 5.0.2 **Created:** Thu Feb 23, 2017 11:33 AM UTC by Nagendra Kumar **Last Updated:** Thu Feb 23, 2017 11:33 AM UTC **Owner:** Nagendra Kumar Steps to reproduce 1. Start SC-1, upload a demo app. 2. Keep 5 seconds delay at the following code: diff --git a/src/amf/amfd/imm.cc b/src/amf/amfd/imm.cc --- a/src/amf/amfd/imm.cc +++ b/src/amf/amfd/imm.cc @@ -1602,6 +1602,10 @@ unsigned int avd_imm_config_get(void) if (avd_comptype_config_get() != SA_AIS_OK) goto done; + LOG_ER("1. Before sleep "); + sleep(5); + LOG_ER("2. After sleep"); + /* SaAmfSUType needed by SaAmfSGType */ if (avd_sutype_config_get() != SA_AIS_OK) goto done; 3. Start SC-2, when it print "Before sleep". Then run the below command on SC-1: immcfg -d "safMemberCompType=safVersion=1\,safCompType=AmfDemo1,safVersion=1,safSuType=AmfDemo1" Observed behaviour -- When SC-2 comes up after sleep, it crashes at: Core was generated by `/usr/local/lib/opensaf/osafamfd --tracemask=0x'. Program terminated with signal 11, Segmentation fault. #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 131 if (sutcomptype->curr_num_components == 0) { (gdb) bt #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 #1 0x7f64bc2d9757 in ccb_completed_cb(unsigned long long, unsigned long long) () at src/amf/amfd/imm.cc:1065 #2 0x7f64bb81dd64 in imma_process_callback_info(imma_cb*, imma_client_node*, imma_callback_info*, unsigned long long) () at src/imm/agent/imma_proc.cc:2174 #3 0x7f64bb81f739 in imma_hdl_callbk_dispatch_all(imma_cb*, unsigned long long) () at src/imm/agent/imma_proc.cc:1732 #4 0x7f64bb81659a in saImmOiDispatch () at src/imm/agent/imma_oi_api.cc:609 #5 0x7f64bc296ab8 in main () at src/amf/amfd/main.cc:729 --- Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.-- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Opensaf-tickets mailing list Opensaf-tickets@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-tickets
[tickets] [opensaf:tickets] #2322 Amf: Amfd crashed during cold sync
--- ** [tickets:#2322] Amf: Amfd crashed during cold sync** **Status:** accepted **Milestone:** 5.0.2 **Created:** Thu Feb 23, 2017 11:33 AM UTC by Nagendra Kumar **Last Updated:** Thu Feb 23, 2017 11:33 AM UTC **Owner:** Nagendra Kumar Steps to reproduce 1. Start SC-1, upload a demo app. 2. Keep 5 seconds delay at the following code: diff --git a/src/amf/amfd/imm.cc b/src/amf/amfd/imm.cc --- a/src/amf/amfd/imm.cc +++ b/src/amf/amfd/imm.cc @@ -1602,6 +1602,10 @@ unsigned int avd_imm_config_get(void) if (avd_comptype_config_get() != SA_AIS_OK) goto done; + LOG_ER("1. Before sleep "); + sleep(5); + LOG_ER("2. After sleep"); + /* SaAmfSUType needed by SaAmfSGType */ if (avd_sutype_config_get() != SA_AIS_OK) goto done; 3. Start SC-2, when it print "Before sleep". Then run the below command on SC-1: immcfg -d "safMemberCompType=safVersion=1\,safCompType=AmfDemo1,safVersion=1,safSuType=AmfDemo1" Observed behaviour -- When SC-2 comes up after sleep, it crashes at: Core was generated by `/usr/local/lib/opensaf/osafamfd --tracemask=0x'. Program terminated with signal 11, Segmentation fault. #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 131 if (sutcomptype->curr_num_components == 0) { (gdb) bt #0 sutcomptype_ccb_completed_cb(CcbUtilOperationData*) () at src/amf/amfd/sutcomptype.cc:131 #1 0x7f64bc2d9757 in ccb_completed_cb(unsigned long long, unsigned long long) () at src/amf/amfd/imm.cc:1065 #2 0x7f64bb81dd64 in imma_process_callback_info(imma_cb*, imma_client_node*, imma_callback_info*, unsigned long long) () at src/imm/agent/imma_proc.cc:2174 #3 0x7f64bb81f739 in imma_hdl_callbk_dispatch_all(imma_cb*, unsigned long long) () at src/imm/agent/imma_proc.cc:1732 #4 0x7f64bb81659a in saImmOiDispatch () at src/imm/agent/imma_oi_api.cc:609 #5 0x7f64bc296ab8 in main () at src/amf/amfd/main.cc:729 --- Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.-- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Opensaf-tickets mailing list Opensaf-tickets@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-tickets