After updating to qt 5.13.2, all of my qt based applications are now segfaulting immediately after launch. Downgrading back to qt 5.12.5 fixes the problem. [33728.522284] kdiff3[1575]: segfault at 0 ip 0000000000000000 sp 00007ffd5899e1e8 error 14 in kdiff3[561d78d5e000+30000] [33728.522288] Code: Bad RIP value. [33867.037107] wireshark[1940]: segfault at 0 ip 0000000000000000 sp 00007ffc93b3bd38 error 14 in wireshark[561b0f621000+a5000] [33867.037112] Code: Bad RIP value. [33930.700740] kdiff3[2239]: segfault at 0 ip 0000000000000000 sp 00007ffc1bf57de8 error 14 in kdiff3[558b10a23000+30000] [33930.700745] Code: Bad RIP value. [33934.307967] qdirstat[2247]: segfault at 0 ip 0000000000000000 sp 00007fff59358278 error 14 in qdirstat[56249dee3000+2b000] [33934.307972] Code: Bad RIP value. Because this cropped up after a 17.1 profile migration, I did an "emerge -e @world" out of an abundance of caution, but that didn't help. This is only happening on one of my two Gentoo installs. * My installation running natively on hardware (Thinkpad p50) is fine. * The affected install is running virtualized in virtualBox 6.0.14 on Windows 10. Reproducible: Always
Created attachment 602096 [details] Debug information (gdb backtraces, emerge --info, package information)
Not sure how could I help, but I am having the same issue. I am on a different (source-based) distribution, though, which may suggest an upstream bug.
There have indeed been some reports with issues like this when using VirtualBox, though the version numbers don't quite match... See for example: https://forums.gentoo.org/viewtopic-t-1106432.html
QT based applications experienced the same failures after updating inside a virtual container (VirtualBox). A symptom was Plasma experienced a black screen with a cursor after launched from SDDM login or called directly from inside a startx environment, QT applications failed inside other DE's such as MATE. The fix was GCC flag adjustment to Portage in make.conf and rebuilding all of the QT and KDE/Plasma packages. Removing the -MARCH="NATIVE" flag in make.conf solved this issue, it would seem CPU features are being compiled in which aren't supported. This was tested on an i7 6700HQ
Good catch. I can confirm that removing "-march=native" fixes Qt applications for me. I took it a step further and found that qtgui is actually the only package with this problem. All other dev-qt/*, kde-frameworks/*, and kde-plasma/* packages work perfectly fine with "-march=native" - at least for what I have installed for kdiff3/keepassxc/qdirstat/wireshark. And even a step further, qtgui also appears to work with "-march=native -mno-avx2". I noticed qtgui has a patch for "-march=native" and AVX2 in Bug 672946, so this might be rearing its head again in a different way. Verified on i7-6820HQ, which does have AVX2 support. So I suppose that means there's a few options: * GCC is doing something wrong - but I have everything in world built with "-march=native" so that's unlikely. * VirtualBox has been broken all along, but Qt 5.13 introduced new AVX2 code triggering this bug. * Qt has a bug in its AVX2 code, or is incorrectly handling CPU feature detection.
*** Bug 718764 has been marked as a duplicate of this bug. ***
I can confirm, that i have exactly the same issue with dev-qt/qtgui-5.15.1-r1. The whole system installed with -match=native, and re-installing qtgui with "-march=native -mno-avx2" - makes KDE to work again!
Please test the linked patches if you can.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=64901fffffb2e1c54e908e6fd4bec693796a9d2c commit 64901fffffb2e1c54e908e6fd4bec693796a9d2c Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-01-01 18:36:37 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-01-01 18:44:50 +0000 qt5-build.eclass: qtbase: Bump _QT5_GENTOOPATCHSET_REV=5 for 5.15.12 New patches since _QT5_GENTOOPATCHSET_REV=4: Allan Sandfeld Jensen (3): Match deadcode elimination with cpu feature check Sync qt_scale_image_argb32_on_argb32_sse2 and qt_scale_image_32bit Avoid SSE2 punning Thiago Macieira (1): qsimd: Don't force RDRND on if __AVX2__ Ulf Hermann (1): Gui: Always declare qt_memfill{32|64} as function pointers on x86 See also: https://invent.kde.org/qt/qt/qtbase/-/merge_requests/295 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/297 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/298 Bug: https://bugs.gentoo.org/704392 Bug: https://bugs.gentoo.org/707390 Bug: https://bugs.gentoo.org/777480 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-qt/qtconcurrent/Manifest | 2 +- dev-qt/qtcore/Manifest | 2 +- dev-qt/qtdbus/Manifest | 2 +- dev-qt/qtgui/Manifest | 2 +- dev-qt/qtnetwork/Manifest | 2 +- dev-qt/qtopengl/Manifest | 2 +- dev-qt/qtprintsupport/Manifest | 2 +- dev-qt/qtsql/Manifest | 2 +- dev-qt/qttest/Manifest | 2 +- dev-qt/qtwidgets/Manifest | 2 +- dev-qt/qtxml/Manifest | 2 +- eclass/qt5-build.eclass | 6 +++--- 12 files changed, 14 insertions(+), 14 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d44f11ea9871c91e111047e4ad5e2d00151e1fb9 commit d44f11ea9871c91e111047e4ad5e2d00151e1fb9 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-01-01 18:36:37 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-01-01 21:01:17 +0000 qt5-build.eclass: qtbase: Bump _QT5_GENTOOPATCHSET_REV=5 for 5.15.12 New patches since _QT5_GENTOOPATCHSET_REV=4: Allan Sandfeld Jensen (3): Match deadcode elimination with cpu feature check Sync qt_scale_image_argb32_on_argb32_sse2 and qt_scale_image_32bit Avoid SSE2 punning Thiago Macieira (1): qsimd: Don't force RDRND on if __AVX2__ Ulf Hermann (1): Gui: Always declare qt_memfill{32|64} as function pointers on x86 See also: https://invent.kde.org/qt/qt/qtbase/-/merge_requests/295 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/297 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/298 Bug: https://bugs.gentoo.org/704392 Bug: https://bugs.gentoo.org/707390 Bug: https://bugs.gentoo.org/777480 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> eclass/qt5-build.eclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)