<?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>15884</bug_id>
          
          <creation_ts>2025-06-02 15:04:53 +0000</creation_ts>
          <short_desc>AB-INT PTEST RISCV64: tar ptest failure</short_desc>
          <delta_ts>2026-03-12 16:58:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Package Testing (ptest)</product>
          <component>ptest</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="João Marcos Costa">joaomarcos.costa</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>skandigraun</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102111</commentid>
    <comment_count>0</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2025-06-02 15:04:53 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/6/steps/13/logs/stdio

Failed ptests:
{&apos;tar&apos;: &apos;START: ptest-runner\n&apos;        &apos;2025-05-15T11:12\n&apos;
&apos;## ------------------------ ##\n&apos;        &apos;## GNU tar 1.35 test suite. ##\n&apos;
&apos;## ------------------------ ##\n&apos;        &apos;PASS: tar version\n&apos;        &apos;PASS:
decompressing from stdin\n&apos;

(...)

&apos;devtmpfs                499876         0    499876   0% /dev\n&apos;
&apos;tmpfs                   501024        72    500952   0% /run\n&apos;
&apos;tmpfs                   501024        80    500944   0% &apos;
&apos;/var/volatile\n&apos;        &apos;              total        used        free
shared  buff/cache   &apos;        &apos;available\n&apos;        &apos;Mem:        1002052
46956       38528         152      &apos;        &apos;916568      938628\n&apos;
&apos;Swap:             0           0           0\n&apos;        &apos;\n&apos;
&apos;ERROR: Exited from signal Killed (9)\n&apos;
&apos;DURATION: 796\n&apos;}

Looks like a timeout.

qemuriscv64-ptest opensuse155-vk-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102144</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-05 14:35:44 +0000</bug_when>
    <thetext>Let&apos;s see how often this happens in the autobuilder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102150</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-05 14:47:13 +0000</bug_when>
    <thetext>*** Bug 15890 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102214</commentid>
    <comment_count>3</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2025-06-09 06:58:05 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/87/steps/12/logs/stdio

qemuriscv64-ptest rocky9-vk-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102432</commentid>
    <comment_count>4</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2025-07-08 09:09:47 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/160/steps/12/logs/stdio

qemuriscv64-ptest ubuntu2404-vk-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102800</commentid>
    <comment_count>5</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2025-09-22 07:43:53 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/512/steps/12/logs/stdio

qemuriscv64-ptest fedora42-vk-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102885</commentid>
    <comment_count>6</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2025-10-06 08:29:13 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/578/steps/14/logs/stdio

qemuriscv64-ptest opensuse156-vk-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103014</commentid>
    <comment_count>7</comment_count>
    <who name="Gyorgy Sarvari">skandigraun</who>
    <bug_when>2025-10-21 17:46:37 +0000</bug_when>
    <thetext>I was able to reproduce this on my machine (with qemuriscv64), thought the repro rate is around only 5%, and I don&apos;t have the slightest idea about the cause yet...


    cd /usr/lib/tar/ptest/tests
    for i in `seq 20`; do
      time ./testsuite -k sparse03
    done


This test generates an 8GB sparse file, full of 0s. Then tars it, extracts it, and compares it with the original, using cmp.
One round usually takes 150 seconds on my machine, but every once in a while, without any apparent reason, it takes more than double this time - that&apos;s seems to be also when ptest-runner times out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103027</commentid>
    <comment_count>8</comment_count>
    <who name="Gyorgy Sarvari">skandigraun</who>
    <bug_when>2025-10-22 19:49:04 +0000</bug_when>
    <thetext>This test looks sensitive to the overall machine load - I&apos;m a bit surprised that it shows only on qemuriscv64 on AB. On my machine I see this on qemuarm64 too (though it is noticeably faster on arm64 compared to riscv64, it times out much less frequently than on riscv64).

The test generates an 8GB sparse file, tars it, untars it, and then it compares the original and extracted versions with cmp - it chews through 16GB of imaginary zeros. It is using a single thread to do so, and when running in qemu without kvm, it does need every CPU cycle it can get to finish in time.

I have submitted a patch[1] to use the full version of cmp instead of busybox. In my tests the speedup is noticable: on idle machine it went from 150 seconds to 55. And the test doesn&apos;t time out even if I compile clang-native on all CPU cores during execution. (Using the busybox version always timed out with high load, and mid-load caused timeouts occasionally too)

[1]: https://lists.openembedded.org/g/openembedded-core/message/225209</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104616</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-03-12 16:58:13 +0000</bug_when>
    <thetext>Thanks Gyorgy, this does seem to have resolved the issue as we&apos;ve not seen it since. I think we can therefore close this now, thanks!
https://git.openembedded.org/openembedded-core/commit/?id=81f7b60fb1c5096bbc233f632040d1ea9ec5bb21</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>