Skip to content

CFE_SB_AllocateMessageBuffer() fails in multi-threaded context #824

@arya-pathak

Description

@arya-pathak

I am running cFS over Linux on an x86-64 machine. In the main function of my cFS app, I have created a thread through pthread_create(). Inside this thread, I read from a socket, and on receiving data I call another function that sends this data over the software bus. However, here the call to CFE_SB_AllocateMessageBuffer() always fails and returns NULL. On further inspection, the call to CFE_ES_GetAppID() is failing. This was never happening when the app was single-threaded. Any fixes for this?

CC: @rkshthrmsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions