Disconnected serial console runs out of buffer

Bug #301897 reported by Bryan McLellan
2
Affects Status Importance Assigned to Milestone
kvm (Debian)
Fix Released
Unknown
kvm (Ubuntu)
Fix Released
Medium
Unassigned
libvirt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When running a guest with both a graphics device and a console device, after a certain amount of text is output to the console, the guest can lock up printing text to the serial console until a connection is made to it using 'virsh console domain'. Upon connecting, the machine immediately unlocks. In this case, the guest has a postgres server that regularly reloads it's configuration and will eventually lock up on the reload, displaying on the console a message similar to:

BUG: soft lockup - CPU#0 stuck for 94393s! [postgresql-8.3:4975]

In this situation I used a while loop running puppet (which is what causes the postgres reload) to reproduce the problem after I suspected this was the case.

----- Host:
Ubuntu 8.10 / intrepid / x86_64

Linux virt11 2.6.27-7-generic #1 SMP Thu Oct 30 04:12:22 UTC 2008 x86_64 GNU/Linux

ii kvm 1:72+dfsg-1ubuntu6 Full virtualization on i386 and amd64 hardware
ii libvirt-bin 0.4.4-3ubuntu3 the programs for the libvirt library

----- Guest:
Ubuntu 8.10 / intrepid / x86_64

Linux stage-util01 2.6.27-7-server #1 SMP Tue Nov 4 20:16:57 UTC 2008 x86_64 GNU/Linux

    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' listen='127.0.0.1'/>

Revision history for this message
Bryan McLellan (btm) wrote :

https://www.redhat.com/archives/libvir-list/2008-November/msg00392.html
https://www.redhat.com/archives/libvir-list/2008-November/msg00405.html

Confirmed as a qemu/kvm bug on libvirt list.

Marking importance high because this bug brings down an entire system.

Changed in libvirt:
status: New → Invalid
Changed in kvm:
status: New → Confirmed
Revision history for this message
Bryan McLellan (btm) wrote :

Attached debian patch built into a PPA [1] installs, runs and survives 36 hours of 'while true; do echo foo > /dev/console ; done' without anything attached to the serial console fine. Running 'virsh domain console' on the host correctly shows the output on the console.

# cat /proc/cmdline
root=UUID=f448c0f8-75ca-425d-942e-1b483dc9e55c ro console=ttyS0,38400n8 quiet splash

[1] https://launchpad.net/~btm/+archive

Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the attachments in this bug report, I noticed that "upstream patch from debian" was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. Thanks for your contribution Bryan McLellan!

Changed in kvm:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the bug report, and the reference to the patch.

This code is already upstream (QEMU svn commit r4956), and included in the kvm-84 release.

I'm marking fix-released.

:-Dustin

Changed in kvm:
status: Triaged → Fix Released
Changed in kvm (Debian):
status: Unknown → Fix Released
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.