<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39996</bug_id>
          
          <creation_ts>2021-04-26 19:25:24 +0300</creation_ts>
          <short_desc>qemu-guest-agent is crashed on shutdown command (known issue for 4.0-5.1)</short_desc>
          <delta_ts>2021-05-31 15:27:36 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>qemu-guest-agent</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Zhilin">mizhka</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>aen</cc>
    
    <cc>lav</cc>
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>198155</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Zhilin">mizhka</who>
    <bug_when>2021-04-26 19:25:24 +0300</bug_when>
    <thetext>При использование Альта под гипервизором QEMU-KVM (Proxmox), часто встречается (в 50-70% случаев), что shutdown подвисает при остановке системы через guest агента. В логах видно что агент крашится на assert-е (qga/main.c:534), а ассерт пофикшен в следующем коммите:

https://github.com/qemu/qemu/commit/844bd70b5652f30bbace89499f513e3fbbb6457a

Получается что начиная с версии 4.0 и до версии 5.1 использование qemu-guest-agent приводит к проблемам с shutdown-ом. Наткнулся на это на AltLinux 9.1, ибо в репозитории сейчас 4.2.1.

Просьба добавить патч (см. коммит выше) в сборку. 

apt-cache show qemu-guest-agent

Package: qemu-guest-agent
Section: Emulators
Installed Size: 465053
Maintainer: Alexey Shabalin (ALT Team) &lt;shaba@altlinux.org&gt;
Version: 4.2.1-alt4:p9+263856.100.2.1@1609000785
Pre-Depends: rpmlib(SetVersions), rpmlib(PayloadIsLzma)
Depends: /bin/sh, /etc/rc.d/init.d, /etc/rc.d/init.d(SourceIfNotEmpty), /etc/rc.d/init.d(failure), /etc/rc.d/init.d(msg_usage), /etc/rc.d/init.d(start_daemon), /etc/rc.d/init.d(status), /etc/rc.d/init.d(stop_daemon), /etc/rc.d/init.d/functions, /lib/udev/rules.d, /lib64/ld-linux-x86-64.so.2, coreutils, libc.so.6(GLIBC_2.10)(64bit), libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.9)(64bit), libglib-2.0.so.0()(64bit) (&gt;= set:og1iApFEKyGOlhYw2CO1IzPz6lIGxtXFFPC7EAoen1tF309v27m00gXLNt5cxinjgWHiuJ2Boe2L7x1l9EEwTZ8ZExpGS4EVSvurBtome2PJZsFTHYNBPrWZo6rom2cy2Rh5Ep4RB00bR8vHX9QY84OJFTZjqLZFesMFc9Mmn4Zd30VdfAIGkme136w5Bbm3PdaZdG6pGiNwyAPS8G7UU45M4ZKLBqILBN4AB4UZIxkxecEo6fn1ldK8ZjfWfaMELN3FphyTZatDO4pnoYPNoMyqxwr2JPgOsIZb5wz8X596kGzWr1LCxPO8SedrZlgOWx07vXhDXwqS4KXljm0HCONWn77), libgmodule-2.0.so.0()(64bit) (&gt;= set:gdPHZ3amoXhu0), libm.so.6(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.12)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.3.2)(64bit), libpthread.so.0(GLIBC_2.3.3)(64bit), libudev.so.1()(64bit) (&gt;= set:khT8l0GM7onyNGeKZb), libudev.so.1(LIBUDEV_183)(64bit), rtld(GNU_HASH), qemu-aux (= 4.2.1-alt4:p9+263856.100.2.1)
Provides: qemu-guest-agent (= 4.2.1-alt4:p9+263856.100.2.1)
Architecture: x86_64
Size: 162355
MD5Sum: 565d297cd42775899dc95763dc6d53da
Filename: qemu-guest-agent-4.2.1-alt4.x86_64.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198803</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-05-31 15:27:36 +0300</bug_when>
    <thetext>qemu-5.2.0-alt6 -&gt; p9:

 Tue May 04 2021 Alexey Shabalin &lt;shaba@altlinux&gt; 5.2.0-alt6
 - backport to p9 (ALT #39996)
 - Fixed execute fsfreeze hook (ALT #37000)
 Mon Apr 12 2021 Ivan A. Melnikov &lt;iv@altlinux&gt; 5.2.0-alt5
 - Move qemu-user-static text segment to 0x60000000 (ALT #39178)
 - Drop qemu-aux dependency from qemu-user-static (ALT #39815)
 - Drop qemu-mipsn32*.conf from binfmt config packages (ALT #39619)
 Mon Feb 01 2021 Andrew A. Vasilyev &lt;andy@altlinux&gt; 5.2.0-alt4
 - Add the Kunpeng-920 CPU model.
 Sun Jan 17 2021 Alexey Shabalin &lt;shaba@altlinux&gt; 5.2.0-alt3
 - Switch bios-microvm.bin from qboot to seabios
 - Package /usr/share/qemu/firmware dir
 - Define firmware path as --firmwarepath for configure
 Thu Jan 14 2021 Ivan A. Melnikov &lt;iv@altlinux&gt; 5.2.0-alt2
 - fix elf loading in qemu-user (altbug #39141)
 - restore special CPU selection for ARM qemu-user-static
 Tue Dec 15 2020 Alexey Shabalin &lt;shaba@altlinux&gt; 5.2.0-alt1
 - 5.2.0 (Fixes: CVE-2020-14364)
 - Drop ivshmem-tools package
 - Drop lm32 and unicore32 arches
 - Add new packages:
   + qemu-audio-spice
   + qemu-char-spice
   + qemu-display-virtio-gpu-pci
   + qemu-display-virtio-vga
   + qemu-display-virtio-gpu
   + qemu-ui-spice-core
   + qemu-ui-opengl
   + qemu-ui-egl-headless
 Thu Aug 13 2020 Alexey Shabalin &lt;shaba@altlinux&gt; 5.1.0-alt1
 - 5.1.0 (Fixes: CVE-2020-13253, CVE-2020-13754, CVE-2020-10761, CVE-2020-13800, CVE-2020-10717)
 Thu Apr 30 2020 Alexey Shabalin &lt;shaba@altlinux&gt; 5.0.0-alt1
 - 5.0.0 (Fixes: VE-2018-12617, CVE-2020-1711)
 - drop bluez support
 - build emulator for RX</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>