<?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>8447</bug_id>
          
          <creation_ts>2015-10-06 11:01:14 +0000</creation_ts>
          <short_desc>Host contamination in glibc-locales</short_desc>
          <delta_ts>2017-05-11 15:16:23 +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>core</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11299</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>juro.bystricky</cc>
    
    <cc>li.zhou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>seebs</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>54986</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-06 11:01:14 +0000</bug_when>
    <thetext>WARNING: QA Issue: glibc-locale: /glibc-binary-localedata-da-dk.iso-8859-1/usr/lib/locale/da_DK.ISO-8859-1/LC_PAPER is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58888</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-11 14:27:31 +0000</bug_when>
    <thetext>This was likely caused by a bug in pseudo, which is now fixed in oe-core 4bd658f7dae76ae8790fd1dfdd89fa58a456a0a4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62941</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-13 21:53:38 +0000</bug_when>
    <thetext>Replicated with current master (poky a1a0ce1a0064e29159555011ebd667192132e0ce) with a clean tmp and no sstate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62942</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-13 21:57:06 +0000</bug_when>
    <thetext>Considering this is random and doesn&apos;t always hit, I&apos;d still consider pseudo to be a suspect here.  Peter, what&apos;s a good way to start investigating this from the pseudo side?  Inspect the log or sqlite database for clues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62957</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-14 13:37:44 +0000</bug_when>
    <thetext>More data:

WARNING: glibc-locale-2.24-r0 do_package_qa: QA Issue: glibc-locale: /glibc-binary-localedata-fr-lu/usr/lib/locale/fr_LU/LC_MEASUREMENT is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

$ dpkg -c glibc-binary-localedata-fr-lu_*
drwxrwxrwx root/root         0 2016-06-14 14:26 ./
drwxr-xr-x root/root         0 2016-06-14 14:23 ./usr/
drwxr-xr-x root/root         0 2016-06-14 14:23 ./usr/lib/
drwxr-xr-x root/root         0 2016-06-14 14:23 ./usr/lib/locale/
drwxr-xr-x root/root         0 2016-06-14 14:23 ./usr/lib/locale/fr_LU/
drwxr-xr-x root/root         0 2016-06-14 14:23 ./usr/lib/locale/fr_LU/LC_MESSAGES/
-rw-r--r-- root/root        60 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_MESSAGES/SYS_LC_MESSAGES
-rw-r--r-- root/root   1243766 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_COLLATE
-rw-r--r-- root/root      2354 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_TIME
-rw-r--r-- root/root       156 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_ADDRESS
-rw-r--r-- root/root        62 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_NAME
-rw-r--r-- root/root        50 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_TELEPHONE
-rw-r--r-- root/root       348 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_IDENTIFICATION
-rw-r--r-- root/root        34 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_PAPER
-rw-r--r-- root/root        54 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_NUMERIC
-rw-r--r-- 1000/pulse       23 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_MEASUREMENT
-rw-r--r-- root/root    317872 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_CTYPE
-rw-r--r-- root/root       294 2016-06-14 14:22 ./usr/lib/locale/fr_LU/LC_MONETARY</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63043</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-16 15:16:12 +0000</bug_when>
    <thetext>Peter, the file that gets the wrong ownership appears to change randomly so I&apos;m fairly convinced that this is due to pseudo losing track of files somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65185</commentid>
    <comment_count>6</comment_count>
    <who name="li.zhou">li.zhou</who>
    <bug_when>2016-08-15 09:51:32 +0000</bug_when>
    <thetext>I met such issue occasionally too, and hard to reproduce. I notice there is pseudo upgrade recently. Does it work on this issue? Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65195</commentid>
    <comment_count>7</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2016-08-15 16:00:59 +0000</bug_when>
    <thetext>This could be related to the hardlinking behavior previously discussed. Are any of these files hard links to files that aren&apos;t tracked in pseudo?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65215</commentid>
    <comment_count>8</comment_count>
    <who name="li.zhou">li.zhou</who>
    <bug_when>2016-08-16 02:49:56 +0000</bug_when>
    <thetext>@Seebs:
    Thanks for your answer. Is there any link to the discussion you mentioned? Per my understanding to your answer, those files shouldn&apos;t be hard links. The files that have been recorded are listed as below:
/glibc-binary-localedata-es-es/usr/lib64/locale/es_ES/LC_MEASUREMENT
/glibc-binary-localedata-pap-aw/usr/lib/locale/pap_AW/LC_TIME
/glibc-binary-localedata-pa-pk/usr/lib64/locale/pa_PK/LC_MESSAGES/SYS_LC_MESSAGES
/glibc-binary-localedata-ar-kw/usr/lib64/locale/ar_KW/LC_CTYPE
They are quite similar with this original issue &lt;/glibc-binary-localedata-da-dk.iso-8859-1/usr/lib/locale/da_DK.ISO-8859-1/LC_PAPER&gt;. 

I think there are many similar locale files in those locale packages. And we just occasionally get the wrong uid with a very low frequency (each time with a different file).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68478</commentid>
    <comment_count>9</comment_count>
    <who name="li.zhou">li.zhou</who>
    <bug_when>2016-11-22 02:33:08 +0000</bug_when>
    <thetext>After we integrate http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta?id=577ff4e3dd4efe3b129a10eabedf620cfb7a2fa8 , the frequency of this issue has certainly decreased from 5-10 times/ month to &lt; 1 time / month. Since the commit was just in our code from mid September, we only have done limit observation.  We&apos;ll continue to watch for additional errors in the next month.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69218</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2016-12-19 15:51:12 +0000</bug_when>
    <thetext>And after a month of running 100s of builds/day, we still have NOT seen another failure so this defect can be closes @seebs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73197</commentid>
    <comment_count>11</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-05-11 15:16:23 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; And after a month of running 100s of builds/day, we still have NOT seen
&gt; another failure so this defect can be closes @seebs.

This was observed again, I actually filed a new bug report, unaware of this one.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11299

So I close this one as a duplicate.

*** This bug has been marked as a duplicate of bug 11299 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>