<?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>2039</bug_id>
          
          <creation_ts>2012-02-28 18:21:56 +0000</creation_ts>
          <short_desc>Sometimes unable to kill bitbake with Ctrl-C</short_desc>
          <delta_ts>2012-03-13 11:54:31 +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>Patches our for review</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>18785</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-02-28 18:21:56 +0000</bug_when>
    <thetext>I&apos;m able to reproduce this problem on hm1 using today&apos;s master branch of Poky.

1. Bitbake something non-sensical (e.g, a typo - &apos;bitbake usod&apos;)

2. Hit Ctrl-C repeatedly during the parsing stage.

The result I see is the process hangs, and I cannot get back to my shell.

If from another terminal I run killall bitbake, it gives me a bash prompt again on my terminal, but ps still shows a ton of bitbake usod processes running, which I most efficiently kill with killall python.

This bug was encountered during the Yocto Developer Day intro hands-on labs, which were using Fedora 16 host OSes with all the software updates applied. hm1 runs openSUSE 11.4 with Python v 2.7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18957</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-11 14:39:02 +0000</bug_when>
    <thetext>There appear to be two issues here, one is the shutdown() parsing function in cooker.py being called twice which will result in a hard lockup. The second is that the codeparser cache manipulation can take a long time on a many core system giving the illusion of a hang.

I&apos;ve sent patches for both issues to bitbake-devel along with a third patch which lowers the size of the cache file significantly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18986</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-13 11:54:31 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7bf0a790b23833a1b426d2349885459112fb5d7c and the previous commit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>