nasa / nasa/CS

ES - RegisteredTasks Counter Does Not Decrement When Child Tasks are Exited

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-further-investigation
Dominant language
C
Stars
36
Forks
41
Avg merge
11d 19h
Merged PRs (30d)
2

Description

Stakeholder reported that the ES "RegisteredTasks" counter was not decrementing when a child task exited. The CS code was examined to ensure the needed ES API calls were being made. It was confirmed the CS child tasks make the ES API call to CFE_ES_ExitChildTask. The CFE_ES_ExitChildTask API function does decrement the RegisteredTasks counter on line 1337 however, this step is performed only if conditional checks are passed.

Really CS shouldn't dynamically be creating/exiting child tasks per a separate issue, but noted here still since it was an observed issue (although no steps provided to recreate).

Imported from GSFCCFS-951

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the CS child-task exit path and the CFE_ES_ExitChildTask conditional checks around line 1337. No reproduction steps, filenames, tests, or expected corrected behavior are provided, so first establish whether the counter fails for a reproducible child-task exit case. Done criteria are not defined in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.