Skip to content

OS_SymbolLookup reports error if symbol is not found #1530

Description

@ivanperez-keera

Calling OS_SymbolLookup (which calls OS_GenericSymbolLookup_Impl) prints error messages if the symbol is not found.

This is causing the lookup of dynamically loaded modules in SBN to throw several error messages even when the behavior is absolutely normal:

OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./core-cpu1: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/sbn.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/cfe_assert.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/sample_lib.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/sample_app.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/ci_lab.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/to_lab.so: undefined symbol: SBN_UDP_Ops
OS_GenericSymbolLookup_Impl():114:Error: SBN_UDP_Ops: ./cf/sch_lab.so: undefined symbol: SBN_UDP_Ops

Calling this function should not report an message labelled as error if the behavior is not really considered an error.

https://github.com/nasa/SBN/blob/7c37a493ecfb0677cbc47407e20d7ef62c48bb2b/fsw/src/sbn_app.c#L995

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions