bugCERTI - Bugs: bug #49986, requestAttributeOwnershipRelease...

 
 

bug #49986: requestAttributeOwnershipRelease followed by negotiatedAttributeOwnershipDivestiture crashes rtig

Submitted by:  Joris Goosen <jorisgoosen>
Submitted on:  Thu 05 Jan 2017 02:45:44 PM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: Software errorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 3.5.0
Reproducibility: NoneFixed Release: Unknown

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 05 Jan 2017 02:55:56 PM UTC, comment #1:

Aah, it seems that calling negotiatedAttributeOwnershipDivestiture at all will lead to this error.

If I look in the code though the size of the vector IS in fact being set to the right size. The problem is that this is being done only after the assignment is made..
"AnswerDivestiture.setAttributesSize(compteur_divestiture);"

Joris Goosen <jorisgoosen>
Thu 05 Jan 2017 02:45:44 PM UTC, original submission:

I was testing the transferal of attribute ownership and noticed that for a case where a single attribute was being transferred the RTIG crashes.

In this case, a requestAttributeOwnershipRelease is followed by a negotiatedAttributeOwnershipDivestiture for the attribute.
This all goes well until way into the governor where:

void NM_Attribute_Ownership_Base::setAttributes(const AttributeHandle& newAttributes, uint32_t rank)

from NM_Classes.hh is invoked:
"void setAttributes(const AttributeHandle& newAttributes, uint32_t rank) {attributes[rank]=newAttributes;}"

However, the vector attributes is not correctly sized to accomodate the new attribute. This leads to an exception.

Workaround is using attributeOwnershipDivestitureIfWanted or unconditionalAttributeOwnershipDivestiture

Joris Goosen <jorisgoosen>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #39953:  OnlyBugFix.patch added by jorisgoosen (3KiB - application/octet-stream - This fixes the problem for me)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jorisgoosen (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Mar 2017 12:01:00 PM UTCjorisgoosenAttached File-=>Added OnlyBugFix.patch, #39953

    Back to the top


    Powered by Savane 3.1-cleanup1