<?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>16377</bug_id>
          
          <creation_ts>2026-07-29 14:25:00 +0000</creation_ts>
          <short_desc>AB-INT PTEST: libarchive ptest failure in libarchive_test (test_read_append_rpm_filter)</short_desc>
          <delta_ts>2026-09-02 04:24:36 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></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>6.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="João Marcos Costa">joaomarcos.costa</reporter>
          <assigned_to name="Himani Barde">HimaniRamesh.Barde</assigned_to>
          <cc>pratik.farkase</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>106362</commentid>
    <comment_count>0</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2026-07-29 14:25:00 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2008/steps/13/logs/stdio

Failed ptests:
{&apos;libarchive&apos;: [&apos;libarchive_test&apos;]}

qemuriscv64-ptest fedora44-vk-1

---
Totals:
  Tests run:              797
  Tests failed:             1
  Assertions checked:28458500
  Assertions failed:        1
  Skips reported:         237

Failing tests:
  229: test_read_append_rpm_filter (1 failures)

Details for failing tests: /tmp/libarchive_test.2026-07-28T11.50.40-000

FAIL: libarchive_test
---

Full logs at: https://valkyrie.yocto.io/pub/non-release/20260728-69/testresults/qemuriscv64-ptest/libarchive.log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106397</commentid>
    <comment_count>1</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2026-07-31 08:38:30 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4145/steps/13/logs/stdio

Failed ptests:
{&apos;libarchive&apos;: [&apos;libarchive_test&apos;]}

qemuarm64-ptest stream10-vk-arm1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106398</commentid>
    <comment_count>2</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2026-07-31 08:39:23 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2031/steps/13/logs/stdio

Failed ptests:
{&apos;libarchive&apos;: [&apos;libarchive_test&apos;]}

qemuriscv64-ptest debian12-vk-9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106439</commentid>
    <comment_count>3</comment_count>
    <who name="Himani Barde">HimaniRamesh.Barde</who>
    <bug_when>2026-08-06 08:47:30 +0000</bug_when>
    <thetext>Root cause identified:
archive_read_append_filter() in libarchive 3.8.8 uses a name-based bidder lookup loop that can fail to locate the correct bidder due to a desync between the loop index and the bidder array. This causes test_read_append_rpm_filter to receive ARCHIVE_FATAL instead of ARCHIVE_OK.

Upstream fix: https://github.com/libarchive/libarchive/commit/50b585bb55484cdc70bd92852a477178dc43485c &quot;append_filter: Use last bidder for filter&quot; - Tobias Stoeckmann, 2026-08-02

The fix replaces the fragile name-based bidder lookup with a simple get_last_bidder() function that returns the most recently registered bidder.

Verified: Backported this patch to libarchive 3.8.9 recipe in OE-core. Patch applies cleanly and builds successfully for qemuarm64. The fixed code (get_last_bidder) is confirmed present in the compiled output.

Recommendation: Backport upstream commit 50b585bb to the libarchive recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106696</commentid>
    <comment_count>4</comment_count>
    <who name="Himani Barde">HimaniRamesh.Barde</who>
    <bug_when>2026-09-02 04:24:36 +0000</bug_when>
    <thetext>Patch submitted to the openembedded-core mailing list: https://lore.kernel.org/openembedded-core/?q=libarchive%3A%20backport

Subject: [PATCH] libarchive: backport fix for archive_read_append_filter test failure

The patch backports upstream commit 50b585bb (&quot;append_filter: Use last bidder for filter&quot;) to the libarchive 3.8.9 recipe.

Awaiting review and merge into oe-core master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>