VM: crash while relogging in guest

Bug #1494005 reported by Gannet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt
New
Undecided
Unassigned
xserver-xorg-video-qxl-lts-vivid (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My guest machine has Xubuntu 14.04.3 LTS installed and uses autologin. It boots successfully but if I try to log off and then log on into another account, during loggin on some crash happens and it goes back to lightdm. In syslog I found the following:

Sep 9 23:24:56 desktop spice-vdagentd: opening vdagent virtio channel
Sep 9 23:24:56 desktop kernel: [ 2640.545517] input: spice vdagent tablet as /devices/virtual/input/input7
Sep 9 23:25:55 desktop kernel: [ 2700.313900] ------------[ cut here ]------------
Sep 9 23:25:55 desktop kernel: [ 2700.313923] WARNING: CPU: 0 PID: 1200 at /build/linux-lts-vivid-BZwsXG/linux-lts-vivid-3.19.0/include/drm/ttm/ttm_bo_driver.h:855 qxl_surface_id_alloc+0x306/0x390 [qxl]()
Sep 9 23:25:55 desktop kernel: [ 2700.313925] Modules linked in: ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c cpuid joydev rfcomm bnep bluetooth snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq kvm_intel snd_seq_device kvm snd_timer serio_raw snd qxl ttm drm_kms_helper drm soundcore i2c_piix4 8250_fintek mac_hid parport_pc ppdev lp parport btrfs xor raid6_pq psmouse sym53c8xx scsi_transport_spi floppy pata_acpi
Sep 9 23:25:55 desktop kernel: [ 2700.317404] CPU: 0 PID: 1200 Comm: Xorg Not tainted 3.19.0-26-generic #28~14.04.1-Ubuntu
Sep 9 23:25:55 desktop kernel: [ 2700.330373] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
Sep 9 23:25:55 desktop kernel: [ 2700.330381] ffffffffc02c7660 ffff88006a5afb98 ffffffff817aeed7 0000000000000000
Sep 9 23:25:55 desktop kernel: [ 2700.330401] 0000000000000000 ffff88006a5afbd8 ffffffff81074d8a ffff88006051ade0
Sep 9 23:25:55 desktop kernel: [ 2700.330417] ffff880004793400 0000000000000402 ffff880004793458 ffff88007b12e000
Sep 9 23:25:55 desktop kernel: [ 2700.330422] Call Trace:
Sep 9 23:25:55 desktop kernel: [ 2700.334321] [<ffffffff817aeed7>] dump_stack+0x45/0x57
Sep 9 23:25:55 desktop kernel: [ 2700.364142] [<ffffffff81074d8a>] warn_slowpath_common+0x8a/0xc0
Sep 9 23:25:55 desktop kernel: [ 2700.364165] [<ffffffff81074e7a>] warn_slowpath_null+0x1a/0x20
Sep 9 23:25:55 desktop kernel: [ 2700.364178] [<ffffffffc02c2026>] qxl_surface_id_alloc+0x306/0x390 [qxl]
Sep 9 23:25:55 desktop kernel: [ 2700.364184] [<ffffffffc02c0732>] qxl_bo_check_id+0x32/0x50 [qxl]
Sep 9 23:25:55 desktop kernel: [ 2700.364190] [<ffffffffc02c4afb>] qxl_release_reserve_list+0xeb/0x110 [qxl]
Sep 9 23:25:55 desktop kernel: [ 2700.364195] [<ffffffffc02c40ab>] qxl_process_single_command+0x48b/0x7f0 [qxl]
Sep 9 23:25:55 desktop kernel: [ 2700.364200] [<ffffffffc02c444f>] qxl_execbuffer_ioctl+0x3f/0x90 [qxl]
Sep 9 23:25:55 desktop kernel: [ 2700.364265] [<ffffffffc01fba4c>] drm_ioctl+0x1ec/0x660 [drm]
Sep 9 23:25:55 desktop kernel: [ 2700.368147] [<ffffffff811ac885>] ? do_mmap_pgoff+0x2f5/0x3c0
Sep 9 23:25:55 desktop kernel: [ 2700.376225] [<ffffffff811ffbf8>] do_vfs_ioctl+0x2f8/0x510
Sep 9 23:25:55 desktop kernel: [ 2700.377236] [<ffffffff81062335>] ? trace_do_page_fault+0x45/0x100
Sep 9 23:25:55 desktop kernel: [ 2700.377241] [<ffffffff811ffe91>] SyS_ioctl+0x81/0xa0
Sep 9 23:25:55 desktop kernel: [ 2700.377945] [<ffffffff817b688d>] system_call_fastpath+0x16/0x1b
Sep 9 23:25:55 desktop kernel: [ 2700.377949] ---[ end trace 162123e0358b110a ]---
Sep 9 23:26:00 desktop kernel: [ 2704.398492] ------------[ cut here ]------------

I'm not sure wich component crashes but it seems it is QXL or QEMU, or may be the issue is in libvirt (?) Anyway please look at logs in attachment.

Host: Kubuntu 15.10
Linux 4.2.0-7 x86_64
Libvirt: 1.2.16-2ubuntu9
Qemu: 2.3+dfsg-5ubuntu5

Guest:
Xubuntu/Kubuntu 14.04.3
Linux 3.19.0-28 x86_64/i386
xserver-xorg-video-qxl-lts-vivid: 0.1.1-0ubuntu6~trusty1
---
ApportVersion: 2.14.1-0ubuntu3.13
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-06-28 (438 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
Package: xserver-xorg-video-qxl-lts-vivid 0.1.1-0ubuntu6~trusty1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.19.0-28.30~14.04.1-generic 3.19.8-ckt5
Tags: trusty
Uname: Linux 3.19.0-28-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip fax floppy fuse nopasswdlogin plugdev tape video
_MarkForUpload: True

Gannet (ken20001)
summary: - qemu crash while relogging in guest
+ VM: crash while relogging in guest
no longer affects: libvirt (Ubuntu)
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote : Dependencies.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
Gannet (ken20001) wrote : ProcEnviron.txt

apport information

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

To make sure, the errors you show in the Description are seen in the guest, not the host?

What release and qemu version are you using on the host? Can you show the guest xml, if using libvirt (virsh dumpxml vmname), or the full qemu command you used?

Revision history for this message
Gannet (ken20001) wrote :

Yes, all the errors is only in the guest systems installed as VM through virt-manager: Xubuntu/Kubuntu.

My host now as noted above is:

Host: Kubuntu 15.10
Linux 4.2.0-10 x86_64
Libvirt: 1.2.16-2ubuntu9
Qemu: 2.3+dfsg-5ubuntu5

For 'virsh dumpxml vmname' output, please look at attachment.

Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :

Host: Kubuntu 15.10
Linux 4.4RC4 x86_64
Libvirt: 1.2.21-2ubuntu1
Qemu: 2.4.1+dfsg-0

Guest:
Xubuntu/Kubuntu 14.04.3
Linux 3.19.0-39 x86_64/i386
xserver-xorg-video-qxl-lts-vivid: 0.1.1-0ubuntu6~trusty1
---
Bug is still present. No changes. It is very annoying.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-qxl-lts-vivid (Ubuntu):
status: New → Confirmed
Revision history for this message
Gannet (ken20001) wrote :

Recently checked again and it seems now only kubuntu is affected. What did I've done: logged off and try to logging in but it freezed. Also I found the following errors in syslog:

Feb 10 22:36:53 desktop kernel: [ 681.186255] [drm:qxl_release_from_id_locked [qxl]] *ERROR* failed to find id in release_idr
Feb 10 22:36:53 desktop kernel: [ 681.235943] [drm:qxl_release_from_id_locked [qxl]] *ERROR* failed to find id in release_idr
Feb 10 22:36:53 desktop kernel: [ 681.263795] [drm:qxl_release_from_id_locked [qxl]] *ERROR* failed to find id in release_idr
Feb 10 22:36:53 desktop kernel: [ 681.308534] [drm:qxl_release_from_id_locked [qxl]] *ERROR* failed to find id in release_idr

Host: Kubuntu 16.04
Linux: 4.5RC3 x86_64
Libvirt: 1.2.21-2ubuntu10
Qemu: 2.5+dfsg-5ubuntu1

Guest:
Kubuntu 14.04.3
Linux: 3.19.0-49 x86_64
xserver-xorg-video-qxl-lts-vivid: 0.1.1-0ubuntu6~trusty1

Revision history for this message
Gannet (ken20001) wrote :

Any updates? The same is still in 18.04 development branch.

Revision history for this message
Gannet (ken20001) wrote :

Sorry, ignore a previous message.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.