Bug 1398153 - Segfault in qemu if clipboard sync is disabled
Summary: Segfault in qemu if clipboard sync is disabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: spice
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Christophe Fergeau
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-24 08:38 UTC by Alexander Wigen
Modified: 2016-12-11 19:27 UTC (History)
16 users (show)

Fixed In Version: spice-0.13.3-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-11 19:27:13 UTC
Type: Bug


Attachments (Terms of Use)

Description Alexander Wigen 2016-11-24 08:38:55 UTC
Description of problem:

Trying to launch a VM with clipboard sync disabled causes a segfault.


Version-Release number of selected component (if applicable):

qemu-2.7.0-7.fc25.x86_64
spice-server-0.13.2-1.fc25.x86_64
spice-gtk3-devel-0.33-2.fc25.x86_64
spice-gtk3-0.33-2.fc25.x86_64
spice-glib-0.33-2.fc25.x86_64
spice-gtk-tools-0.33-2.fc25.x86_64
spice-protocol-0.12.12-1.fc25.noarch
spice-glib-devel-0.33-2.fc25.x86_64

How reproducible:

1. Setup a VM with spice graphics
2. Edit the VM xml and add to the  <graphics> section:
      <clipboard copypaste='no'/>
3. Attempt to launch the VM.

Actual results:

kernel: qemu-system-x86[20008]: segfault at 20 ip 00007fb4e1e103fd sp 00007ffe08d922e8 error 4 in libspice-server.so.1.12.0[7fb4e1dcb000+120000]
systemd[1]: Started Process Core Dump (PID 20035/UID 0).
audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@4-20035-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
systemd-coredump[20036]: Process 20008 (qemu-system-x86) of user 0 dumped core.
                                                        
                                                        Stack trace of thread 20008:
                                                        #0  0x00007fb4e1e103fd spice_server_set_agent_copypaste (libspice-server.so.1)
                                                        #1  0x00005637e488d976 qemu_spice_init (qemu-system-x86_64)
                                                        #2  0x00005637e460415a main (qemu-system-x86_64)
                                                        #3  0x00007fb4e0080401 __libc_start_main (libc.so.6)
                                                        #4  0x00005637e460a27a _start (qemu-system-x86_64)
                                                        
                                                        Stack trace of thread 20032:
                                                        #0  0x00007fb4e0436c7d __nanosleep (libpthread.so.0)
                                                        #1  0x00007fb4e45491e8 g_usleep (libglib-2.0.so.0)
                                                        #2  0x00005637e4964a84 call_rcu_thread (qemu-system-x86_64)
                                                        #3  0x00007fb4e042d6ca start_thread (libpthread.so.0)
                                                        #4  0x00007fb4e0167f6f __clone (libc.so.6)

Comment 1 Christophe Fergeau 2016-11-24 12:23:22 UTC
This should be fixed in the upstream 0.13.3 release. This version is already built in rawhide, and I intend to push it to f25 too. In the mean time I've started a scratch build at http://koji.fedoraproject.org/koji/taskinfo?taskID=16596307 if you want to try it.

Comment 2 Alexander Wigen 2016-12-01 01:53:19 UTC
Hi Christophe,

Thanks the referenced build resolves the issue.

Cheers,
Alex

Comment 3 Fedora Update System 2016-12-07 10:04:14 UTC
spice-0.13.3-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-577a5e0a2e

Comment 4 Fedora Update System 2016-12-08 04:55:34 UTC
spice-0.13.3-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-577a5e0a2e

Comment 5 Fedora Update System 2016-12-11 19:27:13 UTC
spice-0.13.3-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.