Skip to content

Crash caused by concurrent access to the sndio MIDI handle #8450

Description

@rubiefawn

On 2026-05-25, the OpenBSD LMMS port received a patch (include/MidiSndio.h, src/core/midi/MidiSndio.cpp) with the following message:

ratchov

Add the necessary locking to the sndio MIDI backend

Fixes crashes caused concurrent accesses to the sndio MIDI handle.

ok rsadowski

I haven't personally replicated this crash but it seems likely to be a problem.

The simplest solution would be to apply these patches upstream (here) but they use a mutex to solve the problem which is not ideal.

Metadata

Metadata

Assignees

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