<?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>2395</bug_id>
          
          <creation_ts>2012-05-02 20:54:23 +0000</creation_ts>
          <short_desc>Bitbake spins</short_desc>
          <delta_ts>2012-05-11 10:55:07 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rich Pixley">rich.pixley</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21023</commentid>
    <comment_count>0</comment_count>
    <who name="Rich Pixley">rich.pixley</who>
    <bug_when>2012-05-02 20:54:23 +0000</bug_when>
    <thetext>Sometimes, but consistently repeatable when it occurs, attempting to build core-image-minimal appears to hang.  &quot;Top&quot; shows a single processor pinned at 98 - 99% utilization running &quot;python&quot;.

The spin appears to occur on &quot;Executing SetScene tasks&quot;.  When it works, this usually runs and completes in seconds for me.  When it hangs, it hangs for at least an hour, (I haven&apos;t let it run any longer than that.)

I&apos;m not sure where else to look or how to go about debugging this.

Here&apos;s the relevant tail of a build log...

NOTE: Executing SetScene Tasks
DEBUG: Stamp for underlying task 12(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/opkg/opkg_svn.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 16(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 20(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.0.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 24(/home/rich/projects/webos/openembedded-core/meta/recipes-core/eglibc/ldconfig-native_2.12.1.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 32(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/genext2fs/genext2fs_1.4.1.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 36(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 40(virtual:native:/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/qemu/qemu_0.15.1.bb, do_populate_sysroot) is current, so skipping setscene variant
DEBUG: Stamp for underlying task 44(/home/rich/projects/webos/openembedded-core/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb, do_populate_sysroot) is current, so skipping setscene variant</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21070</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-03 19:43:01 +0000</bug_when>
    <thetext>Can you send more infomration about which OS you are using, also have you tried to use strace?  Have you added any layers or recipes?  What target/image are you building?

If you try strace, please use the following: 

strace -s 8192 -f -o bb.strace bitbake ...

Then ^C it when it hangs and attach the bb.strace file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21071</commentid>
    <comment_count>2</comment_count>
    <who name="Rich Pixley">rich.pixley</who>
    <bug_when>2012-05-03 20:25:21 +0000</bug_when>
    <thetext>Ubuntu-12.04 amd64 server.

I have a git repository that includes a configure script, makefiles, and git submodules pointing to the git repositories for bitbake, openembedded-core, and meta-webos.

My first build in a working directory works.  My second one hangs with the spinning problem.

Image seems to be irrelevant, but I&apos;ve seen the problem on all targets I&apos;ve tried, including core-image-minimal, on each of qemux86, qemuarm, qemumips, and qemuppc.  (I haven&apos;t tried any other targets.)

I&apos;m looking at strace now, but I haven&apos;t yet identified any loop.

How much strace would you like?  :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21078</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-03 22:47:20 +0000</bug_when>
    <thetext>Maybe I will try to reproduce it here knowing which layers you are using, so there was no obvious blocker in the strace file, oh well it was a thought.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21079</commentid>
    <comment_count>4</comment_count>
    <who name="Rich Pixley">rich.pixley</who>
    <bug_when>2012-05-03 22:54:48 +0000</bug_when>
    <thetext>No obvious blocker.  It&apos;s spinning, not blocked.  And the presumed loop is over 1e6 strace lines long.

What I do see are tons of access and stat&apos;s and periodic mkdir&apos;s on stamp files and stamp file directories.  Thousands of quilt-native checks, for instance.  And all of the do_fetch_setscene checks are &quot;no such file or directory&quot;.  I dunno if those are clues, but that&apos;s what I see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21088</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-04 00:44:40 +0000</bug_when>
    <thetext>Is our git repo and the webos layer that you have available?  I could not find a quick pointer to it. You could add it to: http://www.openembedded.org/wiki/LayerIndex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21089</commentid>
    <comment_count>6</comment_count>
    <who name="Rich Pixley">rich.pixley</who>
    <bug_when>2012-05-04 00:46:49 +0000</bug_when>
    <thetext>Sadly, no, not yet.  The goal is for it to become available, but that may take some time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21305</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-05-11 10:55:07 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d48d8aa1e7add733de277f050c71b84a84ce9c6b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>