Public bug reported:

On Ubuntu 26.04 LTS, applications using WebKitGTK 4.1 freeze/crash on my
laptop because libjavascriptcoregtk-4.1 contains an AVX instruction, but my CPU
(Intel Jasper Lake, Pentium Silver) does not support AVX.

Package: libjavascriptcoregtk-4.1-0 2.52.6-0ubuntu0.26.04.2
CPU: Intel Jasper Lake, no avx/avx2/bmi2/fma in /proc/cpuinfo

Observed:
The kernel log shows, each time the application freezes:
  traps: WebCore: Worker[...] trap invalid opcode ip:... in
  libjavascriptcoregtk-4.1.so.0.10.14[24fdfc,...]

Disassembly at the faulting offset (objdump -d):
  24fdfc: c5 f8 29 84 24 b0 00 00 00   vmovaps %xmm0,0xb0(%rsp)
This is a VEX-encoded (AVX) instruction in the prologue of a regular function
(saving xmm registers), so the library seems to be built with an AVX baseline
or a wrong variant was shipped. The fault is at the same offset every time.

Reproduce:
Install the Lumo Desktop app (Tauri/WebKitGTK, .deb from 
proton.me/lumo/download)
and start it. It freezes within seconds. Workarounds such as
WEBKIT_DISABLE_COMPOSITING_MODE=1, WEBKIT_DISABLE_DMABUF_RENDERER=1 and
GDK_BACKEND=x11 do not help.

Expected: WebKitGTK runs on all x86-64 CPUs supported by Ubuntu amd64
(baseline x86-64, without AVX).

** Affects: webkit2gtk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178476

Title:
  libjavascriptcoregtk-4.1 2.52.6 crashes with SIGILL (AVX instruction)
  on CPUs without AVX

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webkit2gtk/+bug/2178476/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to