<?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>13394</bug_id>
          
          <creation_ts>2019-06-12 13:02:21 +0000</creation_ts>
          <short_desc>qemu-arm hang whilst generating image</short_desc>
          <delta_ts>2019-11-07 17:58:39 +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>devtools / tool chain</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mhalstead</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84155</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-12 13:02:21 +0000</bug_when>
    <thetext>User mode qemu-arm demonstrated a hang whilst building an image, the build was running for 11 hours:

https://autobuilder.yoctoproject.org/typhoon/#/builders/38/builds/696

its jammed in a core-image-lsb do_rootfs

systemd(1)─┬─Cooker(32736)─┬─PRServ(32741)───{PRServ}(32742)
           │               ├─Worker(33255)───{Worker}(33370)
           │               ├─pseudo(9143)───Worker (Fakeroo(9148)─┬─core-image-lsb-(47468)───update_font_cac(13042)───qemuwrapper(13044)───+
           │               │                                      └─{Worker (Fakeroo}(9181)


$ pstree -p 47468
core-image-lsb-(47468)───update_font_cac(13042)───qemuwrapper(13044)───qemu-arm(13046)───{qemu-arm}(13048)



042 ?        SN     0:00 /bin/sh /home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-s
13044 ?        SN     0:00 /bin/sh /home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-s
13046 ?        RNl  21115276:03 qemu-arm -r 3.2.0 -E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-p
15274 ?        I      0:00 [kworker/36:2]



rpurdie@tumbleweed-ty-1:~&gt; cat /proc/13046/cmdline 
qemu-arm-r3.2.0-ELD_LIBRARY_PATH=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/usr/lib:/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/lib-L/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs-EFC_DEBUG=1/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs/usr/libexec/fc-cache--sysroot=/home/pokybuild/yocto-worker/qemuarm-lsb/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-lsb-sdk/1.0-r0/rootfs--system-only-v</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84156</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-12 13:04:34 +0000</bug_when>
    <thetext>Worker is tumbleweed-ty-1 and the qemu-arm process is using 100% cpu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84157</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-12 13:10:47 +0000</bug_when>
    <thetext>Top shows its been running for:

13046 pokybui+  25   5 4320852  12860   7832 R 100.0 0.010  5124107h qemu-arm 

which is about 805 years.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84183</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-06-13 14:57:07 +0000</bug_when>
    <thetext>This may be a rare bug that only happens once. Richard may gather more information about the cpu hogging process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84236</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2019-06-18 21:56:28 +0000</bug_when>
    <thetext>I updated the kernel shortly after this bug was filed and the problem has not yet repeated. Tumbleweed is running recent kernels (5.1.5 last week &amp; currently 5.1.7) so we will see new bugs that may never repeat.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85491</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-11-07 15:59:32 +0000</bug_when>
    <thetext>We believe this was fixed by the kernel changes, it hasn&apos;t reappeared so closing, we can reopen if it reoccurs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>