<?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>16340</bug_id>
          
          <creation_ts>2026-07-01 08:23:54 +0000</creation_ts>
          <short_desc>AB-INT PTEST: libarchive ptest failure: timeout in test_fuzz_iso9660</short_desc>
          <delta_ts>2026-07-23 06:58:54 +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>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>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="João Marcos Costa">joaomarcos.costa</reporter>
          <assigned_to name="Siva Balasubramanian">sivakumar.bs</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>mathieu.dubois-briand</cc>
    
    <cc>sivakumar.bs</cc>
    
    <cc>tim.orling</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>106057</commentid>
    <comment_count>0</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2026-07-01 08:23:54 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3890/steps/13/logs/stdio

155: test_fuzz_ar                                                    ok
156: test_fuzz_cab                                                   ok
157: test_fuzz_cpio                                                  ok
158: test_fuzz_iso9660                                               Timeout! System state:
Collected system state:
+ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x413fd0c1]
[    0.000000] Linux version 6.18.35-yocto-standard (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 16.1.0, GNU ld (GNU Binutils) 2.46.1) #1 SMP PREEMPT Wed Jun 10 16:00:30 UTC 2026
[    0.000000] random: crng init done
[    0.000000] Machine model: linux,dummy-virt
[    0.000000] Memory limited to 1024MB
(...)

qemuarm64-ptest ubuntu2404-vk-arm1

Full logs at: https://valkyrie.yocto.io/pub/non-release/20260624-47/testresults/qemuarm64-ptest/libarchive.log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106076</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-07-02 14:53:01 +0000</bug_when>
    <thetext>Should investigate whether we should be running fuzzing tests? Perhaps the tests should be skipped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106077</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2026-07-02 14:54:07 +0000</bug_when>
    <thetext>It looks like libarchive has an environment variable that causes the test suite to skip fuzzing tests: SKIP_TEST_FUZZ

https://github.com/libarchive/libarchive/blob/0c856d3a8f23934e77deb22f4bfc1ac0650a0b04/libarchive/test/test_fuzz.c#L62</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106084</commentid>
    <comment_count>3</comment_count>
    <who name="Siva Balasubramanian">sivakumar.bs</who>
    <bug_when>2026-07-03 07:07:23 +0000</bug_when>
    <thetext>Sent a patch implementing Joshua&apos;s suggestion (comment 2):

https://patchwork.yoctoproject.org/project/oe-core/patch/20260703070042.3221380-1-sivakumar.bs@gmail.com/

Sets SKIP_TEST_FUZZ=1 in run-ptest before invoking the test binaries.
The fuzz tests run 1000 randomised iterations per archive format and
are designed for dedicated fuzzing infrastructure, not routine ptest
runs - skipping them via this upstream-provided env var keeps the
remaining libarchive ptests (libarchive_test, bsdtar_test,
bsdcpio_test, bsdcat_test, bsdunzip_test) running as before.

Tested locally against libarchive 3.8.7: with SKIP_TEST_FUZZ=1 set,
test_fuzz_iso9660 reports &quot;skipped&quot; immediately instead of running the
fuzzing workload (verified by running the compiled test binary both
with and without the variable); the remaining tests continue to pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106281</commentid>
    <comment_count>4</comment_count>
    <who name="Siva Balasubramanian">sivakumar.bs</who>
    <bug_when>2026-07-23 06:58:54 +0000</bug_when>
    <thetext>Patch added in master

https://git.openembedded.org/openembedded-core/commit/?id=8db26e7efee024f370e8d2b45c8db24beecf61a8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>