[Pkg-kde-extras] Bug#1116548: /usr/bin/kaffeine: crashes while scheduling DVB-T2 recording in EPG after upgrade from Bookworm to Trixie

Dominique Parisot powimod at gmail.com
Tue Dec 16 18:05:55 GMT 2025


Hi,

I can confirm this bug. Kaffeine crashes when adding or modifying DVB
channels or recordings.
The issue is in SqlInterface::sqlFindFreeKey, where std::prev is called
with an invalid argument (-1).

I tested the following fix (removing the -1 argument), and it resolves the
crash:
--- a/src/sqlinterface.h
+++ b/src/sqlinterface.h
@@ -87,7 +87,7 @@
     if (!container.isEmpty()) {
-        sqlKey = SqlKey(std::prev(container.constEnd(), -1).key().sqlKey +
1);
+        sqlKey = SqlKey(std::prev(container.constEnd()).key().sqlKey + 1);
     }
     [...]

This patch works for me. Could it be integrated into the Debian package?

Regards,
[Dominique]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-extras/attachments/20251216/fd36bf09/attachment.htm>


More information about the pkg-kde-extras mailing list