Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.0
-
None
-
-
ab49644be (dev), 18ba8ff68 (6.5), efb90dbca (6.4)
Description
This program works on Qt 5, but crashes on Qt 6 (segfault)
#include <QAudioOutput>
int main() {
auto* foo = new QAudioOutput();
}
cmake_minimum_required(VERSION 3.23)
project(foo)
find_package(Qt6 COMPONENTS Multimedia REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main Qt6::Multimedia)
I'm using Gentoo Linux, amd64
Stacktrace:
(gdb) bt full
#0 0x00007ffff7f28d64 in QMediaDevices::audioOutputs () at /mnt/portagetmp/portage/dev-qt/qtmultimedia-6.4.0/work/qtmultimedia-everywhere-src-6.4.0/src/multimedia/qmediadevices.cpp:133
No locals.
#1 0x00007ffff7f28f45 in QMediaDevices::defaultAudioOutput () at /mnt/portagetmp/portage/dev-qt/qtmultimedia-6.4.0/work/qtmultimedia-everywhere-src-6.4.0/src/multimedia/qmediadevices.cpp:190
{{ outputs = {<QListSpecialMethods<QAudioDevice>> = {<QListSpecialMethodsBase<QAudioDevice>> =
, <No data fields>}, d = {d = 0x18, ptr = 0x0, size = 93824992235925}}}}
#2 0x00007ffff7f0548a in QAudioOutput::QAudioOutput (this=0x555555581730, parent=0x0) at /mnt/portagetmp/portage/dev-qt/qtmultimedia-6.4.0/work/qtmultimedia-everywhere-src-6.4.0/src/multimedia/audio/qaudiooutput.cpp:54
No locals.
#3 0x00005555555551ba in main () at /tmp/foo/main.cpp:5
{{ foo = 0x7ffff73c1f20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS_resourceGlobalData> >::instance()::holder>}}