You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So neither are they atomic, nor are they protected my a mutex. this will lead to a datarace when the CRegistrationProvider asks for GetComponents in the RegisterSendThread.
Problem Description
During eCAL initialization, a datarace may occur.
ecal/ecal/core/src/ecal_globals.h
Lines 100 to 101 in 4baac72
Both
initialized
andcomponents
are regular variables.They are set in
Initialize()
ecal/ecal/core/src/ecal_globals.cpp
Lines 255 to 256 in 4baac72
GetComponents
:ecal/ecal/core/src/ecal_globals.h
Line 67 in 4baac72
So neither are they atomic, nor are they protected my a mutex. this will lead to a datarace when the
CRegistrationProvider
asks forGetComponents
in theRegisterSendThread
.How to reproduce
Build with
-fsanitize=thread
.How did you get eCAL?
I don't know
Environment
==================
==================
eCAL System Information
No response
The text was updated successfully, but these errors were encountered: