Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible race condition in CLog #1473

Open
KerstinKeller opened this issue Mar 18, 2024 · 0 comments
Open

Possible race condition in CLog #1473

KerstinKeller opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@KerstinKeller
Copy link
Contributor

Problem Description

There is a possible race condition in the CLog class.
Log doesn't lock the mutex to access the member variable m_level.

How to reproduce

Concurrently calling Log and SetLogLevel functions which will result in a datarace.
Probably, log_level and actual logging variables (file...) need to be protected separately.

Could be fixed, or handled separately, see (#1377)

How did you get eCAL?

Other

Environment

eCAL master.

eCAL System Information

No response

@KerstinKeller KerstinKeller added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant