Bug 1434278
Summary: | libvirtd crash when hotplug a serial dev with --config | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Pei Zhang <pzhang> |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Jing Qi <jinqi> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | dyuan, hhan, jsuchane, pzhang, rbalakri, xuzhang, yafu, yalzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-3.2.0-9.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 17:24:15 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pei Zhang
2017-03-21 07:29:09 UTC
I do not see a crash using libvirt-3.2.0-1.el7.x86_64. Can you please re-try with that build? Thanks. Hi, I tried with libvirt-3.2.0-1.el7.x86_64. And I found A crash will happen if there is no serial device in guest XML configuration. It can attach successfully if the running guest already has serial devices. Thanks. upstream patches: v1: https://www.redhat.com/archives/libvir-list/2017-May/msg01135.html v2: https://www.redhat.com/archives/libvir-list/2017-June/msg00040.html Upstream fix: commit ff6e94de60b081ae7e9d304e38c63346828c5dbe Refs: v3.4.0-59-gff6e94de6 Author: Erik Skultety <eskultet> AuthorDate: Mon May 29 12:58:34 2017 +0200 Commit: Erik Skultety <eskultet> CommitDate: Wed Jun 7 14:17:56 2017 +0200 qemu: Fix serial stub console allocation When adding the aliased serial stub console, the structure wasn't properly allocated (VIR_ALLOC instead of virDomainChrDefNew) which then resulted in SIGSEGV in virDomainChrSourceIsEqual during a serial device coldplug. https://bugzilla.redhat.com/show_bug.cgi?id=1434278 Signed-off-by: Erik Skultety <eskultet> Verified with libvirt-3.2.0-9.el7.x86_64 and qemu-kvm-rhev-2.9.0-7.el7.x86_64 # virsh start rhel7 error: Failed to start domain rhel7 error: XML error: need at least one serial port to use SGA # virsh attach-device rhel7 serial.xml --config Device attached successfully No crash happened. Then start the vm again. # virsh start rhel7 Domain rhel7 started Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 |