[Bug 1155955] New: qt segfaults in WSL

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 Bug ID: 1155955 Summary: qt segfaults in WSL Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: fvogt@suse.com Reporter: lnussel@suse.com QA Contact: qa-bugs@suse.de CC: mlin@suse.com Found By: --- Blocker: --- Script started on 2019-11-05 16:50:48+00:00 [TERM="xterm-256color" TTY="/dev/tty1" COLUMNS="95" LINES="30"] $ gdb /usr/lib64/libQt5Core.so.5 [35;1mGNU gdb (GDB; openSUSE Tumbleweed) 8.3.1 [mCopyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://bugs.opensuse.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from [32m/usr/lib64/libQt5Core.so.5[m... Reading symbols from [32m/usr/lib/debug/usr/lib64/libQt5Core.so.5.13.1-5.13.1-2.1.x86_64.debug[m... (gdb) r Starting program: /usr/lib64/libQt5Core.so.5 warning: Probes-based dynamic linker interface failed. Reverting to original interface. This is the QtCore library version Qt 5.13.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.2.1 20190820 [gcc-9-branch revision 274748]) Copyright (C) 2016 The Qt Company Ltd. Contact: http://www.qt.io/licensing/ Installation prefix: /usr Library path: lib64 Include path: include/qt5 Program received signal SIGSEGV, Segmentation fault. [34m0x0000000008146e46[m in [33mdetectProcessorFeatures[m () at [32mtools/qsimd.cpp[m:538 538 quint64 f = detectProcessorFeatures(); (gdb) bt #0 [34m0x0000000008146e46[m in [33mdetectProcessorFeatures[m () at [32mtools/qsimd.cpp[m:538 #1 [33mqDetectCpuFeatures[m () at [32mtools/qsimd.cpp[m:538 #2 [34m0x0000000008147253[m in [33mqCpuFeatures[m () at [32mtools/qsimd_p.h[m:356 #3 [33mqDumpCPUFeatures[m () at [32mtools/qsimd.cpp[m:575 #4 [34m0x00000000080c30d0[m in [33mqt_core_boilerplate[m () at [32mglobal/qlibraryinfo.cpp[m:727 (gdb) disassemble $rip-16,$rip+16 Dump of assembler code from 0x8146e36 to 0x8146e56: [34m0x0000000008146e36[m <[33mqDetectCpuFeatures()[m+22>: mov 0x28,%eax [34m0x0000000008146e3d[m <[33mqDetectCpuFeatures()[m+29>: mov %rax,0x68(%rsp) [34m0x0000000008146e42[m <[33mqDetectCpuFeatures()[m+34>: xor %eax,%eax [34m0x0000000008146e44[m <[33mqDetectCpuFeatures()[m+36>: mov %esi,%eax => [34m0x0000000008146e46[m <[33mqDetectCpuFeatures()[m+38>: movaps %xmm0,0x30(%rsp) [34m0x0000000008146e4b[m <[33mqDetectCpuFeatures()[m+43>: xchg %rbx,%rdi [34m0x0000000008146e4e[m <[33mqDetectCpuFeatures()[m+46>: cpuid [34m0x0000000008146e50[m <[33mqDetectCpuFeatures()[m+48>: xchg %rbx,%rdi [34m0x0000000008146e53[m <[33mqDetectCpuFeatures()[m+51>: mov %eax,%esi [34m0x0000000008146e55[m <[33mqDetectCpuFeatures()[m+53>: movl $0x0,0x40(%rsp) End of assembler dump. (gdb) quit A debugging session is active. Inferior 1 [process 7163] will be killed. Quit anyway? (y or n) y $ exit Script done on 2019-11-05 16:51:08+00:00 [COMMAND_EXIT_CODE="0"] -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c1 --- Comment #1 from Ludwig Nussel <lnussel@suse.com> --- works in 15.2 -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c2 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com Summary|qt segfaults in WSL |Calling libQt5Core5.so | |segfaults due to unaligned | |stack Flags| |needinfo?(lnussel@suse.com) --- Comment #2 from Fabian Vogt <fvogt@suse.com> --- Fixed upstream in https://code.qt.io/cgit/qt/qtbase.git/commit/?id=932805807123833bb8f5ae9abda..., so will automatically arrive in TW with the next Qt version update, but could be cherry-picked if necessary. What do you need this for? -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c3 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(lnussel@suse.com) | --- Comment #3 from Ludwig Nussel <lnussel@suse.com> --- some smart guy pointed out yast vnc mode and novnc via browser, so that's what I tried on WSL ;-) When is the next update expected? -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c4 --- Comment #4 from Fabian Vogt <fvogt@suse.com> --- (In reply to Ludwig Nussel from comment #3)
some smart guy pointed out yast vnc mode and novnc via browser, so that's what I tried on WSL ;-)
Qt works fine outside of calling the .so as executable directly, so this has no impact on that use case. Just gave it a try here - works fine!
When is the next update expected?
Qt 5.14.0 is scheduled for end of November. Currently the Beta 2 is staged and blocked by YaST build failures due to use of -Werror=deprecated-declarations :-/ -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c5 --- Comment #5 from Ludwig Nussel <lnussel@suse.com> --- (In reply to Fabian Vogt from comment #4)
(In reply to Ludwig Nussel from comment #3)
some smart guy pointed out yast vnc mode and novnc via browser, so that's what I tried on WSL ;-)
Qt works fine outside of calling the .so as executable directly, so this has no impact on that use case.
Just gave it a try here - works fine!
Didn't work for me, yast segfaulted complaining about libqt. That's why I tried getting a core that way in the first place. So I guess there's another problem somewhere else then or implicit depencencies missing somehow. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c6 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Fabian Vogt <fvogt@suse.com> --- (In reply to Ludwig Nussel from comment #5)
(In reply to Fabian Vogt from comment #4)
(In reply to Ludwig Nussel from comment #3)
some smart guy pointed out yast vnc mode and novnc via browser, so that's what I tried on WSL ;-)
Qt works fine outside of calling the .so as executable directly, so this has no impact on that use case.
Just gave it a try here - works fine!
Didn't work for me, yast segfaulted complaining about libqt. That's why I tried getting a core that way in the first place. So I guess there's another problem somewhere else then or implicit depencencies missing somehow.
This was https://github.com/Microsoft/WSL/issues/3023, so the original segfault was irrelevant. I submitted the crash fix to SLE 15 SP2, Tumbleweed will get it with the next Qt version update. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1155955 http://bugzilla.opensuse.org/show_bug.cgi?id=1155955#c9 --- Comment #9 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1155955) was mentioned in https://build.opensuse.org/request/show/946070 Factory / libqt5-qtbase -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com