<?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>14636</bug_id>
          
          <creation_ts>2021-11-18 15:47:20 +0000</creation_ts>
          <short_desc>Frequent pseudo aborts with tcp-wrappers, complains about hardlinks in packages-split</short_desc>
          <delta_ts>2021-11-22 15:03:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1.14</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ernst Persson">ernstp</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</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>92035</commentid>
    <comment_count>0</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2021-11-18 15:47:20 +0000</bug_when>
    <thetext>I seem to be getting semi-repeatable pseudo abort errors on tcp-wrappers right now. I&apos;m getting this on other packages sometimes also.

I&apos;m using Dunfell. It seems to happen both with Dunfell 3.1.7 and the almost 3.1.12 from today,
0839888394 build-appliance-image: Update to dunfell head revision

It&apos;s strange that it&apos;s complaining that
package/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c
and
packages-split/tcp-wrappers-src/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c

have the same inode... They should! They are hardlinks.

| DEBUG: Removing manifest: /mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/recipe-sysroot-native/usr/
| NOTE: Installed into sysroot: [&apos;dwarfsrcfiles-native&apos;, &apos;rpm-native&apos;, &apos;dbus-native&apos;, &apos;openssl-native&apos;, &apos;file-native&apos;, &apos;python3-native&apos;, &apos;popt-native&apos;, &apos;libarchive-native&apos;, &apos;db-native&apos;, &apos;elfutils-native&apos;, &apos;bzip2-native&apos;, &apos;perl-native&apos;, &apos;pkgconfig-native&apos;, &apos;expat-native&apos;, &apos;sqlite3-native&apos;, &apos;libnsl2-native&apos;, &apos;libffi-native&apos;, &apos;gdbm-native&apos;, &apos;util-linux-native&apos;, &apos;libtirpc-native&apos;, &apos;readline-native&apos;, &apos;lzo-native&apos;, &apos;e2fsprogs-native&apos;, &apos;libpcre2-native&apos;, &apos;ncurses-native&apos;, &apos;libcap-ng-native&apos;]
| NOTE: Skipping as already exists in sysroot: [&apos;glibc&apos;, &apos;pseudo-native&apos;, &apos;libnsl2&apos;, &apos;quilt-native&apos;, &apos;patch-native&apos;, &apos;gcc-cross-arm&apos;, &apos;gcc-runtime&apos;, &apos;linux-libc-headers&apos;, &apos;libtirpc&apos;, &apos;automake-native&apos;, &apos;autoconf-native&apos;, &apos;attr-native&apos;, &apos;gnu-config-native&apos;, &apos;libtool-native&apos;, &apos;xz-native&apos;, &apos;gettext-minimal-native&apos;, &apos;libmpc-native&apos;, &apos;flex-native&apos;, &apos;binutils-cross-arm&apos;, &apos;mpfr-native&apos;, &apos;texinfo-dummy-native&apos;, &apos;gmp-native&apos;, &apos;zlib-native&apos;, &apos;libgcc&apos;, &apos;m4-native&apos;]
| DEBUG: sed -e &apos;s:^[^/]*/:/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/recipe-sysroot-native/:g&apos; /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/rpm-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/dbus-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/openssl-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/python3-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/elfutils-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/perl-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/pkgconfig-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/e2fsprogs-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/libpcre2-native/fixmepath /mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/ncurses-native/fixmepath | xargs sed -i -e &apos;s:FIXMESTAGINGDIRTARGET:/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/recipe-sysroot-native:g&apos; -e &apos;s:FIXME_PSEUDO_SYSROOT:/mnt/scratch/ernst.sjostrand/cu1/sysroots-components/x86_64/pseudo-native:g&apos; -e &apos;s:FIXME_HOSTTOOLS_DIR:/mnt/scratch/ernst.sjostrand/cu1/hosttools:g&apos; -e &apos;s:FIXME_PKGDATA_DIR:/mnt/scratch/ernst.sjostrand/cu1/pkgdata/cu2:g&apos; -e &apos;s:FIXME_PSEUDO_LOCALSTATEDIR:/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/pseudo/:g&apos; -e &apos;s:FIXME_LOGFIFO:/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/temp/fifo.10567:g&apos;
| DEBUG: Python function extend_recipe_sysroot finished
| abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
| Check logfile: /mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/pseudo//pseudo.log
| ERROR: Command &apos;[&apos;rm&apos;, &apos;-rf&apos;, &apos;/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/packages-split&apos;]&apos; died with &lt;Signals.SIGABRT: 6&gt;.
ERROR: Task (/home/ernst.sjostrand/cu1/meta/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb:do_package) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 3242 tasks of which 1516 didn&apos;t need to be rerun and 1 failed.


Summary: 1 task failed:
  /home/ernst.sjostrand/cu1/meta/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb:do_package
Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



Pseduo.log:

path mismatch [2 links]: ino 6176280 db &apos;/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/package/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c&apos; req &apos;/mnt/scratch/ernst.sjostrand/cu1/work/cortexa7t2hf-neon-fslc-linux-gnueabi/tcp-wrappers/7.6-r10/packages-split/tcp-wrappers-src/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c&apos;.


Build Configuration:
BB_VERSION           = &quot;1.46.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;arm-fslc-linux-gnueabi&quot;
MACHINE              = &quot;cu2&quot;
DISTRO               = &quot;verilix&quot;
DISTRO_VERSION       = &quot;master&quot;
TUNE_FEATURES        = &quot;arm vfp cortexa7 neon thumb callconvention-hard&quot;
TARGET_FPU           = &quot;hard&quot;
meta                 
meta-poky            = &quot;HEAD:0839888394a6e42e96f9f0d201376eb38bc79b24&quot;
meta-oe              
meta-multimedia      
meta-python          
meta-networking      = &quot;HEAD:c38d2a74f762a792046f3d3c377827b08aade513&quot;
meta-freescale       = &quot;HEAD:2da53ce8330d4bb0f7cb7a2ae186b7475ba02d52&quot;
meta-selinux         = &quot;HEAD:7af62c91d7d00a260cf28e7908955539304d100d&quot;


find * -name diag.c | xargs stat
  File: package/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c
  Size: 1466      	Blocks: 8          IO Block: 4096   regular file
Device: 811h/2065d	Inode: 6176280     Links: 2
Access: (0644/-rw-r--r--)  Uid: (12527211/ernst.sjostrand@verisure.com)   Gid: (12527211/ernst.sjostrand@verisure.com)
Access: 2021-11-18 15:05:21.358980637 +0000
Modify: 1994-12-28 16:42:20.000000000 +0000
Change: 2021-11-18 15:11:06.340869096 +0000
 Birth: -
  File: packages-split/tcp-wrappers-src/usr/src/debug/tcp-wrappers/7.6-r10/tcp_wrappers_7.6/diag.c
  Size: 1466      	Blocks: 8          IO Block: 4096   regular file
Device: 811h/2065d	Inode: 6176280     Links: 2
Access: (0644/-rw-r--r--)  Uid: (12527211/ernst.sjostrand@verisure.com)   Gid: (12527211/ernst.sjostrand@verisure.com)
Access: 2021-11-18 15:05:21.358980637 +0000
Modify: 1994-12-28 16:42:20.000000000 +0000
Change: 2021-11-18 15:11:06.340869096 +0000
 Birth: -
  File: tcp_wrappers_7.6/diag.c
  Size: 1466      	Blocks: 8          IO Block: 4096   regular file
Device: 811h/2065d	Inode: 8524642     Links: 1
Access: (0444/-r--r--r--)  Uid: (12527211/ernst.sjostrand@verisure.com)   Gid: (12527211/ernst.sjostrand@verisure.com)
Access: 2021-11-18 15:17:35.489209195 +0000
Modify: 1994-12-28 16:42:20.000000000 +0000
Change: 2021-11-18 15:11:06.384871389 +0000
 Birth: -


Host machine:
5.4.0-1063-azure
/dev/sdb1 on /mnt type ext4 (rw,relatime,x-systemd.requires=cloud-init.service)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92046</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2021-11-19 15:20:30 +0000</bug_when>
    <thetext>I&apos;d like to find some way to reproduce this issue, as I&apos;ve never seen it in my own testing.

I do regular builds with layer sets quite similar to what you are using, though I mostly use the poky distro (or a distro that inherits poky). So your distro is one potential area to investigate.

Also none of my testing uses an azure host machine, so that is another area of difference.

Have you tried using other host machines to see if it might be azure related?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92054</commentid>
    <comment_count>2</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2021-11-22 09:39:50 +0000</bug_when>
    <thetext>Looks like you need to do two builds in a row without sstate caching you.
So build, tweak something, build again. The error comes from:
def exec_func(func, d, dirs = None):
&lt;...&gt;
     cleandirs = flags.get(&apos;cleandirs&apos;) if flags else None
     if cleandirs:
         for cdir in d.expand(cleandirs).split():
+            bb.warn(&quot;My extra print: running cleandir %s&quot; % cdir)
             bb.utils.remove(cdir, True)
             bb.utils.mkdirhier(cdir)

So this &quot;rm -rf&quot; is running under Pseudo... seems a bit meaningless? Can it be disabled?

I actually don&apos;t think this is Dunfell specific, it&apos;s probably the same on all up to date Yocto.. ? I just managed to trigger this somehow.

There&apos;s a been a couple of mentions of similar problems:
https://lists.yoctoproject.org/g/yocto/topic/78528061?p=Created,,,20,2,0,0::recentpostdate%2Fsticky,,,20,2,40,78528061

My distro is based on Poky.

Yeah I also suspected Azure a bit. Looks like a normal ext4 filesystem etc, couldn&apos;t find anything very special about it... No Docker involved. Decently modern kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92055</commentid>
    <comment_count>3</comment_count>
      <attachid>4844</attachid>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2021-11-22 09:52:04 +0000</bug_when>
    <thetext>Created attachment 4844
Patch to disable pseudo during bb.utils.remove()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92056</commentid>
    <comment_count>4</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2021-11-22 09:52:30 +0000</bug_when>
    <thetext>This patch solve my issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92057</commentid>
    <comment_count>5</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2021-11-22 13:49:42 +0000</bug_when>
    <thetext>Ignore the patch.

This seems to be caused by adding --enable-xattrdb to pseudo.
The pseudo database is missing a lot of files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92058</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-22 15:03:00 +0000</bug_when>
    <thetext>xattrdb is an experimental feature in pseudo and known not to work well, we&apos;d not recommend it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4844</attachid>
            <date>2021-11-22 09:52:04 +0000</date>
            <delta_ts>2021-11-22 09:52:04 +0000</delta_ts>
            <desc>Patch to disable pseudo during bb.utils.remove()</desc>
            <filename>0001-bitbake-Disable-pseudo-during-remove.patch</filename>
            <type>text/plain</type>
            <size>997</size>
            <attacher name="Ernst Persson">ernstp</attacher>
            
              <data encoding="base64">RnJvbSBhZTliYWFiYzc0YjgwYmYwNjA1ZmFhYWJkOGQxZGZkMmY2YmU3YTZ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