<?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>14403</bug_id>
          
          <creation_ts>2021-05-21 18:01:42 +0000</creation_ts>
          <short_desc>Qemu error messages not clear when command line is corrupted.</short_desc>
          <delta_ts>2026-10-29 15:22:27 +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>core</component>
          <version>3.3</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>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon Mason">jon.mason</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>90462</commentid>
    <comment_count>0</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2021-05-21 18:01:42 +0000</bug_when>
    <thetext>From https://autobuilder.yoctoproject.org/typhoon/#/builders/109/builds/2385/steps/13/logs/stdio


WARNING: core-image-full-cmdline-1.0-r0 do_testimage: Failed to communicate with qemu monitor: Unexpected empty reply from server
WARNING: core-image-full-cmdline-1.0-r0 do_testimage: qemu-system ended unexpectedly
WARNING: core-image-sato-1.0-r0 do_testimage: Failed to communicate with qemu monitor: Unexpected empty reply from server
WARNING: core-image-sato-1.0-r0 do_testimage: qemu-system ended unexpectedly
WARNING: core-image-sato-sdk-1.0-r0 do_testimage: Failed to connect qemu monitor socket: [Errno 104] Connection reset by peer File: None
WARNING: core-image-sato-sdk-1.0-r0 do_testimage: qemu-system ended unexpectedly
ERROR: core-image-full-cmdline-1.0-r0 do_testimage: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_testimage(d)
     0003:
File: &apos;/home/pokybuild/yocto-worker/qemux86-64-alt/build/meta/classes/testimage.bbclass&apos;, lineno: 136, function: do_testimage
     0132:    query-block
     0133:}
     0134:
     0135:python do_testimage() {
 *** 0136:    testimage_main(d)
     0137:}
     0138:
     0139:addtask testimage
     0140:do_testimage[nostamp] = &quot;1&quot;
File: &apos;/home/pokybuild/yocto-worker/qemux86-64-alt/build/meta/classes/testimage.bbclass&apos;, lineno: 382, function: testimage_main
     0378:    orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
     0379:    try:
     0380:        # We need to check if runqemu ends unexpectedly
     0381:        # or if the worker send us a SIGTERM
 *** 0382:        tc.target.start(params=d.getVar(&quot;TEST_QEMUPARAMS&quot;), runqemuparams=d.getVar(&quot;TEST_RUNQEMUPARAMS&quot;))
     0383:        import threading
     0384:        try:
     0385:            threading.Timer(int(d.getVar(&quot;TEST_OVERALL_TIMEOUT&quot;)), handle_test_timeout, (int(d.getVar(&quot;TEST_OVERALL_TIMEOUT&quot;)),)).start()
     0386:        except ValueError:
File: &apos;/home/pokybuild/yocto-worker/qemux86-64-alt/build/meta/lib/oeqa/core/target/qemu.py&apos;, lineno: 77, function: start
     0073:            if self.runner.server_ip:
     0074:                self.server_ip = self.runner.server_ip
     0075:        else:
     0076:            self.stop()
 *** 0077:            raise RuntimeError(&quot;FAILED to start qemu - check the task log and the boot log&quot;)
     0078:
     0079:    def stop(self):
     0080:        self.runner.stop()
Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90493</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-27 14:43:17 +0000</bug_when>
    <thetext>Richard thinks that this was due to broken test code in the build, i.e. kvm clock related.

Let&apos;s use this bug to fix a reporting issue:

Qemu error messages not clear when command line is corrupted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90494</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-27 14:44:51 +0000</bug_when>
    <thetext>This was triggered by a corrupted version of this change:

-QB_CPU_x86 = &quot;-cpu IvyBridge -machine q35&quot;
-QB_CPU_KVM_x86 = &quot;-cpu IvyBridge -machine q35&quot;
+QB_CPU_x86 = &quot;-cpu IvyBridge,-kvmclock -machine q35&quot;
+QB_CPU_KVM_x86 = &quot;-cpu IvyBridge,-kvmclock -machine q35&quot;
 
-QB_CPU_x86-64 = &quot;-cpu IvyBridge -machine q35&quot;
-QB_CPU_KVM_x86-64 = &quot;-cpu IvyBridge -machine q35&quot;
+QB_CPU_x86-64 = &quot;-cpu IvyBridge,-kvmclock -machine q35&quot;
+QB_CPU_KVM_x86-64 = &quot;-cpu IvyBridge,-kvmclock -machine q35&quot;
 
with IvyBridge-kvmclock missing the comma. We need better log output for broken commands like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105856</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-12 13:30:55 +0000</bug_when>
    <thetext>Adding better error reporting is more of an enhancement, IMO.
It&apos;s less urgent so lower importance to Medium.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>