<?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>16122</bug_id>
          
          <creation_ts>2026-01-05 10:51:37 +0000</creation_ts>
          <short_desc>[scarthgap] AB-INT: qemuarm64-tc/qemux86-tc rust.RustSelfTestSystemEmulated.test_rust fails with &quot;panicked at src/tools/compiletest/src/lib.rs:1054:31&quot;</short_desc>
          <delta_ts>2026-07-23 15:14:59 +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>5.0.19</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS DESIGN</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>5.0.22</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>sundeep.kokkonda</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>103691</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-01-05 10:51:37 +0000</bug_when>
    <thetext>On scarthgap, rust.RustSelfTestSystemEmulated.test_rust failed with
  Testing stage1 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -&gt; i686-poky-linux-gnu)
  thread &apos;main&apos; panicked at src/tools/compiletest/src/lib.rs:1054:31:
  called `Option::unwrap()` on a `None` value
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  Testing stage1 compiletest suite=run-pass-valgrind mode=run-pass-valgrind (x86_64-unknown-linux-gnu -&gt; i686-poky-linux-gnu)
  thread &apos;main&apos; panicked at src/tools/compiletest/src/lib.rs:1054:31:
  called `Option::unwrap()` on a `None` value
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

In &quot;qemuarm64-tc&quot;:
* https://errors.yoctoproject.org/Errors/Details/893218/
* https://autobuilder.yoctoproject.org/valkyrie/#/builders/5/builds/2878
* (Note: passed in https://autobuilder.yoctoproject.org/valkyrie/#/builders/5/builds/2880)


And in &quot;qemux86-tc&quot;:
* https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/2884
* https://errors.yoctoproject.org/Errors/Details/893233/
* (Note: passed in https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/2886)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103696</commentid>
    <comment_count>1</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-01-05 13:16:22 +0000</bug_when>
    <thetext>Look GDB related: the panic is in the extract_gdb_version() function:
src/tools/compiletest/src/lib.rs:
1034 fn extract_gdb_version(full_version_line: &amp;str) -&gt; Option&lt;u32&gt; {
1035     let full_version_line = full_version_line.trim();
1036 
1037     // GDB versions look like this: &quot;major.minor.patch?.yyyymmdd?&quot;, with both
1038     // of the ? sections being optional
1039 
1040     // We will parse up to 3 digits for each component, ignoring the date
1041 
1042     // We skip text in parentheses.  This avoids accidentally parsing
1043     // the openSUSE version, which looks like:
1044     //  GNU gdb (GDB; openSUSE Leap 15.0) 8.1
1045     // This particular form is documented in the GNU coding standards:
1046     // https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html#g_t_002d_002dversion
1047 
1048     let unbracketed_part = full_version_line.split(&apos;[&apos;).next().unwrap();
1049     let mut splits = unbracketed_part.trim_end().rsplit(&apos; &apos;);
1050     let version_string = splits.next().unwrap();
1051 
1052     let mut splits = version_string.split(&apos;.&apos;);
1053     let major = splits.next().unwrap();
1054     let minor = splits.next().unwrap();
1055     let patch = splits.next();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103887</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-01-14 16:49:24 +0000</bug_when>
    <thetext>I started to try to reproduce under better error handling (no success so far)
https://git.yoctoproject.org/poky-contrib/log/?h=ycongal/scarthgap/bz16122_rust

under a modified builder (to only run the failing test)
https://git.yoctoproject.org/yocto-autobuilder-helper/log/?h=contrib/ycongal/scarthgap/bz16122_rust

See: https://autobuilder.yoctoproject.org/valkyrie/#/builders/28 with the &quot;contrib/ycongal/scarthgap/bz16122_rust&quot; builds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104341</commentid>
    <comment_count>3</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-02-17 23:06:56 +0000</bug_when>
    <thetext>scarthgap qemuarm-tc fedora40-vk-2 https://autobuilder.yoctoproject.org/valkyrie/?#/builders/42/builds/3129</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>