Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955941 - dev-libs/intel-compute-runtime SIGABRT when built with libc++ 18 while running clinfo
Summary: dev-libs/intel-compute-runtime SIGABRT when built with libc++ 18 while runnin...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jan Henke
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-14 05:57 UTC by unhappy-ending
Modified: 2025-05-15 20:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
logged clinfo libc++ (clinfo-libcxx.txt,12.00 KB, text/plain)
2025-05-14 06:17 UTC, unhappy-ending
Details
logged clinfo libstdc++ (clinfo-libstdc.txt,27.56 KB, text/plain)
2025-05-14 06:17 UTC, unhappy-ending
Details

Note You need to log in before you can comment on or make changes to this bug.
Description unhappy-ending 2025-05-14 05:57:25 UTC
When built against libc++ clinfo will SIGABRT. 

I reset my system to use LLVM 18 as the system wide compiler and libraries to avoid the std::char_traits<unsigned char>' deprecation. Tested against a vanilla intel-compute-runtime and dependencies, built with unset CFLAGS, CXXFLAGS, and LDFLAGS. 

Building against libstdc++ resolves the problem. Not a true fix but I can't think of anything that uses it as a build dependency.



Reproducible: Always

Steps to Reproduce:
1. Use LLVM profile with version 18 as the system toolchain to avoid build failures
2. Compile intel-compute-runtime
3. run clinfo
Actual Results:  
Abort was called at 135 line in file:
/etc/portage/package.tmp/portage/dev-libs/intel-compute-runtime-25.13.33276.17-r1/work/compute-runtime-25.13.33276.17/shared/source/utilities/reference_tracked_object.h
Process 234460 stopped
* thread #1, name = 'clinfo', stop reason = signal SIGABRT
frame #0: 0x00007ffff7e9697c libc.so.6`___lldb_unnamed_symbol3730 + 236
libc.so.6`___lldb_unnamed_symbol3730:
->  0x7ffff7e9697c <+236>: movl   %eax, %ebx
0x7ffff7e9697e <+238>: negl   %ebx
0x7ffff7e96980 <+240>: cmpl   $0xfffff000, %eax ; imm = 0xFFFFF000
0x7ffff7e96985 <+245>: movl   $0x0, %eax
Aborted

(lldb) bt
* thread #1, name = 'clinfo', stop reason = signal SIGABRT
* frame #0: 0x00007ffff7e9697c libc.so.6`___lldb_unnamed_symbol3730 + 236
frame #1: 0x00007ffff7e42f92 libc.so.6`raise + 18
frame #2: 0x00007ffff7e4606a libc.so.6`abort + 17
frame #3: 0x00007ffff6480f06 libigdrcl.so`___lldb_unnamed_symbol1145 + 6
frame #4: 0x00007ffff6481078 libigdrcl.so`___lldb_unnamed_symbol1149 + 40
frame #5: 0x00007ffff6505d02 libigdrcl.so`___lldb_unnamed_symbol3515 + 1346
frame #6: 0x00007ffff65a2259 libigdrcl.so`___lldb_unnamed_symbol4594 + 9
frame #7: 0x00007ffff64d538e libigdrcl.so`___lldb_unnamed_symbol2806 + 222
frame #8: 0x00007ffff64d5b09 libigdrcl.so`___lldb_unnamed_symbol2810 + 9
frame #9: 0x00007ffff6484279 libigdrcl.so`___lldb_unnamed_symbol1172 + 745
frame #10: 0x0000000000210a33 clinfo`___lldb_unnamed_symbol204 + 307
frame #11: 0x0000000000210e0b clinfo`___lldb_unnamed_symbol205 + 43
frame #12: 0x0000000000216a92 clinfo`___lldb_unnamed_symbol246 + 786
frame #13: 0x0000000000217c51 clinfo`___lldb_unnamed_symbol251 + 897
frame #14: 0x0000000000217f58 clinfo`___lldb_unnamed_symbol252 + 600
frame #15: 0x000000000021a9a4 clinfo`___lldb_unnamed_symbol263 + 1716
frame #16: 0x00007ffff7e2da27 libc.so.6`___lldb_unnamed_symbol3213 + 103
frame #17: 0x00007ffff7e2dae5 libc.so.6`__libc_start_main + 133
frame #18: 0x000000000020b7b1 clinfo`___lldb_unnamed_symbol98 + 33


Expected Results:  
No abort.

emerge --info intel-compute-runtime
Portage 3.0.68 (python 3.11.12-final-0, default/linux/amd64/23.0/llvm/systemd, gcc-14, glibc-2.41-r2, 6.14.6-clang x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.14.6-clang-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.41
KiB Mem:    32815092 total,  23006728 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 13 May 2025 09:09:27 +0000
Head commit of repository gentoo: e04607948c1cf5a7114cc872121fbe61bd19812d

Head commit of repository audio-overlay: 13e44330d84f919b06bc47c88190cea53d58a46b

Head commit of repository brave-overlay: faf80274a7ff0dc62417777cca8d2e467bbf97b9

Head commit of repository cg: 0cadd3200bdeb9e9edc2944ba43ffd714fbbc348

Head commit of repository guru: bfce42c504f03fd3b5825566ba9589ea3d9e6f95

Head commit of repository parona-overlay: 8583ef96ca58899b22b828378ff25d3b3230a4df

Head commit of repository steam-overlay: d93137ae2575727f9df5d43ce6e0368d44b6c0e7

sh bash 5.2_p37-r3
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37-r3::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.7-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.0::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.11.12::gentoo, 3.12.10::gentoo, 3.13.3::gentoo, 3.13.3-r100::gentoo, 3.14.0_beta1::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo
llvm-core/clang:           15.0.7-r3::gentoo, 18.1.8-r6::gentoo
llvm-core/lld:             15.0.7::gentoo, 18.1.8::gentoo
llvm-core/llvm:            15.0.7-r7::gentoo, 18.1.8-r6::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.5::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250419::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r2::gentoo
Repositories:

gentoo
location: /etc/portage/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: 0
volatile: True

audio-overlay
location: /etc/portage/repos/audio-overlay
sync-type: git
sync-uri: https://github.com/gentoo-audio/audio-overlay.git
masters: gentoo
priority: 50
eclass-overrides: audio-overlay
volatile: True

brave-overlay
location: /etc/portage/repos/brave-overlay
sync-type: git
sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
masters: gentoo
priority: 50
eclass-overrides: brave-overlay
volatile: True

cg
location: /etc/portage/repos/cg
sync-type: git
sync-uri: https://github.com/brothermechanic/cg
masters: gentoo
priority: 50
eclass-overrides: cg
volatile: True

guru
location: /etc/portage/repos/guru
sync-type: git
sync-uri: https://anongit.gentoo.org/git/repo/proj/guru
masters: gentoo
priority: 50
eclass-overrides: guru
volatile: True

parona-overlay
location: /etc/portage/repos/parona-overlay
sync-type: git
sync-uri: https://gitlab.com/Parona/parona-overlay
masters: gentoo
priority: 50
eclass-overrides: parona-overlay
volatile: True

steam-overlay
location: /etc/portage/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay
masters: gentoo
priority: 50
eclass-overrides: steam-overlay
volatile: True

unhappy-ending
location: /etc/portage/repos/unhappy-ending
masters: gentoo
priority: 100
volatile: True

Binary Repositories:

gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_llvm

Installed sets: @desktop-apps, @desktop-emulation, @dev-qt, @kde-apps, @kde-frameworks, @kde-misc, @kde-plasma, @production-audio, @production-video, @steam-client, @system-hardware, @system-kernel, @system-tools, @toolchain-llvm
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=native -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -Werror=format-security -Werror=implicit-function-declaration -Werror=incompatible-library-redeclaration -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFILT="llvm-cxxfilt"
CXXFLAGS="-march=native -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -Werror=format-security -Werror=odr -Werror=strict-aliasing"
DISTDIR="/etc/portage/package.distfiles"
EMERGE_DEFAULT_OPTS="-a -j -l12 --alphabetical --autounmask=n --columns --quiet-build --quiet-unmerge-warn --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks ebuild-locks export-pms-vars fail-clean fixlafiles ipc-sandboxmerge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox split-log strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GCOV="llvm-cov"
GENTOO_MIRRORS="http://distfiles.gentoo.org /etc/portage/package.mirrors"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LEX="reflex"
LINGUAS="en es"
MAKEOPTS="-j16 -l12"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/etc/portage/package.distfiles/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/etc/portage/package.tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C debuginfo=0 -C linker=clang -C opt-level=3 -C target-cpu=native -C link-arg=-Wl,--as-needed"
SHELL="/bin/bash"
SIZE="llvm-size"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="a52 acl alsa amd64 asm bluray boost bpf bzip2 cairo caps cdda cdio clang custom-cflags cxx dbus dts dvd egl eselect ffmpeg filecaps flac fontconfig fortran gdk-pixbuf gif gmp heif introspection jit joystickjpeg jpeg2k jpegxl lame lcms libinput lld llvm llvm-libunwind lv2 lvm lz4 lzma minimal mp3 native-extensions nls nvenc ogg openal opencl openexr opengl openmp opus orc pam pic pipewire png policykit polly python qml qsv qt6 raw readline seccomp shaderc sound ssl strip svg systemd tbb test test-rust threads tiff truetype udev udf udisks unicode urandom usb v4l vaapi video vorbis vpx vulkan wacom wav wayland webp x264 x265 xattr xdg xml zeroconf zlib zstd" ABI_X86="64" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_QUIC="openssl" CURL_SSL="openssl" ELIBC="glibc" GUILE_SINGLE_TARGET="3-0" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en es" LLVM_SLOT="18" LLVM_TARGETS="BPF NVPTX SPIRV X86" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PERL_FEATURES="ithreads" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel nvidia virgl"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GPROF, INSTALL_MASK, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, YACC, YFLAGS

=================================================================
Package Settings
=================================================================

dev-libs/intel-compute-runtime-25.13.33276.17-r1::gentoo was built with the following:
USE="l0 vaapi" ABI_X86="(64)"
CFLAGS=""
CXXFLAGS=""
LDFLAGS=""
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-14 06:06:54 UTC
(In reply to unhappy-ending from comment #0)

The backtrace isn't very useful, unfortunately. Please build intel-compute-runtime at least with debugging symbols: https://wiki.gentoo.org/wiki/Debugging.

Anyway, the assertion is at https://github.com/intel/compute-runtime/blob/fd2a073fc61299b856a83afd049a5428037f2844/shared/source/utilities/reference_tracked_object.h#L135.

I don't have any other analysis.
Comment 2 unhappy-ending 2025-05-14 06:17:08 UTC
Created attachment 928786 [details]
logged clinfo libc++
Comment 3 unhappy-ending 2025-05-14 06:17:25 UTC
Created attachment 928787 [details]
logged clinfo libstdc++
Comment 4 unhappy-ending 2025-05-14 06:21:22 UTC
(In reply to Sam James from comment #1)
> (In reply to unhappy-ending from comment #0)
> 
> The backtrace isn't very useful, unfortunately. Please build
> intel-compute-runtime at least with debugging symbols:
> https://wiki.gentoo.org/wiki/Debugging.
> 
> Anyway, the assertion is at
> https://github.com/intel/compute-runtime/blob/
> fd2a073fc61299b856a83afd049a5428037f2844/shared/source/utilities/
> reference_tracked_object.h#L135.
> 
> I don't have any other analysis.

No problem, I wasn't expecting any analysis. The error was included as a proof of sigabrt more than for actual debugging purposes. In the near future I'll give a debug symbol build a try and update after.
Comment 5 Jan Henke 2025-05-15 20:27:51 UTC
I have experienced similar crashes with rusticl. I might be caused by multiple versions of the same LLVM libararies loaded into the same process (icr loads LLVM 15, clinfo loads LLVM 18) which leads to multiple definitions of the same symbols.

As upstream is lagging behind on porting to newer LLVM versions, there is not much we can do about that.