IBM Support

PI40913: Timeout pool in RiCTimeout_getMemory() not correctly initialized in SMXF for IBM Rational Rhapsody

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When you attempt to use multiple timeouts in the SMXF for a
    certain Target, the model will be unable to allocate further
    timeouts from the pool after the first.
    
    SYMPTOM
    
    When you attempt to use multiple timeouts in the SMXF for a
    certain Target, it results in the system being unable to
    allocate further timeouts from the pool after the first.
    
    Results:
    
    Only a single timeout can be allocated from the timeout pool at
    a time.
    
    Steps to Reproduce:
    
    1. Create a SMXF project in Rhapsody.
    2. Create a statechart with multiple timeouts to occur within
    the same period of time.
    3. Target the system for a TI F28335 DSP target.
    4. Run the model.
    
    WORKAROUND
    
    You can add the following lines to RiCEvent.c before the while
    loop in the RiCTimeout_getMemory() method:
    
    static RhpBoolean isInitialized = RiCFALSE;
    if (isInitialized == RiCFALSE)
    {
       isInitialized = RiCTRUE;
       for(; ind?TIMEOUTS_POOL_SIZE; ind++){
           timeoutsPool[ind].isAllocated = RiCFALSE;
       }
    }
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody 8.1.2.1                                             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Timeout pool in RiCTimeout_getMemory() not correctly         *
    * initialized in SMXF for IBM Rational Rhapsody                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in 8.1.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI40913

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    811

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-05-12

  • Closed date

    2015-12-22

  • Last modified date

    2015-12-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R812 PSY

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.1.1

Reference #: PI40913

Modified date: 22 December 2015