<?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>10061</bug_id>
          
          <creation_ts>2016-08-02 02:04:29 +0000</creation_ts>
          <short_desc>Ctrl+C during BB_HASHCHECK_FUNCTION execution does not interrupt processing nicely</short_desc>
          <delta_ts>2026-04-23 15:22:25 +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>2.0</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>minor</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>Aryaman.Gupta</cc>
    
    <cc>JPEWhacker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>tgamblin</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>64773</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-08-02 02:04:29 +0000</bug_when>
    <thetext>If I hit Ctrl+C during the &quot;Checking sstate mirror object availability&quot; stage in OE (which is when BB_HASHCHECK_FUNCTION is being called, i.e. setscene_depvalid() in sstate.bbclass) then I see the following:

------------ snip ------------
Keyboard Interrupt, closing down...

WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
ERROR: Gave up; Too many tries: timeout while attempting to communicate with bitbake server
NOTE: Executing SetScene Tasks
NOTE: Sending SIGTERM to remaining 1 tasks
NOTE: Tasks Summary: Attempted 109 tasks of which 109 didn&apos;t need to be rerun and all succeeded.
NOTE: Writing buildhistory
WARNING: /home/paul/poky/poky/bitbake/lib/bb/event.py:124: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=&apos;/home/paul/poky/poky/build/tmp/log/cooker/genericx86-64/20160802015804.log&apos; mode=&apos;a&apos; encoding=&apos;UTF-8&apos;&gt;
  logger.handlers = [console]
------------ snip ------------

This can take quite a bit of time - I&apos;m guessing it doesn&apos;t quit until setscene_depvalid() actually returns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64871</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-08-04 14:51:54 +0000</bug_when>
    <thetext>I can see what happens here, the server is running subprocess calls. The Ctrl+C is processed by the UI and queues a &quot;stop&quot; command for the server which it only processes when it returns from the function. If you propagate the Ctrl+C to the server, things get very messy as you never get clean exit paths and the shutdown isn&apos;t graceful.

I&apos;m not sure what we can do to easily make for a better user experience here without reintroducing all the bugs which caused us to define a shutdown process in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94914</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-02-09 15:57:30 +0000</bug_when>
    <thetext>Some progress made but likely still a problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96104</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:06 +0000</bug_when>
    <thetext>Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96431</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 15:43:19 +0000</bug_when>
    <thetext>Moved to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97084</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:29:14 +0000</bug_when>
    <thetext>Bulk move to 5.0 M1. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97656</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 23:28:25 +0000</bug_when>
    <thetext>Bulk move of 52 5.0-M1 bugs to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97994</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:46 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98301</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 19:53:23 +0000</bug_when>
    <thetext>Bulk move of bugs from 5.0-M3 to 5.99.
The bugs in this list are all unassigned and are ones that I consider to be nice to do some time but not essential track from milestone to milestone in 5.0 or 5.1. We agreed on this bug handling approach in the YP bug review on Feb 22, 2024.

If you disagree, please move back to a 5.[012...]-M* milestone.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>