[Bug]: QEMU SIGSEGV in SPICE Worker with corrupted malloc unsorted-bin pointer
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
- Ambito
- operating-systems
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
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.
- Run the existing Windows 11 guest through libvirt/KVM and connect using virt-viewer/SPICE.
- Work inside Windows; Ctrl+C/Ctrl+V within the guest was used near this crash.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CachyOS/distribution
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
CachyOS/distribution#645 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
CachyOS/distribution#620 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
CachyOS/distribution#603 · 2 commenti · 1 reazione ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
CachyOS/distribution#602 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CachyOS/distribution#590 ·
Tutte le issue di CachyOS/distribution
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
libracoder/kiri#934 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ohadravid/win32job-rs#22 ·
-
follow-up x86
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
carrick-sh/carrick#3015 ·
I maintainer di solito rispondono entro 1 giorno
-
accepted bug bug_feature_triaged good first issue mojo Team: Mojo Libraries
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
dividebysandwich/rust-dos#1795 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno