The same as [url]https://archlinuxarm.org/forum/viewtopic.php?f=15&t=17122[/url] It can be reproduced with the following simple program.
[code]#include <QApplication>
#include <QFileDialog>
#include <QMessageBox>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QString fileName = QFileDialog::getOpenFileName(nullptr, "Open file", "", "All files (*)");
return app.exec();
}[/code]
[code]Thread 1 "FileDialogTest" received signal SIGSEGV, Segmentation fault.
0x0000fffff6eec2fc in QtPrivate::QMetaTypeForType<QImage>::getDtor()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*) ()
at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qmetatype.h:2470
2470 reinterpret_cast<S *>(addr)->~S();
(gdb) bt
#0 0x0000fffff6eec2fc in QtPrivate::QMetaTypeForType<QImage>::getDtor()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*) ()
at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qmetatype.h:2470
#1 0x0000fffff67e0240 in QtMetaTypePrivate::destruct (iface=<optimized out>, where=0xfffffffff118)
at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qmetatype_p.h:203
#2 (anonymous namespace)::customClear (d=0xfffffffff118)
at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qvariant.cpp:295
#3 QVariant::~QVariant (this=0xfffffffff118, __in_chrg=<optimized out>)
at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qvariant.cpp:532
#4 0x0000fffff7c303a4 in QHeaderView::sectionSizeFromContents (this=<optimized out>, logicalIndex=<optimized out>)
at /usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qheaderview.cpp:3029
#5 0x0000fffff7c2e3dc in QHeaderView::sizeHint (this=0xaaaaaab2fe10)
at /usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qheaderview.cpp:489
#6 0x0000fffff7cb7638 in QTreeView::updateGeometries (this=0xaaaaaab2b930)
at /usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qtreeview.cpp:2906
#7 0x0000fffff7c0bd64 in QAbstractItemView::doItemsLayout (this=this@entry=0xaaaaaab2b930)
at /usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qabstractitemview.cpp:1262
#8 0x0000fffff7cb5544 in QTreeView::doItemsLayout (this=0xaaaaaab2b930)
at /usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qtreeview.cpp:2186
#9 0x0000fffff7baabf8 in QFileDialogPrivate::createWidgets (this=<optimized out>)
at /usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qfiledialog.cpp:3103
#10 0x0000fffff7bac2e8 in QFileDialogPrivate::init (this=0xaaaaaab10c00, args=...)
at /usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qfiledialog.cpp:2909
#11 0x0000fffff7bacd00 in QFileDialog::QFileDialog (this=0xaaaaaab1ef80, args=...)
at /usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qfiledialog.cpp:365
#12 0x0000fffff7bacdf4 in QFileDialog::getOpenFileUrl (parent=parent@entry=0x0, caption=..., dir=..., filter=...,
selectedFilter=selectedFilter@entry=0x0, options=options@entry=..., supportedSchemes=...)
at /usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qfiledialog.cpp:2141
#13 0x0000fffff7bad230 in QFileDialog::getOpenFileName (parent=0x0, caption=..., dir=..., filter=...,
selectedFilter=0x0, options=...) at /usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qfiledialog.cpp:2092
#14 0x0000aaaaaaaa0e9c in main ()[/code]