<?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>16120</bug_id>
          
          <creation_ts>2026-01-05 08:56:50 +0000</creation_ts>
          <short_desc>AB-INT: do_bootimg: cannot lseek hddimg/rootfs.img: Invalid argument</short_desc>
          <delta_ts>2026-02-26 16:11:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</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.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Paul Barker">paul</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</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>103679</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-05 08:56:50 +0000</bug_when>
    <thetext>ERROR: core-image-minimal-1.0-r0 do_bootimg: Execution of &apos;/srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1120930/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/run.build_hddimg.4042060&apos; failed with exit code 1
...
| NOTE: Trying to install /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1120930/tmp/deploy/images/qemux86-64/bzImage as /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1120930/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/sources/core-image-minimal-1.0/hddimg/bzImage
| install: cannot lseek &apos;/srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1120930/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/sources/core-image-minimal-1.0/hddimg/rootfs.img&apos;: Invalid argument
| WARNING: exit code 1 from a shell command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103682</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-05 09:48:20 +0000</bug_when>
    <thetext>oe-selftest-debian ubuntu2510-vk-1 mathieu/master-next completed at 2026-01-01 22:35:18+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/2937/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103766</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-08 16:02:15 +0000</bug_when>
    <thetext>Let&apos;s see if it happens again, on master even...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103902</commentid>
    <comment_count>3</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2026-01-15 13:21:57 +0000</bug_when>
    <thetext>oe-selftest-fedora alma8-vk-2 master completed at 2026-01-15 03:37:30+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2912/steps/16/logs/stdio

oe-selftest-fedora alma8-vk-2 master&amp;master-next completed at 2026-01-14 20:54:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2909/steps/16/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103976</commentid>
    <comment_count>4</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2026-01-20 14:42:12 +0000</bug_when>
    <thetext>oe-selftest-fedora opensuse155-vk-2 agodard/master-next completed at 2026-01-15 21:19:02+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2918/steps/16/logs/stdio

oe-selftest-debian ubuntu2204-vk-2 agodard/master-next-bis&amp;agodard/master-next completed at 2026-01-16 21:12:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3036/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103981</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-01-20 18:24:07 +0000</bug_when>
    <thetext>I&apos;ve looked into this in some detail but can&apos;t reproduce the failure locally.

There is a known issue in coreutils 9.9 (https://github.com/coreutils/coreutils/issues/159), with two upstream commits we should take to fix this:

- https://github.com/coreutils/coreutils/commit/bd528f923482223649aa84be7d131e69356149da

- https://github.com/coreutils/coreutils/commit/33bc44e1ba3aa4c70f3cd16aa9c41331543986dd

The issue reported upstream is an infinite loop, we&apos;re seeing an invalid argument passed to lseek. But I suspect these issues are at least related, if not the same.

There are a couple of places that the &quot;cannot lseek&quot; error message gets printed in src/copy-file-data.c from coreutils 9.9. We specifically see a failure to seek on the destination file, which means the failure is in `create_hole()` (https://github.com/coreutils/coreutils/blob/v9.9/src/copy-file-data.c#L65), and I can figure out that it&apos;s being given bad arguments by `lseek_copy()` (https://github.com/coreutils/coreutils/blob/v9.9/src/copy-file-data.c#L317).

Trying to fully understand the loop in `lseek_copy()` and prove that this is our bug is a lot of work. We need to prioritise, so let&apos;s take the upstream fixes for now and see if the intermittent build failure re-occurs. If it does occur again, we&apos;ve narrowed down the potential causes by applying these fixes.

I&apos;ll send patches...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103989</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-01-21 10:46:35 +0000</bug_when>
    <thetext>Patch sent to the list: https://lore.kernel.org/openembedded-core/20260121-fix-coreutils-v1-1-30a1769b5733@pbarker.dev/T/#u

I&apos;ve ran the test that failed (runqemu.RunqemuTests.test_boot_compressed_wic_by_path) 20 times on the autobuilder - 10x oe-selftest-debian + 10x oe-selftest-fedora. None of those runs hit the issue so hopefully it&apos;s fixed. Once this is merged to master we can mark as resolved and re-open if we see the issue again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104007</commentid>
    <comment_count>7</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2026-01-21 15:34:32 +0000</bug_when>
    <thetext>oe-selftest-fedora alma8-vk-1 agodard/master-next completed at 2026-01-20 15:24:00+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2951/steps/16/logs/stdio

oe-selftest-debian ubuntu2204-vk-4 agodard/master-next completed at 2026-01-21 00:37:17+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3061/steps/15/logs/stdio

oe-selftest-fedora opensuse155-vk-2 master-next&amp;master completed at 2026-01-21 03:43:57+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2969/steps/16/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104421</commentid>
    <comment_count>8</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-02-26 16:11:37 +0000</bug_when>
    <thetext>Merged to master and things have been fine since so let&apos;s close this.

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

    </bug>

</bugzilla>