[Bug]: QEMU SIGSEGV in SPICE Worker with corrupted malloc unsorted-bin pointer

Open
#594 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
linux

Research direction

Start with the retained QEMU core and the offline GDB evidence for the SPICE Worker thread; the report names no source files or tests. Check whether the existing Windows 11 libvirt/KVM setup and virt-viewer SPICE connection can produce a reliable reproducer, then compare with the upstream QEMU result. Done means producing reproducible evidence or enough triage information to forward the crash to SPICE upstream.

Written by the indexing model from the issue text.

Description

bug
Kernel

7.2.8-1-cachyos

Desktop Environment / Window Manager

KDE Plasma

CPU

Intel Core i7-11800H

GPU / Driver

Intel UHD Graphics (i915) + NVIDIA RTX 3070 Mobile (nvidia); guest: two QXL devices

Description

AI disclosure: This report was drafted and the saved core dump was analyzed with assistance from OpenAI Codex (AI). The crash occurred during real use. Evidence below comes from kernel/libvirt logs and offline GDB inspection; the root cause has not been established.

A Windows 11 KVM guest managed by libvirt terminated when host QEMU received SIGSEGV in its SPICE Worker thread on 2026-10-01 at 12:11:19 CEST. Ctrl+C/Ctrl+V was used entirely inside Windows near the crash. This is an observed circumstance, not a proven clipboard trigger.

Versions: qemu-system-x86 11.1.1-4; spice 0.16.0-4.1; glib2 2.88.3-1.1; glibc 2.44+r50+g1848099f063e-2; libvirt 12.7.0.

Guest: Q35/KVM, host CPU, 4 vCPUs, 8 GiB RAM, two QXL video devices, SPICE display/audio and vdagent channel. Viewer launch configuration: virt-viewer --connect qemu:///system --full-screen --reconnect with GDK_BACKEND=x11; host desktop: KDE Wayland.

Steps to Reproduce

No reliable minimal reproducer yet.

  1. Run the existing Windows 11 guest through libvirt/KVM and connect using virt-viewer/SPICE.
  2. Work inside Windows; Ctrl+C/Ctrl+V within the guest was used near this crash.
  3. QEMU terminated with SIGSEGV. Repeating copy/paste has not been established to reproduce it.

Not reproduced with an upstream QEMU build. Reporting here first because these are CachyOS packages.

Expected Behavior

The guest continues running while using applications and copy/paste inside Windows.

Actual Behavior

The entire host QEMU process terminated, abruptly stopping the guest. libvirt log: 2026-10-01 10:11:20.868+0000: shutting down, reason=crashed. Host continued running.

Logs / Error Messages

Relevant kernel and offline GDB evidence is included in Additional Context below. Full core retained locally; no public dump upload.

Additional Context

Kernel: SPICE Worker[6917]: segfault at 7f5268000048 ip 00007f558dabc561 ... in libc.so.6. Core: QEMU PID 6802, SPICE Worker TID 6917, SIGSEGV/SEGV_MAPERR.

Offline GDB with matching CachyOS libc symbols:

#0 _int_malloc(av=0x7f5368000030, bytes=65544) at malloc.c:3689
#1 __libc_malloc2 at malloc.c:3081
#2 g_malloc (libglib-2.0.so.0 + 0x7a993)
#3 libspice-server.so.1 + 0x1b284
#4 libspice-server.so.1 + 0x1be3d
#5 libspice-server.so.1 + 0x1d091
#6 libspice-server.so.1 + 0x29fd6
#7 libspice-server.so.1 + 0x48a97
#8 libspice-server.so.1 + 0x491e8
#9 libspice-server.so.1 + 0x30568

Matching malloc source checks bck->fd != victim in the unsorted-bin consistency check. GDB values:

victim = 0x7f53680690d0
size = 4368
victim->fd = 0x7f5368000038
victim->bk = 0x7f5268000038
av->bins[0] = av->bins[1] = victim

The backward link differs from the expected bin sentinel by XOR 0x100000000 (one bit). Dereferencing at +0x10 matches the fault address. This establishes invalid allocator metadata at the crash, but does not identify its origin or prove a SPICE/glibc defect, faulty RAM, or clipboard causation. No OOM or host kernel crash was found in inspected logs.

Build IDs: libc 78e50f499365f967d6249585154c0ade819bfba8; SPICE d6a95eafc801d210a421796ca0ec92ea1369066e. Matching SPICE symbols were unavailable from Arch/CachyOS debuginfod (404). Saved core retained locally for private investigation if needed.

No package changes or deliberate crash reproduction were performed during analysis. Please advise on further triage and whether to forward this to SPICE upstream.

Dominant language
No language data
Stars
29
Forks
3
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CachyOS/distribution

All issues in CachyOS/distribution

Similar issues

More Operating Systems issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.