Bug 16253 - AB-INT: llvm compilation segfault
Summary: AB-INT: llvm compilation segfault
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low normal
Target Milestone: 6.1
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2026-04-17 08:30 UTC by Mathieu Dubois-Briand
Modified: 2026-04-28 22:10 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2026-04-17 08:30:36 UTC
2026-04-16 23:11:06,547 - oe-selftest - INFO - rust.RustSelfTestSystemEmulated.test_rust (subunit.RemotedTestCase)
2026-04-16 23:11:06,567 - oe-selftest - INFO -  ... FAIL
...
AssertionError: Command 'bitbake  rust -c test_compile' returned non-zero exit status 1:
...
| [2503/3468] /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ --sysroot=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/recipe-sysroot -DLLVM_EXPORTS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/build/lib/Target/X86 -I/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/lib/Target/X86 -I/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/build/include -I/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/include -mcpu=cortex-a57+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/recipe-sysroot  -O2 -g1 -fcanon-prefix-map  -ffile-prefix-map=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src=/usr/src/debug/llvm/22.1.3  -ffile-prefix-map=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/build=/usr/src/debug/llvm/22.1.3  -ffile-prefix-map=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/recipe-sysroot=  -ffile-prefix-map=/srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work/cortexa57-poky-linux/llvm/22.1.3/recipe-sysroot-native=  -pipe -fvisibility-inlines-hidden -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Os -DNDEBUG -std=c++17 -fvisibility=hidden -MD -MT lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ExpandPseudo.cpp.o -MF lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ExpandPseudo.cpp.o.d -o lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ExpandPseudo.cpp.o -c /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/lib/Target/X86/X86ExpandPseudo.cpp
| FAILED: [code=1] lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ExpandPseudo.cpp.o
...
| In file included from /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/include/llvm/CodeGen/TargetInstrInfo.h:30,
|                  from /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/lib/Target/X86/X86InstrInfo.h:20,
|                  from /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/lib/Target/X86/X86ExpandPseudo.cpp:17:
| /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/include/llvm/CodeGen/VirtRegMap.h: In member function 'virtual void llvm::VirtRegMapWrapperLegacy::print(llvm::raw_ostream&, const llvm::Module*) const':
| /srv/pokybuild/yocto-worker/qemuarm64-tc/build/build-st-3667906/tmp/work-shared/llvm-project-source-22.1.3-r0/sources/llvm-project-22.1.3.src/llvm/include/llvm/CodeGen/VirtRegMap.h:204:3: internal compiler error: Segmentation fault
|   204 |   }
|       |   ^
| 0x20dba85 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t)
|       ???:0
| 0x20ebd7f internal_error(char const*, ...)
|       ???:0
| 0x82fdb0 cp_fold_function(tree_node*)
|       ???:0
| 0x867328 finish_function(bool)
|       ???:0
| 0x96c961 c_parse_file()
|       ???:0
| 0xa79e31 c_common_parse_file()
|       ???:0
| Please submit a full bug report, with preprocessed source (by using -freport-bug).
| Please include the complete backtrace with any bug report.
| See <https://gcc.gnu.org/bugs/> for instructions.
Comment 1 Mathieu Dubois-Briand 2026-04-17 08:38:13 UTC
qemuarm64-tc fedora43-vk-1 master&master-next completed at 2026-04-16 23:56:34+00:00
https://valkyrie.yocto.io/pub/non-release/20260416-119/testresults/qemuarm64-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/5/builds/3565/steps/13/logs/stdio
Comment 2 Mathieu Dubois-Briand 2026-04-17 13:14:40 UTC
Renaming the bug entry. The first one occurred during rust.RustSelfTestSystemEmulated.test_rust, but I'm going to add more that happened in other contexts.
Comment 3 Mathieu Dubois-Briand 2026-04-17 13:15:59 UTC
Anoterh onw, in a different context:
genericx86-alt fedora43-vk-1 mathieu/master-next completed at 2026-04-17 09:10:25+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/65/builds/3594/steps/12/logs/stdio

And yet another one:
qemuarm-tc fedora43-vk-1 mathieu/master-next completed at 2026-04-17 09:19:46+00:00
https://valkyrie.yocto.io/pub/non-release/20260417-41/testresults/qemuarm-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/42/builds/3567/steps/13/logs/stdio
Comment 4 Richard Purdie 2026-04-23 13:45:24 UTC
Always fedora43-vk-1? Also odd that a build run that continued this build worked out ok. A true ICE would fail again, this didn't.

That suggests OOM or a hardware issue :/
Comment 5 Randy MacLeod 2026-04-23 14:36:49 UTC
Let's see if this happens again in the coming months.
Comment 6 Richard Purdie 2026-04-28 22:10:27 UTC
We suspect the f43 worker needed the cpu mircocode updating. That has been done and we can close this, reopening if it happens again.