Skip to content

Fix crash due to concurrent access in MidiController#13980

Closed
daschuer wants to merge 6 commits into
mixxxdj:2.5from
daschuer:gh13940
Closed

Fix crash due to concurrent access in MidiController#13980
daschuer wants to merge 6 commits into
mixxxdj:2.5from
daschuer:gh13940

Conversation

@daschuer
Copy link
Copy Markdown
Member

@daschuer daschuer commented Dec 4, 2024

This fixes #13940
The fix is implemented by locks around m_pMapping and reference counting.

The locks are either a mutex or a spin lock depending on the compiler support.
I have applied them everywhere, because it is not obvious which threads are readers and writers.

There is potential for further refactoring, because the Mapping is finally no longer shared when used. This is however out of scope of this band aid PR.

@JoergAtGithub
Copy link
Copy Markdown
Member

Such threading issues require a longer testing period, than we have until 2.5.0.

@daschuer daschuer marked this pull request as draft January 25, 2025 23:50
@daschuer
Copy link
Copy Markdown
Member Author

Closing this in favor of #14159

@daschuer daschuer closed this Feb 25, 2025
@daschuer daschuer deleted the gh13940 branch July 1, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants