FS#75621 - [gnutls] casuses gnome-shell core dump

Attached to Project: Arch Linux
Opened by Muflone (muflone) - Tuesday, 16 August 2022, 15:25 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 18 August 2022, 05:46 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



After updating gnutls 3.7.7-1 to 3.7.7-2 GNOME shell core dumps since the login from GDM.

Additional info:
* gnutls 3.7.7-2
* gnome-shell 1:42.4-1
* linux 5.19.1.arch2-1
* nvidia 515.65.01-4

Steps to reproduce:

system fully updated, with testing repo enabled.
after the login from GDM with GNOME on X11 session the environment immediately crashes returning back to the GDM.

Disabling every GNOME extension doesn't fix the issue.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 18 August 2022, 05:46 GMT
Reason for closing:  Fixed
Comment by Muflone (muflone) - Tuesday, 16 August 2022, 15:26 GMT
Attaching journalctl log
Comment by Muflone (muflone) - Tuesday, 16 August 2022, 15:35 GMT
I haven't mentioned that downgrading gnutls to 3.7.7-1 avoids the core dump working fine
Comment by Andreas Radke (AndyRTR) - Tuesday, 16 August 2022, 16:49 GMT
Can you please test with https://aur.archlinux.org/packages/gnutls-git + https://gitlab.com/gnutls/gnutls/-/merge_requests/1631 -
if that's still crashing please report this back to the gnutls devs the MR1631.
Comment by KriK (krik) - Wednesday, 17 August 2022, 14:22 GMT
Same problem
Comment by Muflone (muflone) - Wednesday, 17 August 2022, 14:38 GMT
installing gnutls-git with no patches (apart adding the same gnutls package flags else the package FTBFS) everything works fine.

After applying the patch from the gnutls 3.7.7-2 package the issue is back again.

Applying the fix from MR1631 the issue is not reproducible anymore.

Please note the patch from the MR differs from the patch applied in the gnutls 3.7.7-2 package:

- return ((_gnutls_x86_cpuid_s[1] & bit_AVX));
-+ return (_gnutls_x86_cpuid_s[1] & bit_AVX);
++ return (_gnutls_x86_cpuid_s[1] & (bit_AVX|bit_MOVBE)) == (bit_AVX|bit_MOVBE);
Comment by Earnestly (Earnest) - Wednesday, 17 August 2022, 15:35 GMT
With Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz

$ gnutls-cli google.com
zsh: illegal hardware instruction (core dumped) gnutls-cli google.com

$ coredumpctl gdb
#0 _aesni_ctr32_ghash_6x () at elf/aesni-gcm-x86_64.s:106
106 movbeq 88(%r14),%r13

Cannot build gnutls-git with gnutls 3.7.7-2:
./bootstrap: line 752: 140678 Illegal instruction (core dumped) wget --mirror --level=1 -nd -nv -A.po -P 'po/.reference' https://translationproject.org/latest/gnutls/

After downgrade to 3.7.7-1 then rebuild gnutls-git with MR 1631, everything appears to work.
Comment by Andreas Radke (AndyRTR) - Wednesday, 17 August 2022, 15:45 GMT
Please try 3.7.7-3 with updated upstream MR patch.
Comment by Earnestly (Earnest) - Wednesday, 17 August 2022, 20:43 GMT
3.7.7-3 seems fine for me
Comment by Muflone (muflone) - Wednesday, 17 August 2022, 23:36 GMT
confirmed also for me: gnutls 3.7.7-3 works fine