You are not logged in.

#1 2016-01-08 13:45:54

zenolijo
Member
Registered: 2013-03-19
Posts: 36

[Solved] General Protection faults on package installation intel-ucode

I have seen a few packages breaking upon installation, and all of them do it in post-installation scripts when installing packages.
After some googling i found these two links that propose the same issue and has a solution link1 link2. However, they simply solve their issues by installing and configuring intel-ucode, and even though i have that fully working i still get segmentation faults.

The strangest part about this is that according to the ArchWiki, you shouldn't need the intel-ucode if your processor is not listed here, and mine isn't (i5 6600k). And according to the ArchWiki again, the dmesg output from down below proves this.

Is this something that should be reported upstream to intel, or am i supposed to do? I see no way to fix this and would love some input either on what I've done wrong, if I'm on the wrong track or if this actually is a microcode bug.




Proof that it's a General Protection Fault?

dmesg | tail -n 1

[   60.495484] traps: vlc-cache-gen[3388] general protection ip:7ff15acbd7e0 sp:7ffcbd93e628 error:0 in libpthread-2.22.so[7ff15acab000+18000]

Proof that Intel ucode is being properly loaded

dmesg | grep microcode | xclip -i -selection clipboard

[    0.313691] microcode: CPU0 sig=0x506e3, pf=0x2, revision=0x39
[    0.313698] microcode: CPU1 sig=0x506e3, pf=0x2, revision=0x39
[    0.313708] microcode: CPU2 sig=0x506e3, pf=0x2, revision=0x39
[    0.313718] microcode: CPU3 sig=0x506e3, pf=0x2, revision=0x39
[    0.313757] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba

Last time i updated my BIOS was in late november, if that makes any difference

sudo dmidecode | grep "Release Date"

	Release Date: 11/19/2015

Proof that my kernel is loaded with initrd=/intel-ucode.img

dmesg | grep ucode

[    0.000000] Command line: root=/dev/sdc2 rw initrd=/intel-ucode.img initrd=/initramfs-linux.img
[    0.000000] Kernel command line: root=/dev/sdc2 rw initrd=/intel-ucode.img initrd=/initramfs-linux.img

My genefi.sh script that generates Arch's bootentry with efibootmgr

cat /boot/genefi.sh

#!/bin/bash
# Remove old entry at 0000
efibootmgr -b 0000 -B
# Create new entry at 0000
efibootmgr -b 0000 -d /dev/sdc -p 1 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sdc2 rw initrd=/intel-ucode.img initrd=/initramfs-linux.img"

The packages that get segfaults on my system: texlive-core, gtk2, gtk3, vlc, gdk-puxbuf2

All these commands that segfaults can be run successfully if run inside valgrind, for example if i want to fix vlc i run "sudo valgrind /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins"

cat /var/log/pacman.log | grep "Segmentation fault"

[2015-11-02 10:30] [ALPM-SCRIPTLET] /tmp/alpm_O6wN1P/.INSTALL: line 1:   915 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-11-02 10:30] [ALPM-SCRIPTLET] /tmp/alpm_8Svf7O/.INSTALL: line 1:   918 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-2.0 --update-cache
[2015-11-02 10:41] [ALPM-SCRIPTLET] /tmp/alpm_hxPXSQ/.INSTALL: line 1:  5462 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2015-11-04 12:05] [ALPM-SCRIPTLET] /tmp/alpm_xsmZs1/.INSTALL: line 1:  8539 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
[2015-11-08 21:02] [ALPM-SCRIPTLET] /tmp/alpm_ya3wOs/.INSTALL: line 1:  2781 Segmentation fault      (core dumped) gtk-query-immodules-2.0 --update-cache
[2015-11-08 21:02] [ALPM-SCRIPTLET] /tmp/alpm_ya3wOs/.INSTALL: line 1:  2783 Segmentation fault      (core dumped) gtk-query-immodules-3.0 --update-cache
[2015-11-08 21:03] [ALPM-SCRIPTLET] /tmp/alpm_tHpRBU/.INSTALL: line 1:  2879 Segmentation fault      (core dumped) gtk-query-immodules-2.0 --update-cache
[2015-11-08 21:03] [ALPM-SCRIPTLET] /tmp/alpm_tHpRBU/.INSTALL: line 1:  2881 Segmentation fault      (core dumped) gtk-query-immodules-3.0 --update-cache
[2015-11-10 16:58] [ALPM-SCRIPTLET] /tmp/alpm_EeODRp/.INSTALL: line 1:  1827 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-11-10 16:58] [ALPM-SCRIPTLET] /tmp/alpm_z2GKjU/.INSTALL: line 1:  1832 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2015-11-11 15:04] [ALPM-SCRIPTLET] /tmp/alpm_658vhH/.INSTALL: line 8: 18891 Segmentation fault      (core dumped) ../../bin/mtxrun --generate > /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] creating all formats...sh: line 1: 18976 Segmentation fault      (core dumped) luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini < /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] sh: line 1: 18989 Segmentation fault      (core dumped) luatex -ini -jobname=luatex -progname=luatex luatex.ini < /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] sh: line 1: 19020 Segmentation fault      (core dumped) luatex -ini -jobname=dvilualatex -progname=dvilualatex dvilualatex.ini < /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] sh: line 1: 19043 Segmentation fault      (core dumped) luatex -ini -jobname=dviluatex -progname=dviluatex dviluatex.ini < /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] sh: line 1: 19062 Segmentation fault      (core dumped) luatex -ini -jobname=lualatex -progname=lualatex lualatex.ini < /dev/null
[2015-11-11 15:04] [ALPM-SCRIPTLET] sh: line 1: 19134 Segmentation fault      (core dumped) luatex -ini -jobname=pdfcsplain -progname=pdfcsplain -etex csplain.ini < /dev/null
[2015-11-22 22:01] [ALPM-SCRIPTLET] /tmp/alpm_iZ5XFg/.INSTALL: line 1:  3825 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2015-11-22 22:01] [ALPM-SCRIPTLET] /tmp/alpm_3GIybA/.INSTALL: line 36:  4049 Segmentation fault      (core dumped) ../../bin/mtxrun --generate > /dev/null
[2015-11-22 22:01] [ALPM-SCRIPTLET] sh: line 1:  4114 Segmentation fault      (core dumped) luatex -ini -jobname=luatex -progname=luatex luatex.ini < /dev/null
[2015-11-22 22:01] [ALPM-SCRIPTLET] sh: line 1:  4131 Segmentation fault      (core dumped) luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini < /dev/null
[2015-11-22 22:01] [ALPM-SCRIPTLET] sh: line 1:  4156 Segmentation fault      (core dumped) luatex -ini -jobname=lualatex -progname=lualatex lualatex.ini < /dev/null
[2015-11-22 22:01] [ALPM-SCRIPTLET] sh: line 1:  4164 Segmentation fault      (core dumped) luatex -ini -jobname=dviluatex -progname=dviluatex dviluatex.ini < /dev/null
[2015-11-22 22:02] [ALPM-SCRIPTLET] sh: line 1:  4230 Segmentation fault      (core dumped) luatex -ini -jobname=dvilualatex -progname=dvilualatex dvilualatex.ini < /dev/null
[2015-11-22 22:02] [ALPM-SCRIPTLET] sh: line 1:  4253 Segmentation fault      (core dumped) luatex -ini -jobname=pdfcsplain -progname=pdfcsplain -etex csplain.ini < /dev/null
[2015-12-08 16:19] [ALPM-SCRIPTLET] /tmp/alpm_BxuLqE/.INSTALL: line 1: 32514 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2015-12-08 16:20] [ALPM-SCRIPTLET] /tmp/alpm_FGRBLt/.INSTALL: line 1: 32675 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_D2k8w2/.INSTALL: line 1: 20270 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_9ZL4V1/.INSTALL: line 1: 20304 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_Dv5VBz/.INSTALL: line 1: 20332 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_enRA8A/.INSTALL: line 1: 20360 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_RDkdUd/.INSTALL: line 1: 20388 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_I0ysMY/.INSTALL: line 1: 20416 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_ri3HcM/.INSTALL: line 1: 20511 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-10 02:11] [ALPM-SCRIPTLET] /tmp/alpm_oAwRZW/.INSTALL: line 1: 20539 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-11 01:18] [ALPM-SCRIPTLET] /tmp/alpm_WnrkJq/.INSTALL: line 1: 17929 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-11 01:18] [ALPM-SCRIPTLET] /tmp/alpm_bbKV43/.INSTALL: line 1: 17965 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2015-12-11 01:19] [ALPM-SCRIPTLET] /tmp/alpm_QB7Y83/.INSTALL: line 1: 18704 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2015-12-14 23:59] [ALPM-SCRIPTLET] /tmp/alpm_WxFQQc/.INSTALL: line 1:  7132 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2015-12-14 23:59] [ALPM-SCRIPTLET] /tmp/alpm_2YSEfF/.INSTALL: line 1:  7164 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-2.0 --update-cache
[2016-01-08 01:04] [ALPM-SCRIPTLET] /tmp/alpm_C2Za7v/.INSTALL: line 1: 19278 Segmentation fault      (core dumped) gdk-pixbuf-query-loaders --update-cache
[2016-01-08 09:35] [ALPM-SCRIPTLET] /tmp/alpm_1N31vH/.INSTALL: line 1:  9047 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2016-01-08 13:00] [ALPM-SCRIPTLET] /tmp/alpm_DsSdsi/.INSTALL: line 1: 32140 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:01] [ALPM-SCRIPTLET] /tmp/alpm_5BRjyy/.INSTALL: line 1: 32455 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:06] [ALPM-SCRIPTLET] /tmp/alpm_EtVJ78/.INSTALL: line 1:  1116 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:07] [ALPM-SCRIPTLET] /tmp/alpm_a41L61/.INSTALL: line 1:  6072 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:07] [ALPM-SCRIPTLET] /tmp/alpm_49GynW/.INSTALL: line 1:  6114 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:08] [ALPM-SCRIPTLET] /tmp/alpm_3S5ppA/.INSTALL: line 1:  6712 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-2.0 --update-cache
[2016-01-08 13:11] [ALPM-SCRIPTLET] /tmp/alpm_cvwSFo/.INSTALL: line 1:  7092 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:12] [ALPM-SCRIPTLET] /tmp/alpm_kh6BZL/.INSTALL: line 1:  7652 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2016-01-08 13:13] [ALPM-SCRIPTLET] /tmp/alpm_i2G1rc/.INSTALL: line 1:  7686 Segmentation fault      (core dumped) /usr/bin/gtk-query-immodules-3.0 --update-cache
[2016-01-08 13:30] [ALPM-SCRIPTLET] /tmp/alpm_BLKdKH/.INSTALL: line 1:  6413 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:38] [ALPM-SCRIPTLET] /tmp/alpm_m2wsAn/.INSTALL: line 1:  3388 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 13:56] [ALPM-SCRIPTLET] /tmp/alpm_fggDEk/.INSTALL: line 1:  8087 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
[2016-01-08 14:04] [ALPM-SCRIPTLET] /tmp/alpm_AtwAdf/.INSTALL: line 1:  9807 Segmentation fault      (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins

Last edited by zenolijo (2016-01-11 17:11:40)

Offline

#2 2016-01-08 14:10:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,750

Re: [Solved] General Protection faults on package installation intel-ucode

V1del  in some tangially related thread wrote:

@Crashes with skylake and nvidia-libgl

https://bugs.archlinux.org/task/46064 and https://bbs.archlinux.org/viewtopic.php?id=201194

tl:dr rebuild (lib32-)glibc without -enable-lock-elision for the time being until nvidia releases a fixed driver

Note that the driver slated to fix this is in testing and there apparently was a new microcode release (not yet in the repos) both of which might help.

Last edited by V1del (2016-01-08 14:20:47)

Offline

#3 2016-01-08 17:41:21

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [Solved] General Protection faults on package installation intel-ucode

V1del wrote:
V1del  in some tangially related thread wrote:

@Crashes with skylake and nvidia-libgl

https://bugs.archlinux.org/task/46064 and https://bbs.archlinux.org/viewtopic.php?id=201194

tl:dr rebuild (lib32-)glibc without -enable-lock-elision for the time being until nvidia releases a fixed driver

Note that the driver slated to fix this is in testing and there apparently was a new microcode release (not yet in the repos) both of which might help.

Interesting find, thanks. I do have a nvidia card.

I've been having this issue since i installed Arch on this computer back in October, I guess that i can wait for the new microcode to go into the main repo.

Offline

#4 2016-01-08 18:44:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,598
Website

Re: [Solved] General Protection faults on package installation intel-ucode


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2016-01-10 18:58:56

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [Solved] General Protection faults on package installation intel-ucode

graysky wrote:

I finally had time to, still kind of confused.


As seen here, it updated

pacman -Qs intel-ucode

local/intel-ucode 20151106-1
    Microcode update files for Intel CPUs

I see that the .img file was changed at the update

ll /boot/intel-ucode.img

-rwxr-xr-x 1 root root 692736 Jan 10 19:42 /boot/intel-ucode.img*

However, still seems like it's the same intel-ucode version?

dmesg | grep microcode

[    0.316239] microcode: CPU0 sig=0x506e3, pf=0x2, revision=0x39
[    0.316249] microcode: CPU1 sig=0x506e3, pf=0x2, revision=0x39
[    0.316252] microcode: CPU2 sig=0x506e3, pf=0x2, revision=0x39
[    0.316259] microcode: CPU3 sig=0x506e3, pf=0x2, revision=0x39
[    0.316302] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba

My processor is not listed on the intel download page for the new microcode update either, so i guess that it just skips it?

Offline

#6 2016-01-11 14:18:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,750

Re: [Solved] General Protection faults on package installation intel-ucode

Looks like it. As said rebuilding glibc without lock elision definitely helped here, and the current nvidia driver in testing is supposed to fix this although I've heard it can lead to complications with QT5 applications (EDIT: should be fixed), so I haven't tested it yet

Last edited by V1del (2016-01-11 14:56:09)

Offline

#7 2016-01-11 17:11:06

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [Solved] General Protection faults on package installation intel-ucode

V1del wrote:

Looks like it. As said rebuilding glibc without lock elision definitely helped here, and the current nvidia driver in testing is supposed to fix this although I've heard it can lead to complications with QT5 applications (EDIT: should be fixed), so I haven't tested it yet

Didn't want to enable [testing], so i checked if any of nvidias dependencies had updated which wasn't the case.

Downloaded these nvidia packages from testing, restarted, and voila! Everything seems to work smile

Thanks alot for the help everyone, marking this as solved.

nvidia-361.16-1-x86_64.pkg.tar.xz
nvidia-libgl-361.16-1-x86_64.pkg.tar.xz
nvidia-utils-361.16-1-x86_64.pkg.tar.xz
opencl-nvidia-361.16-1-x86_64.pkg.tar.xz
lib32-nvidia-libgl-361.16-1-x86_64.pkg.tar.xz
lib32-nvidia-utils-361.16-1-x86_64.pkg.tar.xz
lib32-opencl-nvidia-361.16-1-x86_64.pkg.tar.xz

Offline

Board footer

Powered by FluxBB