cFE icon indicating copy to clipboard operation
cFE copied to clipboard

Unregistered AppId error with CFE_EVS_SendEventWithAppID() during cFE task startup

Open myc-yang opened this issue 6 months ago • 1 comments

Describe the bug When the ES and the EVS tasks initializes, they make various CFE_SB API calls (i.e. CFE_SB_CreatePipe() and CFE_SB_Subscribe()) which in turn call CFE_EVS_SendEventWithAppID() passing in the AppId for the CFE_SB. CFE_EVS_SendEventWithAppID() then returns a CFE_EVS_APP_ILLEGAL_APP_ID presumably because CFE_SB has not been registered with event services. This might have gone unnoticed because there is no event outputted nor is the return code set to any variable.

To Reproduce Steps to reproduce the behavior:

  1. make SIMULATION=native prep
  2. make
  3. make install
  4. Place a breakpoint here - https://github.com/nasa/cFE/blob/main/modules/evs/fsw/src/cfe_evs.c#L185
  5. Run the gdb and see it stopped at the breakpoint.

System observed on:

  • OS: Ubuntu 22.04.5 LTS
  • cFE v6.7

Reporter Info Michael Yang - NASA/GSFC

myc-yang avatar Aug 06 '25 19:08 myc-yang

CCB 4 September 2025: Tracked internally. Development team will work on this ticket.

dzbaker avatar Sep 04 '25 18:09 dzbaker