bugCERTI - Bugs: bug #19869, registerObjectInstanceWithRegion...

 
 

bug #19869: registerObjectInstanceWithRegion BUG

Submitted by:  moosefly <moosefly>
Submitted on:  Sun 13 May 2007 02:35:08 PM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: Software errorStatus: None
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: OpenRelease: 3.2.3
Reproducibility: Every TimeFixed Release: Unknown

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 04 Sep 2007 08:32:14 AM UTC, comment #1:

I've just dive into the code for a while
and I agree this seems to be a bug.
We should certainly loop over "req->regions".

The fact is in the NetworkMessage class there is both:

I do not know this part of CERTI [yet :)]
so I need to understand the role of
vs
in order to find a precise answer and fix for this.

However this work is currently not very high in
my CERTI work stack.
Is this 'blocking' for your CERTI usage?

Do you you have a test case which exhibit a wrong behavior?

Did you try a patch on your side?

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Sun 13 May 2007 02:35:08 PM UTC, original submission:

RTI::ObjectHandle
RTI::RTIambassador::registerObjectInstanceWithRegion(
ObjectClassHandle object_class,
const char *tag,
AttributeHandle attrs[],
Region *regions[],
ULong nb)

We can see that the "regions" parameter include multi regions, and certi use "build_region_handles" function to transform it to the RegionHandle array. But the RTIG did not process the RegionHandle array correctly:

In RTIG_processing.cc

// ----------------------------------------
// processRegisterObjectWithRegion
void
RTIG::processRegisterObjectWithRegion(Socket link, NetworkMessage req)
{
NetworkMessage rep ;
rep.object = federations.registerObjectWithRegion(req->federation,
req->federate,
req->objectClass,
req->label,
req->region,
^^^^^^^^^^^
req->handleArraySize,
req->handleArray);

......
}

As shown, RTIG only get the "region" but not the "regions".In my opinion, it's a bug.

moosefly <moosefly>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   task dependencies.

 

Carbon-Copy List
  • -unavailable- added by breholee
  • -unavailable- added by erk (Posted a comment)
  • -unavailable- added by moosefly (Submitted the item)
  •  

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 May 2009 09:39:42 PM UTCbreholeeCarbon-Copy-=>Added breholee
    Tue 04 Sep 2007 08:32:14 AM UTCerkAssigned toNone=>erk

    Back to the top


    Powered by Savane 3.1-cleanup