Skip to content

Failure during CFE_ES_ExitApp if app calls CFE_TBL_Unregister #741

@pcooksey

Description

@pcooksey

Describe the bug
Should an app call CFE_TBL_Unregister?
On CFE_ES_ExitApp I get:

1980-012-14:03:21.25234 CFE_TBL:RemoveAccessLink-PutPoolBuf[0] Fail Stat=0xC4000007, Hndl=0x56709730, Buf=0x00000000
1980-012-14:03:21.25236 CFE_TBL:RemoveAccessLink-PutPoolBuf[0] Fail Stat=0xC4000007, Hndl=0x56709730, Buf=0x00000000

The documentation no longer says anything about it so I'm starting to think it shouldn't be used. The sample_app in the cFS repo also doesn't call CFE_TBL_Unregister either.

The code seems to say we should though:

** \par Description
** When an application is being removed from the system, it should
** unregister those tables that it created. The application should
** call this function as a part of its cleanup process. The table
** will be removed from memory once all table addresses referencing
** it have been released.

To Reproduce

  1. Register table
  2. Unregister table
  3. Call CFE_ES_ExitApp

Expected behavior
No errors on exit

Code snips
N/A

System observed on:

  • Hardware: Laptop
  • OS: Linux
  • Versions: Versions:cFE 6.7.7.0, OSAL 5.0.6.0, PSP 1.4.4.0

Additional context
N/A

Reporter Info
Philip Cooksey, NASA Ames

Metadata

Metadata

Assignees

Labels

bugcFE-TBLTable servicesdocsThis change only affects documentation.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions