LMMS / LMMS/lmms

Crash caused by concurrent access to the sndio MIDI handle

Open
#8,450 1 comment 0 reactions 1 assignee Claimed by @rubiefawn View on GitHub
bug
Dominant language
C++
Stars
10.4k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
7

Description

On 2026-05-25, the OpenBSD LMMS port received a patch ([`include/MidiSndio.h`](https://cvsweb.openbsd.org/checkout/ports/audio/lmms/patches/patch-include_MidiSndio_h,v?rev=1.1), [`src/core/midi/MidiSndio.cpp`](https://cvsweb.openbsd.org/checkout/ports/audio/lmms/patches/patch-src_core_midi_MidiSndio_cpp,v?rev=1.1)) 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.