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

Aperta
#594 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
linux

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
30
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/distribution

Tutte le issue di CachyOS/distribution

Issue simili

Altre issue su Operating Systems

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.