Checklist (Please check before submitting)
Describe the bug
CF app exits with invalid status 0 (undefined)
To Reproduce
Steps to reproduce the behavior:
- Start the cFS application
- After CF init succeeded, the CF app exits with invalid status 0
- 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
Checklist (Please check before submitting)
Describe the bug
CF app exits with invalid status 0 (undefined)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the CF app to run in running state.
Code snips
In the CF_AppInit() function, from Ln195:
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:
Additional context
N.A.
Reporter Info
Szilárd HELF
Remred