<?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>8924</bug_id>
          
          <creation_ts>2016-01-14 10:51:40 +0000</creation_ts>
          <short_desc>Race condition in OpkgIndexer.write_index()</short_desc>
          <delta_ts>2016-03-16 17:13:24 +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>deployment</component>
          <version>2.1</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>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>leonardo.sandoval.gonzalez</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>57807</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-01-14 10:51:40 +0000</bug_when>
    <thetext>There is a potential race condition in OpkgIndexer.write_index() (in package_manager.py). When e.g. &quot;all&quot; appears twice in ALL_MULTILIB_PACKAGE_ARCHS/SDK_PACKAGE_ARCHS/MULTILIB_ARCHS, then two opkg-make-index instances will be run in parallel on tmp/deploy/ipk/all/Packages. This is probably what causes https://www.mail-archive.com/yocto@yoctoproject.org/msg22808.html, and we are seeing the same error sporadically.

A simple fix would be to e.g. turn index_cmds into a set().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59886</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-03-10 23:08:04 +0000</bug_when>
    <thetext>Thanks for the solution! I have tested this with rpm and deb and those packaging methods doesn&apos;t have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59900</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-03-11 15:38:49 +0000</bug_when>
    <thetext>Sent patch to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118859.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60023</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-03-16 17:13:24 +0000</bug_when>
    <thetext>This has been solved in commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=36bf66654a557c570011db0b06f2084ee2ccf9cc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>