Bug 486314 - k3b crashes while self-burned CDs (with non-UTF-8 encoding) are in optical drive
Summary: k3b crashes while self-burned CDs (with non-UTF-8 encoding) are in optical drive
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-29 19:47 UTC by Friedrich
Modified: 2024-04-29 22:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich 2024-04-29 19:47:33 UTC
SUMMARY
k3b always crashes while a self-burned Audio-CD is in my optical drive.
I've opened the CDs in dolphin and apparently the filenames are not UTF-8 encoded.
The crash doesn't happen with any of the non-selfburned CDs I have.

STEPS TO REPRODUCE
1. Run k3b
2. insert selfburned CD with weird text-encoding

OBSERVED RESULT
The software crashes.

EXPECTED RESULT
The software shouldn't crash.

SOFTWARE/OS VERSIONS
Fedora 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0 
Qt Version: 6.7.0

ADDITIONAL INFORMATION
GDB Backtrace:
#0  0x00007ffff7ac8e21 in K3b::Device::debugBitfield (data=0x7fff433fed04 "O;F", len=3)
    at /usr/include/qt6/QtCore/qarraydatapointer.h:113
#1  0x00007ffff7ab77c3 in K3b::Device::Device::diskInfo (this=0x5555562aada0)
    at /usr/src/debug/k3b-24.02.2-1.fc40.x86_64/libk3bdevice/k3bdevice.cpp:2112
#2  0x00007ffff7e6881e in K3b::Medium::update (this=this@entry=0x7fff433feef0)
    at /usr/src/debug/k3b-24.02.2-1.fc40.x86_64/libk3b/tools/k3bmedium.cpp:174
#3  0x00007ffff7e68dd7 in K3b::MediaCache::PollThread::run (this=0x5555561a4750)
    at /usr/src/debug/k3b-24.02.2-1.fc40.x86_64/libk3b/tools/k3bmediacache.cpp:74
#4  0x00007ffff574f35c in operator() (__closure=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.7.0-3.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:326
#5  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.7.0-3.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:262
#6  QThreadPrivate::start (arg=0x5555561a4750)
    at /usr/src/debug/qt6-qtbase-6.7.0-3.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:285
#7  0x00007ffff4ea91b7 in start_thread (arg=<optimized out>) at pthread_create.c:447
#8  0x00007ffff4f2b39c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Comment 1 Bug Janitor Service 2024-04-29 20:45:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/k3b/-/merge_requests/64
Comment 2 Albert Astals Cid 2024-04-29 20:56:35 UTC
Git commit 57b59e2cbbf7e7a8636b3fcb1ceee8acfd2deec4 by Albert Astals Cid.
Committed on 29/04/2024 at 20:50.
Pushed by aacid into branch 'master'.

K3b::Device::debugBitfield: Fix crash when using Qt6

Qt6 doesn't autoexpand QStrings anymore

M  +3    -3    libk3bdevice/k3bdeviceglobals.cpp

https://invent.kde.org/multimedia/k3b/-/commit/57b59e2cbbf7e7a8636b3fcb1ceee8acfd2deec4
Comment 3 Albert Astals Cid 2024-04-29 22:21:01 UTC
Git commit d44d350542e8983e8a86db706340ca2052850151 by Albert Astals Cid.
Committed on 29/04/2024 at 22:20.
Pushed by aacid into branch 'release/24.05'.

K3b::Device::debugBitfield: Fix crash when using Qt6

Qt6 doesn't autoexpand QStrings anymore
(cherry picked from commit 57b59e2cbbf7e7a8636b3fcb1ceee8acfd2deec4)

M  +3    -3    libk3bdevice/k3bdeviceglobals.cpp

https://invent.kde.org/multimedia/k3b/-/commit/d44d350542e8983e8a86db706340ca2052850151