IBM Support

PI17466: mis-matched include path in cpp file causes RE crash

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Invalid include path in cpp file causes Reverse Engineer (RE)
    crash in IBM Rational Rhapsody
    
    
    SYMPTOM
    
    crash error
    
    Steps to reproduce:
    
    1. Create the file structures:
       test\myclass\include\myclass
       test\myclass\src
    
    2. Create a header file MyClass.h in the include\myclass folder
    
    3. Create a cpp file MyClass.cpp in the src folder
    
    4. Add the line to the MyClass.cpp:
       #include 'MyClass\MyClass.h'
    
    5. Create a new Rhapsody project
    
    6. Reverse engineer the two files with default settings
    
    
    ENVIRONMENT
    
    Windows 7
    
    
    WORKAROUND
    
    The include path in the cpp file to the header file does not
    match the file system structure.
    
    There are two workarounds:
    
    1) Edit the path in MyClass.cpp so that it mirrors the file
    system.
       For example:
       #include '..\include\MyClass\MyClass.h'
    
    or,
    
    2) Add an include path to the RE advanced pre-processing
    settings to
        compensate for the mis-matched header file:
       ?REST_OF_ABSOLUTE_PATH?\include\?
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    mis-matched include path in cpp file causes RE crash
    

Problem conclusion

  • Rhapsody has been fixed to prevent a crush in such cases.
    HOWEVER it is strongly advised that the client enters the
    CORRECT include path.  other ways, the result model will be
    wrong (due you user error).
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI17466

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    806

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-07

  • Closed date

    2014-09-11

  • Last modified date

    2014-09-11

  • 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

  • R806 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.0.6

Reference #: PI17466

Modified date: 11 September 2014