<?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>16124</bug_id>
          
          <creation_ts>2026-01-05 18:48:43 +0000</creation_ts>
          <short_desc>qemuriscv64 boot hang on master</short_desc>
          <delta_ts>2026-01-06 19:06:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>RISCV</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>16087</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Gamblin">tgamblin</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</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>103702</commentid>
    <comment_count>0</comment_count>
      <attachid>5167</attachid>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-05 18:48:43 +0000</bug_when>
    <thetext>Created attachment 5167
qemuboot conf file

Building an image on master for qemuriscv64 and trying to boot it with QEMU seems to result in an immediate hang. 

Tested by setting MACHINE = &quot;qemuriscv64&quot; and running &quot;bitbake core-image-full-cmdline&quot;.

At least on my end, it seems to happen whether we use the default kernel (6.18) or set PREFERRED_PROVIDER_linux-yocto = &quot;6.16%&quot; in local.conf.

I&apos;ve attached a copy of the generated qemuboot.conf file for reference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103714</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-06 13:45:42 +0000</bug_when>
    <thetext>I&apos;ve traced it to this commit: https://git.openembedded.org/openembedded-core/commit/?id=ab07d62ee0f3bd721e5733ae645842db1fd3882d

If I revert that, images boot OK with runqemu. Now to find out why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103720</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-06 17:51:07 +0000</bug_when>
    <thetext>This may be Fedora-43 specific since that&apos;s where Trevor saw the problem.

For me, qemuriscv64 for core-image-minimal booted fine for me on Jan 5, 2026,
and I just tried c-i-full-cmdline and it booted fine too:

root@qemuriscv64:~# uname -r
6.18.1-yocto-standard

This is with oe-core HEAD at:
   0ed4776533  Revert &quot;glibc: Enable NFS local file locking for glibc tests&quot;

and building on an ubuntu-22.024 host system and starting from nothing in sstate-cache. 

I do have meta-oe/meta-* in my layers and I added ripgrep to the image.

Trevor said that he is going to try another machine/distro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103722</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-06 18:25:54 +0000</bug_when>
    <thetext>Confirmed that this seems to be unique to my Fedora machine (although the only other one I&apos;ve tested is an Ubuntu 22.04 workstation).

Going to completely clean my sstate-cache and rebuild, to see if it&apos;s another case of corrupted sstate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103723</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-06 19:04:00 +0000</bug_when>
    <thetext>Looks to be a corrupted sstate issue with F43 - if I delete my entire sstate-cache and rebuild, I can boot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103724</commentid>
    <comment_count>5</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-06 19:05:54 +0000</bug_when>
    <thetext>Seems to be a duplicate of 16087. I can boot after completely deleting my sstate-cache:

Poky (Yocto Project Reference Distro) 5.2.99+snapshot-0ed4776533145c901611d7f4f942490e33481335 qemuriscv64 /dev/ttyS0                                                                                                                                   

qemuriscv64 login: QEMU: Terminated
runqemu - INFO - Cleaning up
runqemu - INFO - Host uptime: 104519.10

runqemu - INFO - Removing /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/deploy/images/qemuriscv64/core-image-minimal-qemuriscv64.rootfs-20260106181831.ext4
tgamblin@megalith ~/workspace/yocto/openembedded-core/build (master)$ cat /etc/os-release
NAME=&quot;Fedora Linux&quot;
VERSION=&quot;43 (Server Edition)&quot;
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=43
VERSION_CODENAME=&quot;&quot;
PRETTY_NAME=&quot;Fedora Linux 43 (Server Edition)&quot;
ANSI_COLOR=&quot;0;38;2;60;110;180&quot;
LOGO=fedora-logo-icon
CPE_NAME=&quot;cpe:/o:fedoraproject:fedora:43&quot;
HOME_URL=&quot;https://fedoraproject.org/&quot;
DOCUMENTATION_URL=&quot;https://docs.fedoraproject.org/en-US/fedora/f43/&quot;
SUPPORT_URL=&quot;https://ask.fedoraproject.org/&quot;
BUG_REPORT_URL=&quot;https://bugzilla.redhat.com/&quot;
REDHAT_BUGZILLA_PRODUCT=&quot;Fedora&quot;
REDHAT_BUGZILLA_PRODUCT_VERSION=43
REDHAT_SUPPORT_PRODUCT=&quot;Fedora&quot;
REDHAT_SUPPORT_PRODUCT_VERSION=43
SUPPORT_END=2026-12-02
VARIANT=&quot;Server Edition&quot;
VARIANT_ID=server
tgamblin@megalith ~/workspace/yocto/openembedded-core/build (master)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103725</commentid>
    <comment_count>6</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-01-06 19:06:09 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 16087 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5167</attachid>
            <date>2026-01-05 18:48:43 +0000</date>
            <delta_ts>2026-01-05 18:48:43 +0000</delta_ts>
            <desc>qemuboot conf file</desc>
            <filename>core-image-full-cmdline-qemuriscv64.rootfs.qemuboot.conf</filename>
            <type>text/plain</type>
            <size>1943</size>
            <attacher name="Trevor Gamblin">tgamblin</attacher>
            
              <data encoding="base64">W2NvbmZpZ19ic3BdCmRlcGxveV9kaXJfaW1hZ2UgPSAuCmltYWdlX2xpbmtfbmFtZSA9IGNvcmUt
aW1hZ2UtZnVsbC1jbWRsaW5lLXFlbXVyaXNjdjY0LnJvb3RmcwppbWFnZV9uYW1lID0gY29yZS1p
bWFnZS1mdWxsLWNtZGxpbmUtcWVtdXJpc2N2NjQucm9vdGZzLTIwMjYwMTA1MTgyMTI5Cmtlcm5l
bF9pbWFnZXR5cGUgPSBJbWFnZQptYWNoaW5lID0gcWVtdXJpc2N2NjQKcWJfY21kbGluZV9pcF9z
bGlycCA9IGlwPWRoY3AKcWJfY21kbGluZV9pcF90YXAgPSBpcD0xOTIuMTY4LjcuQENMSUVOVEA6
OjE5Mi4xNjguNy5AR0FURVdBWUA6MjU1LjI1NS4yNTUuMDo6ZXRoMDpvZmY6OC44LjguOCBuZXQu
aWZuYW1lcz0wCnFiX2NwdSA9IC1jcHUgcnZhMjNzNjQKcWJfZGVmYXVsdF9iaW9zID0gZndfanVt
cC5lbGYKcWJfZGVmYXVsdF9mc3R5cGUgPSBleHQ0LnpzdApxYl9kZWZhdWx0X2tlcm5lbCA9ICR7
QGJiLnV0aWxzLmNvbnRhaW5zKCJJTklUUkFNRlNfSU1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