Public bug reported:

The ghostty package (1.3.0~us1-0ubuntu1) in Ubuntu 26.04 crashes
immediately upon launch on processors lacking x86-64-v3 (AVX/AVX2)
support.

Probable Root Cause: The package maintainer omitted the baseline CPU
target configuration during the build process. As a result, the upstream
Zig compiler defaulted to host-native optimizations on Ubuntu's build
servers, illegally baking modern vector instructions into the generic
amd64 binary.

GDB Proof: A core dump inspection reveals the crash occurs at an AVX-specific 
instruction:
=> 0x636e91ef8daa:      vmovups 0xb0(%rsp),%ymm0
Also: 
$ objdump -d /usr/bin/ghostty | grep -E "vmovups|vpbroadcast|vpxor" | wc -l
37994

Suggested Fix: Update the Ubuntu package build recipe to explicitly pass
the baseline CPU flag to the compiler: zig build -Doptimize=ReleaseFast
-Dcpu=baseline

Additional info:

$ apt list ghostty
ghostty/resolute,now 1.3.0~us1-0ubuntu1 amd64 [installed]

$ readelf -n /usr/bin/ghostty

Displaying notes found in: .note.ABI-tag
  Owner                Data size        Description
  GNU                  0x00000010       NT_GNU_ABI_TAG (ABI version tag)
    OS: Linux, ABI: 3.2.0

Displaying notes found in: .note.package
  Owner                Data size        Description
  FDO                  0x00000064       FDO_PACKAGING_METADATA
    Packaging Metadata: 
{"type":"deb","os":"ubuntu","name":"ghostty","version":"1.3.0~us1-0ubuntu1","architecture":"amd64"}

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: ghostty 1.3.0~us1-0ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-28.28-generic 7.0.12
Uname: Linux 7.0.0-28-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Aug  4 19:33:12 2026
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ghostty
UpgradeStatus: Upgraded to resolute on 2026-04-18 (108 days ago)

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


** Tags: amd64 apport-bug resolute wayland-session

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

Title:
  ghostty package crashes with Illegal instruction (core dumped) on
  standard x86-64 CPUs

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


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

Reply via email to