Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914929 - dev-qt/qtgui illegal instruction - SSE4_1 instructions when built with CPU_FLAGS_X86="mmx mmxext sse sse2"
Summary: dev-qt/qtgui illegal instruction - SSE4_1 instructions when built with CPU_FL...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-30 05:15 UTC by Winston Weinert
Modified: 2023-10-03 14:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-qt/qtgui-5.15.10-r2 build.log (dev-qt_qtgui-5.15.10-r2-build.log.xz,61.12 KB, text/plain)
2023-09-30 06:01 UTC, Winston Weinert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Winston Weinert 2023-09-30 05:15:34 UTC
It appears mumble is crashing on my machine due to dev-qt/qtgui:5 trying to execute a SSE4_1 (pextrd) instruction when compiled with CPU extension disabled.

Please see the output of eix showing the version of the installed dev-qt/gui package, gdb backtrace and instruction opcodes, and emerge --info.

Build logs will be attached shortly.

+ eix dev-qt/qtgui -I
[I] dev-qt/qtgui
     Available versions:  (5) 5.15.10-r1(5/5.15.10)^t 5.15.10-r2(5/5.15.10)^t
       {+X accessibility dbus debug egl eglfs evdev gles2-only ibus jpeg +libinput linuxfb +png test tslib tuio +udev vnc vulkan wayland}
     Installed versions:  5.15.10-r2(5/5.15.10)^t(10:34:37 PM 09/29/2023)(X libinput png udev -accessibility -dbus -debug -egl -eglfs -evdev -gles2-only -ibus -jpeg -linuxfb -test -tslib -tuio -vnc -vulkan -wayland)
     Homepage:            https://www.qt.io/ https://invent.kde.org/qt/qt/qtbase https://community.kde.org/Qt5PatchCollection
     Description:         The GUI module and platform plugins for the Qt5 framework

Found 1 match
+ gdb mumble
+ echo '
run
bt
disassemble /r
q
exit'
GNU gdb (Gentoo 13.2 vanilla) 13.2
Copyright (C) 2023 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 "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.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 mumble...
Reading symbols from /usr/lib/debug//usr/bin/mumble.debug...
(gdb) (gdb) Starting program: /usr/bin/mumble 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb4dcdb40 (LWP 23243)]
[New Thread 0xb43ffb40 (LWP 23244)]
<D>2023-09-29 23:57:39.203 libopus 1.4 from libopus.so.0
<W>2023-09-29 23:57:39.268 CELT bitstream 8000000b from /usr/lib/mumble/libcelt0.so.0.7.0
<W>2023-09-29 23:57:39.274 Theme: "Mumble"
<W>2023-09-29 23:57:39.274 Style: "Lite"
<W>2023-09-29 23:57:39.275 --> qss: ":themes/Mumble/Lite.qss"
<W>2023-09-29 23:57:39.276 Locale is "en_US" (System: "en_US")
[New Thread 0xb39ffb40 (LWP 23245)]
<W>2023-09-29 23:57:39.763 Database SQLite: "3.42.0"

Thread 1 "mumble" received signal SIGILL, Illegal instruction.
0xb6af2d73 in QRgba64::isOpaque (this=0xbfffeecc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/include/QtGui/../../src/gui/painting/qrgba64.h:99
99	        return (rgba & alphaMask()) == alphaMask();
(gdb) #0  0xb6af2d73 in QRgba64::isOpaque (this=0xbfffeecc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/include/QtGui/../../src/gui/painting/qrgba64.h:99
#1  QRgba64::premultiplied (this=0xbfffeecc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/include/QtGui/../../src/gui/painting/qrgba64.h:150
#2  0xb6ca0a13 in qPremultiply (c=...)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/include/QtGui/../../src/gui/painting/qrgba64.h:232
#3  QSpanData::setup (this=0xc961d0, brush=..., alpha=256, 
    compositionMode=QPainter::CompositionMode_SourceOver)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/painting/qpaintengine_raster.cpp:4540
#4  0xb6ca1063 in QRasterPaintEngine::begin (this=0xc28f00, device=0xbffff0bc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/painting/qpaintengine_raster.cpp:499
#5  0xb6cace6a in QPainter::begin (this=<optimized out>, pd=0xbffff0bc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/painting/qpainter.cpp:1843
#6  0xb6cad10e in QPainter::QPainter (this=0xbffff098, pd=0xbffff0bc)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/painting/qpainter.cpp:1500
#7  0xb3b0ccef in ?? () from /usr/lib/qt5/plugins/iconengines/libqsvgicon.so
#8  0xb6b71ff0 in QIcon::pixmap (this=0xbffff22c, window=0x0, size=..., 
    mode=QIcon::Normal, state=QIcon::Off)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/image/qicon.cpp:905
#9  0xb6b7211d in QIcon::pixmap (this=0xbffff22c, size=..., 
    mode=QIcon::Normal, state=QIcon::Off)
    at /usr/src/debug/dev-qt/qtgui-5.15.10-r2/qtbase-everywhere-src-5.15.10/src/gui/image/qicon.cpp:841
#10 0x004f0725 in QIcon::pixmap (state=QIcon::Off, mode=QIcon::Normal, h=48, 
    w=48, this=0xbffff22c) at /usr/include/qt5/QtGui/qicon.h:80
#11 LCD::LCD (this=0xc43c50)
    at /usr/src/debug/net-voip/mumble-1.4.287-r1/mumble-1.4.287.src/src/mumble/LCD.cpp:193
#12 0x0044c2c8 in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/net-voip/mumble-1.4.287-r1/mumble-1.4.287.src/src/mumble/main.cpp:657
(gdb) Dump of assembler code for function _ZNK7QRgba6413premultipliedEv:
   0xb6af2d58 <+0>:	55                 	push   %ebp
   0xb6af2d59 <+1>:	89 e5              	mov    %esp,%ebp
   0xb6af2d5b <+3>:	57                 	push   %edi
   0xb6af2d5c <+4>:	8b 45 0c           	mov    0xc(%ebp),%eax
   0xb6af2d5f <+7>:	56                 	push   %esi
   0xb6af2d60 <+8>:	8b 7d 08           	mov    0x8(%ebp),%edi
   0xb6af2d63 <+11>:	53                 	push   %ebx
   0xb6af2d64 <+12>:	e8 c7 db ff ff     	call   0xb6af0930 <__x86.get_pc_thunk.bx>
   0xb6af2d69 <+17>:	81 c3 8b 62 38 00  	add    $0x38628b,%ebx
   0xb6af2d6f <+23>:	f3 0f 7e 00        	movq   (%eax),%xmm0
=> 0xb6af2d73 <+27>:	66 0f 3a 16 c6 01  	pextrd $0x1,%xmm0,%esi
   0xb6af2d79 <+33>:	0f 28 8b fc 80 f0 ff	movaps -0xf7f04(%ebx),%xmm1
   0xb6af2d80 <+40>:	0f 54 c8           	andps  %xmm0,%xmm1
   0xb6af2d83 <+43>:	66 0f 3a 16 c8 01  	pextrd $0x1,%xmm1,%eax
   0xb6af2d89 <+49>:	3d 00 00 ff ff     	cmp    $0xffff0000,%eax
   0xb6af2d8e <+54>:	0f 84 cd 00 00 00  	je     0xb6af2e61 <_ZNK7QRgba6413premultipliedEv+265>
   0xb6af2d94 <+60>:	81 fe ff ff 00 00  	cmp    $0xffff,%esi
   0xb6af2d9a <+66>:	77 0c              	ja     0xb6af2da8 <_ZNK7QRgba6413premultipliedEv+80>
   0xb6af2d9c <+68>:	31 c0              	xor    %eax,%eax
   0xb6af2d9e <+70>:	89 07              	mov    %eax,(%edi)
   0xb6af2da0 <+72>:	89 47 04           	mov    %eax,0x4(%edi)
   0xb6af2da3 <+75>:	e9 bd 00 00 00     	jmp    0xb6af2e65 <_ZNK7QRgba6413premultipliedEv+269>
   0xb6af2da8 <+80>:	0f 28 93 0c 81 f0 ff	movaps -0xf7ef4(%ebx),%xmm2
   0xb6af2daf <+87>:	c1 ee 10           	shr    $0x10,%esi
   0xb6af2db2 <+90>:	0f 28 a3 0c 81 f0 ff	movaps -0xf7ef4(%ebx),%xmm4
   0xb6af2db9 <+97>:	0f 54 d0           	andps  %xmm0,%xmm2
   0xb6af2dbc <+100>:	66 0f 73 d0 10     	psrlq  $0x10,%xmm0
   0xb6af2dc1 <+105>:	66 0f 7e d0        	movd   %xmm2,%eax
   0xb6af2dc5 <+109>:	66 0f 3a 16 d1 01  	pextrd $0x1,%xmm2,%ecx
   0xb6af2dcb <+115>:	0f 28 93 0c 81 f0 ff	movaps -0xf7ef4(%ebx),%xmm2
   0xb6af2dd2 <+122>:	f7 e6              	mul    %esi
   0xb6af2dd4 <+124>:	0f 28 ab 0c 81 f0 ff	movaps -0xf7ef4(%ebx),%xmm5
   0xb6af2ddb <+131>:	0f af ce           	imul   %esi,%ecx
   0xb6af2dde <+134>:	0f 54 c2           	andps  %xmm2,%xmm0
   0xb6af2de1 <+137>:	66 0f 6e d8        	movd   %eax,%xmm3
   0xb6af2de5 <+141>:	66 0f 7e c0        	movd   %xmm0,%eax
   0xb6af2de9 <+145>:	01 ca              	add    %ecx,%edx
   0xb6af2deb <+147>:	66 0f 3a 16 c1 01  	pextrd $0x1,%xmm0,%ecx
   0xb6af2df1 <+153>:	66 0f 3a 22 da 01  	pinsrd $0x1,%edx,%xmm3
   0xb6af2df7 <+159>:	0f af ce           	imul   %esi,%ecx
   0xb6af2dfa <+162>:	f7 e6              	mul    %esi
   0xb6af2dfc <+164>:	0f 28 f3           	movaps %xmm3,%xmm6
   0xb6af2dff <+167>:	66 0f 73 d6 10     	psrlq  $0x10,%xmm6
   0xb6af2e04 <+172>:	0f 28 c6           	movaps %xmm6,%xmm0
   0xb6af2e07 <+175>:	01 ca              	add    %ecx,%edx
   0xb6af2e09 <+177>:	66 0f 6e d0        	movd   %eax,%xmm2
   0xb6af2e0d <+181>:	0f 54 c4           	andps  %xmm4,%xmm0
   0xb6af2e10 <+184>:	66 0f 3a 22 d2 01  	pinsrd $0x1,%edx,%xmm2
   0xb6af2e16 <+190>:	0f 28 a3 1c 81 f0 ff	movaps -0xf7ee4(%ebx),%xmm4
   0xb6af2e1d <+197>:	0f 28 fa           	movaps %xmm2,%xmm7
   0xb6af2e20 <+200>:	66 0f 73 d7 10     	psrlq  $0x10,%xmm7
   0xb6af2e25 <+205>:	66 0f d4 dc        	paddq  %xmm4,%xmm3
   0xb6af2e29 <+209>:	0f 28 e7           	movaps %xmm7,%xmm4
   0xb6af2e2c <+212>:	66 0f d4 c3        	paddq  %xmm3,%xmm0
   0xb6af2e30 <+216>:	0f 28 9b 0c 81 f0 ff	movaps -0xf7ef4(%ebx),%xmm3
   0xb6af2e37 <+223>:	0f 54 e5           	andps  %xmm5,%xmm4
   0xb6af2e3a <+226>:	66 0f 73 d0 10     	psrlq  $0x10,%xmm0
   0xb6af2e3f <+231>:	0f 28 ab 1c 81 f0 ff	movaps -0xf7ee4(%ebx),%xmm5
   0xb6af2e46 <+238>:	0f 54 c3           	andps  %xmm3,%xmm0
   0xb6af2e49 <+241>:	0f 28 9b 2c 81 f0 ff	movaps -0xf7ed4(%ebx),%xmm3
   0xb6af2e50 <+248>:	66 0f d4 d5        	paddq  %xmm5,%xmm2
   0xb6af2e54 <+252>:	66 0f d4 d4        	paddq  %xmm4,%xmm2
   0xb6af2e58 <+256>:	0f 54 d3           	andps  %xmm3,%xmm2
   0xb6af2e5b <+259>:	0f 56 c2           	orps   %xmm2,%xmm0
   0xb6af2e5e <+262>:	0f 56 c1           	orps   %xmm1,%xmm0
   0xb6af2e61 <+265>:	66 0f d6 07        	movq   %xmm0,(%edi)
   0xb6af2e65 <+269>:	5b                 	pop    %ebx
   0xb6af2e66 <+270>:	89 f8              	mov    %edi,%eax
   0xb6af2e68 <+272>:	5e                 	pop    %esi
   0xb6af2e69 <+273>:	5f                 	pop    %edi
   0xb6af2e6a <+274>:	5d                 	pop    %ebp
   0xb6af2e6b <+275>:	c2 04 00           	ret    $0x4
End of assembler dump.
(gdb) A debugging session is active.

	Inferior 1 [process 23240] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
$ emerge --info
Portage 3.0.49 (python 3.11.5-final-0, default/linux/x86/17.0/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.1.53-gentoo-dist i686)
=================================================================
System uname: Linux-6.1.53-gentoo-dist-i686-Intel-R-_Pentium-R-_M_processor_1600MHz-with-glibc2.37
KiB Mem:     1013140 total,    380648 free
KiB Swap:    2097148 total,   1513952 free
Timestamp of repository gentoo: Tue, 26 Sep 2023 21:30:01 +0000
Head commit of repository gentoo: 465e60a07f5b12dc62df42ff8bfb01d5f7b55be8
Head commit of repository winny: 7f00eaa7eacbb3992a7194d9966a0b4843c7df3d

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6-r1::winny
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

winny
    location: /var/db/repos/winny
    sync-type: git
    sync-uri: https://github.com/winny-/winny-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-Os -march=pentium-m"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-Os -march=pentium-m"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -march=pentium-m"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="zstd"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=pentium-m -C opt-level=s"
SHELL="/bin/bash"
USE="X acl alsa brotli bzip2 cli crypt cryptsetup device-mapper dri fortran gdbm gpm iconv ipv6 libtirpc lto lvm ncurses nls nptl pam pcre pgo readline seccomp ssl systemd test-rust udev unicode x86 xattr zlib zstd" ABI_X86="32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="vesa radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Winston Weinert 2023-09-30 06:01:34 UTC
Created attachment 871796 [details]
dev-qt/qtgui-5.15.10-r2 build.log