changeset:   4670:1a342bf1a6b0
branch:      opensaf-4.3.x
user:        Nagendra Kumar<[email protected]>
date:        Thu Dec 05 11:14:17 2013 +0530
summary:     amfd: Corrected compiler warning [#91]

changeset:   4671:ae0457eebd88
branch:      opensaf-4.2.x
tag:         tip
parent:      4668:4bba0be6ec0f
user:        Nagendra Kumar<[email protected]>
date:        Thu Dec 05 11:14:40 2013 +0530
summary:     amfd: Corrected compiler warning [#91]



---

** [tickets:#91] AMFND crashed when SU containing components with different 
compcstype, is unlocked**

**Status:** fixed
**Created:** Mon May 13, 2013 04:55 AM UTC by Nagendra Kumar
**Last Updated:** Thu Dec 05, 2013 05:10 AM UTC
**Owner:** nobody

Migrated from http://devel.opensaf.org/ticket/2575

Changeset : 3406


2N SG configured with 2 SUs each containing 5 components 


2 CSTYPEs : CsType1 and CsType2 


7 SIs each having 5 CSIs with different CsTypes in the following manner:
SI1, SI3, SI5 are with 5 CSIs of CSTYPE CsType1 
SI2 and SI4 are with 5 CSIs of CSTYPE CsType2 


CompCsTypes are created such that: 
All components of SU1 are mapped to CSTYPE CsType1 
All components of SU2 are mapped to CSTYPE CsType2 


Dependency is configured as: 
SI1 is sponsor for SI2 
SI2 is sponsor for SI3, SI4, SI5, SI6 and SI7 





The model is created with SUs in LOCKED-INSTANTIATION state
UNLOCK-IN admin operation is performed on SU1 and SU2 
UNLOCK is performed on SU1, 
SU1 got assigned with ACTIVE for SI1. As SI2 is with CSIs of type CsType2 it 
cannot be assigned to SU1. 
So SI2 remained unassigned and hence its dependents 
UNLOCK is performed on SU2. 
As per expectation, SU2 should remain unassigned as it cannot get assignment of 
SI as it does not match Type configuration 





But AMF is trying to assign STANDBY for SI1 to SI1 and AMFND is crashing 





#0 0x0808c627 in assign_si_to_su (si=0x80c2f98, su=0x80b7aa0, single_csi=1) at 
avnd_susm.c:492 
492 avnd_susm.c: No such file or directory. 


in avnd_susm.c 


(gdb) bt 
#0 0x0808c627 in assign_si_to_su (si=0x80c2f98, su=0x80b7aa0, single_csi=1) at 
avnd_susm.c:492 
#1 0x0808c9fb in avnd_su_si_assign (cb=0x80aa9a0, su=0x80b7aa0, si=0x80c2f98) 
at avnd_susm.c:612 
#2 0x0808c087 in avnd_su_si_msg_prc (cb=0x80aa9a0, su=0x80b7aa0, 
info=0x80bafdc) at avnd_susm.c:352 
#3 0x0808a8b4 in avnd_evt_avd_info_su_si_assign_evh (cb=0x80aa9a0, 
evt=0x80bad30) at avnd_su.c:284 
#4 0x08087f98 in avnd_evt_process (evt=0x80bad30) at avnd_proc.c:279 
#5 0x08087da3 in avnd_main_process () at avnd_proc.c:220 
#6 0x0804ff61 in main (argc=Cannot access memory at address 0x2 
) at amfnd_main.c:45 
(gdb) q
=======================================================

Change History
Changed 14 months ago by nagendra ¶
  ■type changed from defect to enhancement 
■milestone changed from 4.2.1 to future_releases 
The handling of mismatching components and csis is not implemented in AMF, it 
will require to implement SaAmfCompCsType?, SaAmfCtCsType? and 
SaAmfSvcTypeCSTypes. So, moving it into enhancement.





---

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.
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to