| Summary: | [scarthgap] AB-INT: qemuarm64-tc/qemux86-tc rust.RustSelfTestSystemEmulated.test_rust fails with "panicked at src/tools/compiletest/src/lib.rs:1054:31" | ||
|---|---|---|---|
| Product: | [QA/Testing] Functional (self) Testing | Reporter: | Yoann Congal <yoann.congal> |
| Component: | oe-selftest | Assignee: | Yoann Congal <yoann.congal> |
| Status: | IN PROGRESS DESIGN --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | randy.macleod, sundeep.kokkonda |
| Version: | 5.0.19 | ||
| Target Milestone: | 5.0.22 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | AB-INT | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Yoann Congal
2026-01-05 10:51:37 UTC
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: &str) -> Option<u32> {
1035 let full_version_line = full_version_line.trim();
1036
1037 // GDB versions look like this: "major.minor.patch?.yyyymmdd?", 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('[').next().unwrap();
1049 let mut splits = unbracketed_part.trim_end().rsplit(' ');
1050 let version_string = splits.next().unwrap();
1051
1052 let mut splits = version_string.split('.');
1053 let major = splits.next().unwrap();
1054 let minor = splits.next().unwrap();
1055 let patch = splits.next();
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 "contrib/ycongal/scarthgap/bz16122_rust" builds scarthgap qemuarm-tc fedora40-vk-2 https://autobuilder.yoctoproject.org/valkyrie/?#/builders/42/builds/3129 |