Skip to content

RunStatus undefined #462

@RR-HSz

Description

@RR-HSz

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
CF app exits with invalid status 0 (undefined)

To Reproduce
Steps to reproduce the behavior:

  1. Start the cFS application
  2. After CF init succeeded, the CF app exits with invalid status 0
  3. See error in console output

Expected behavior
I expect the CF app to run in running state.

Code snips
In the CF_AppInit() function, from Ln195:

    CF_AppData.RunStatus = CFE_ES_RunStatus_APP_RUN;
    /* Zero-out global data structure */
    memset(&CF_AppData, 0, sizeof(CF_AppData));

This memset clears the RunStatus, that you have set in the previous line.
This will result in RunStatus = CFE_ES_RunStatus_UNDEFINED. CF_AppInit will be successful, but in CF_AppMain the CFE_ES_RunLoop will return false due to invalid status, and CF app will exit.

Find my original comment: f928452#r148478515

System observed on:

  • Hardware: Laptop
  • OS: Ubuntu v23.10
  • Versions [version git:draco-rc5-197-g7f36a040, CF Version 3.0.99.0]

Additional context
N.A.

Reporter Info
Szilárd HELF
Remred

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions