Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1345, exception logic when app/task is not found #1385

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/es/fsw/src/cfe_es_erlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,24 @@ bool CFE_ES_RunExceptionScan(uint32 ElapsedTime, void *Arg)
*
* Otherwise, if it was related to a task, determine the associated AppID
* so the exception action can be checked.
*
* NOTE: the default exception handling is to restart the processor/system.
* There is an option to only restart the specific app needs, but this must
* be "opt-in", that is, the app was created initially with this option, and
* the exception is also traced back to that app. If either is not possible
* for whatever reason then the restart action (default) should be taken, as
* this gets the highest assurance that the system will be returned to a coherent
* state.
*/
if (OS_ObjectIdDefined(ExceptionTaskID))
{
Status = CFE_ES_GetTaskInfo(&EsTaskInfo, CFE_ES_TaskId_FromOSAL(ExceptionTaskID));

/*
* The App ID was found, now see if the ExceptionAction is set for a reset
*
* NOTE: if anything in this logic fails and the app which caused the exception is not
* postively identified, then this will just follow the default case of PSP reset.
*/
if (Status == CFE_SUCCESS)
{
Expand Down