<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14007</bug_id>
          
          <creation_ts>2020-08-13 11:01:03 +0000</creation_ts>
          <short_desc>When qemu hangs, try to create a snapshot or core file.</short_desc>
          <delta_ts>2025-02-14 16:48:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>3.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>paulg</cc>
    
    <cc>sakib.sajal</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87940</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-08-13 11:01:03 +0000</bug_when>
    <thetext>Some Yocto Autobuilder intermittent failures involve cases where Qemu appears to be hung. we should use Qemu&apos;s snapshot feature to store the state of the VM so that the problem can be debugged at a later time. 

If snapshotting does not work often enough we could also consider forcing Qemu to dump a core file using gcore ( https://sourceware.org/gdb/onlinedocs/gdb/Core-File-Generation.html ) or perhaps by sending it a SIGINT since we want the process to terminate.

Both of these approaches would should archive the data produced and put a policy in place for when additional archives would cause the local filesystem to become &apos;too full&apos;. Perhaps deleting the oldest archive would make sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92863</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-03-24 16:15:14 +0000</bug_when>
    <thetext>Saul added code to talk with the qemu system using the QMP protocol in:
meta/lib/oeqa/utils/qemurunner.py

I think that if that fails, then we try to create a snapshot and if that fails, dump a core file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93534</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-06-16 15:27:35 +0000</bug_when>
    <thetext>Some of this is done but we need to document it and ensure that the SWAT team knows how to make use of the feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101016</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:46:37 +0000</bug_when>
    <thetext>bulk change to add Saul&apos;s non-WR address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101071</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:48:24 +0000</bug_when>
    <thetext>Bulk change: Remove Saul&apos;s old WR address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>