[Ace-users] [tao-users] ACE+TAO 5.6.2: Bug in CosNotifyFilter::Filter::add_constraints()

Wernke zur Borg wernke.zur.borg at vega.de
Tue Jan 22 01:54:57 CST 2008


Here is the bug report for 5.6.2. I have also added a suggestion for a
fix.

Regards, Wernke

------------------------------------------------------------------------
----


    ACE VERSION: 5.6.2

    HOST MACHINE and OPERATING SYSTEM: n/a

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    COMPILER NAME AND VERSION (AND PATCHLEVEL): n/a

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]: n/a

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]: n/a

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles): n/a

    AREA/CLASS/EXAMPLE AFFECTED:  CosNotifyFilter::Filter :
      Return structure of CosNotifyFilter::Filter::add_constraints()
      is not properly populated. The member
ConstraintInfo::constraint_id 
      remains unset.

    DOES THE PROBLEM AFFECT:
        COMPILATION? no
        LINKING? no
            On Unix systems, did you run make realclean first?
        EXECUTION? yes
        OTHER (please specify)?

    SYNOPSIS:
      Random content of return value ConstraintInfo.constraint_id
      upon call of CosNotifyFilter::Filter::add_constraints().

    DESCRIPTION:
      Return structure of CosNotifyFilter::Filter::add_constraints()
      is not properly populated. The member
ConstraintInfo::constraint_id 
      remains unset.
      
      Source code in TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp
      clearly shows that the struct member is not set.

    REPEAT BY:
      In the Filter example TAO/orbsvcs/examples/Notify/Filter evaluate
      the return value of add_constraints() in Filter.cpp, line 163.
      The member constraint_id will show a random value.
    
    SAMPLE FIX/WORKAROUND:
      The easiest way might be to change the argument of
add_constraints_i()
      to non-const and insert the constraint_id in that function.
      



More information about the Ace-users mailing list