Running clinfo -l results in a segfault inside /usr/lib64/libhsa-ext-image64.so.1:
(gdb) run -l
Starting program: /usr/bin/clinfo -l
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x7fffef4d7700 (LWP 3596)]
[New Thread 0x7fffeeb81700 (LWP 3597)]
[New Thread 0x7fffee380700 (LWP 3598)]
[New Thread 0x7fffedb7f700 (LWP 3599)]
[New Thread 0x7fffed37e700 (LWP 3600)]
[New Thread 0x7fffecb7d700 (LWP 3601)]
[New Thread 0x7fffd7fff700 (LWP 3602)]
[New Thread 0x7fffd77fe700 (LWP 3603)]
[New Thread 0x7fffd6ffd700 (LWP 3604)]
[New Thread 0x7fffd67fc700 (LWP 3605)]
[New Thread 0x7fffd5ffb700 (LWP 3606)]
[New Thread 0x7fffd57fa700 (LWP 3607)]
[New Thread 0x7fffd4ff9700 (LWP 3608)]
[New Thread 0x7fffb3fff700 (LWP 3609)]
[New Thread 0x7fffb37fe700 (LWP 3610)]
[New Thread 0x7fffb2ffd700 (LWP 3611)]
[New Thread 0x7fffb27fc700 (LWP 3612)]
[New Thread 0x7fffb1ffb700 (LWP 3613)]
[New Thread 0x7fffb17fa700 (LWP 3614)]
[New Thread 0x7fffb0ff9700 (LWP 3615)]
[New Thread 0x7fff93fff700 (LWP 3616)]
[New Thread 0x7fff937fe700 (LWP 3617)]
[New Thread 0x7fff92ffd700 (LWP 3618)]
[New Thread 0x7fff927fc700 (LWP 3619)]
[New Thread 0x7fff91ffb700 (LWP 3620)]
[New Thread 0x7fff917fa700 (LWP 3621)]
[New Thread 0x7fff90ff9700 (LWP 3622)]
[New Thread 0x7fff73fff700 (LWP 3623)]
[New Thread 0x7fff737fe700 (LWP 3624)]
[New Thread 0x7fff72ffd700 (LWP 3625)]
[New Thread 0x7fff727fc700 (LWP 3626)]
[New Thread 0x7fff71ffb700 (LWP 3627)]
[New Thread 0x7fff717fa700 (LWP 3628)]
[New Thread 0x7fff70ff9700 (LWP 3629)]
[New Thread 0x7fff53fff700 (LWP 3630)]
[New Thread 0x7fff537fe700 (LWP 3631)]
[New Thread 0x7fff52ffd700 (LWP 3632)]
[New Thread 0x7fff527fc700 (LWP 3633)]
[New Thread 0x7fff51ffb700 (LWP 3634)]
[New Thread 0x7fff517fa700 (LWP 3635)]
[New Thread 0x7fff50ff9700 (LWP 3636)]
[New Thread 0x7fff33fff700 (LWP 3637)]
[New Thread 0x7fff337fe700 (LWP 3638)]
[New Thread 0x7fff32ffd700 (LWP 3639)]
[New Thread 0x7fff327fc700 (LWP 3640)]
[New Thread 0x7fff31ffb700 (LWP 3641)]
[Thread 0x7fff31ffb700 (LWP 3641) exited]
[Thread 0x7fff327fc700 (LWP 3640) exited]
[Thread 0x7fff32ffd700 (LWP 3639) exited]
[Thread 0x7fff337fe700 (LWP 3638) exited]
[Thread 0x7fff33fff700 (LWP 3637) exited]
[Thread 0x7fff50ff9700 (LWP 3636) exited]
[Thread 0x7fff517fa700 (LWP 3635) exited]
[Thread 0x7fff51ffb700 (LWP 3634) exited]
[Thread 0x7fff527fc700 (LWP 3633) exited]
[Thread 0x7fff52ffd700 (LWP 3632) exited]
[Thread 0x7fff537fe700 (LWP 3631) exited]
[Thread 0x7fff53fff700 (LWP 3630) exited]
[Thread 0x7fff70ff9700 (LWP 3629) exited]
[Thread 0x7fff717fa700 (LWP 3628) exited]
[Thread 0x7fff71ffb700 (LWP 3627) exited]
[Thread 0x7fff727fc700 (LWP 3626) exited]
Thread 1 "clinfo" hit Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x5555555d9f30, tinfo=0x7ffff7d3fba0 <typeinfo for clover::error>, dest=0x7ffff7c6eeb0 <clover::error::~error()>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_throw.cc:78
78 /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_throw.cc: No such file or directory.
#0 __cxxabiv1::__cxa_throw (obj=0x5555555d9f30, tinfo=0x7ffff7d3fba0 <typeinfo for clover::error>, dest=0x7ffff7c6eeb0 <clover::error::~error()>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_throw.cc:78
globals = <optimized out>
header = <optimized out>
#1 0x00007ffff7c69fd4 in clover::device::device(clover::platform&, pipe_loader_device*) [clone .cold] () at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/ext/new_allocator.h:89
No symbol table info available.
#2 0x00007ffff7c8ec78 in clover::create<clover::device, clover::platform&, pipe_loader_device*&> () at ../mesa-20.0.4/src/gallium/state_trackers/clover/util/pointer.hpp:229
ref = <optimized out>
ref = <optimized out>
#3 clover::platform::platform (this=0x7ffff7d44960 <(anonymous namespace)::_clover_platform>) at ../mesa-20.0.4/src/gallium/state_trackers/clover/core/platform.cpp:36
ldev = 0x5555555d7e50
__for_range = <optimized out>
__for_begin = <optimized out>
__for_end = <optimized out>
n = <optimized out>
ldevs = <optimized out>
n = <optimized out>
ldevs = <optimized out>
ldev = <optimized out>
__for_range = <optimized out>
__for_begin = <optimized out>
__for_end = <optimized out>
#4 0x00007ffff7c6e066 in _GLOBAL__sub_I_platform.cpp () at ../mesa-20.0.4/src/gallium/state_trackers/clover/api/device.cpp:416
No symbol table info available.
#5 0x00007ffff7fe258a in call_init.part () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#6 0x00007ffff7fe26a1 in _dl_init () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#7 0x00007ffff7fe663b in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8 0x00007ffff7ea3011 in _dl_catch_exception () from /usr/lib64/libc.so.6
No symbol table info available.
#9 0x00007ffff7fe5eea in _dl_open () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#10 0x00007ffff7f30288 in ?? () from /usr/lib64/libdl.so.2
No symbol table info available.
#11 0x00007ffff7ea3011 in _dl_catch_exception () from /usr/lib64/libc.so.6
No symbol table info available.
#12 0x00007ffff7ea30af in _dl_catch_error () from /usr/lib64/libc.so.6
No symbol table info available.
#13 0x00007ffff7f309d9 in ?? () from /usr/lib64/libdl.so.2
No symbol table info available.
#14 0x00007ffff7f30316 in dlopen () from /usr/lib64/libdl.so.2
No symbol table info available.
#15 0x00007ffff7f3956d in ?? () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#16 0x00007ffff7f39a48 in ?? () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#17 0x00007ffff7d59537 in __pthread_once_slow () from /usr/lib64/libpthread.so.0
No symbol table info available.
#18 0x00007ffff7f38d10 in ?? () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#19 0x00007ffff7f3b524 in clGetPlatformIDs () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#20 0x000055555555a050 in main (argc=<optimized out>, argv=<optimized out>) at src/clinfo.c:3190
p = <optimized out>
err = <optimized out>
a = <optimized out>
output = {mode = CLINFO_HUMAN, cond = COND_PROP_CHECK, brief = 1, detailed = 0, offline = 0, check_size = 0}
plist = {num_platforms = 0, ndevs_total = 0, alloc_devs = 0, max_plat_version = 0, max_devs = 8388608, max_sname_len = 0, platform = 0x0, all_devs = 0x0, dev_offset = 0x0, pdata = 0x0, platform_checks = 0x0}
__func__ = "main"
[New Thread 0x7fff527fc700 (LWP 3642)]
LoadLib(libhsa-ext-finalize64.so.1) failed: libhsa-ext-finalize64.so.1: cannot open shared object file: No such file or directory
LoadLib(libhsa-amd-aqlprofile64.so) failed: libhsa-amd-aqlprofile64.so: cannot open shared object file: No such file or directory
Thread 1 "clinfo" received signal SIGSEGV, Segmentation fault.
0x00007fffb04eadb0 in ?? () from /usr/lib64/libhsa-ext-image64.so.1
(gdb) bt full
#0 0x00007fffb04eadb0 in ?? () from /usr/lib64/libhsa-ext-image64.so.1
No symbol table info available.
#1 0x00007fffef914833 in hsa_amd_image_get_info_max_dim () from /usr/lib64/libhsa-runtime64.so.1
No symbol table info available.
#2 0x00007fffef8d3d14 in ?? () from /usr/lib64/libhsa-runtime64.so.1
No symbol table info available.
#3 0x00007fffef8fee8c in ?? () from /usr/lib64/libhsa-runtime64.so.1
No symbol table info available.
#4 0x00007fffef94436f in hsa_agent_get_info () from /usr/lib64/libhsa-runtime64.so.1
No symbol table info available.
#5 0x00007fffefab99d3 in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#6 0x00007fffefaba7d3 in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#7 0x00007fffefabbc9f in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#8 0x00007fffefa6d96f in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#9 0x00007fffefa91a8e in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#10 0x00007fffefaf4e75 in ?? () from /usr/lib64/libamdocl64.so
No symbol table info available.
#11 0x00007ffff7d59537 in __pthread_once_slow () from /usr/lib64/libpthread.so.0
No symbol table info available.
#12 0x00007fffefaf4f8c in clIcdGetPlatformIDsKHR () from /usr/lib64/libamdocl64.so
No symbol table info available.
#13 0x00007ffff7f39cf6 in ?? () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#14 0x00007ffff7d59537 in __pthread_once_slow () from /usr/lib64/libpthread.so.0
No symbol table info available.
#15 0x00007ffff7f38d10 in ?? () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#16 0x00007ffff7f3b524 in clGetPlatformIDs () from /usr/lib64/libOpenCL.so.1
No symbol table info available.
#17 0x000055555555a050 in main (argc=<optimized out>, argv=<optimized out>) at src/clinfo.c:3190
p = <optimized out>
err = <optimized out>
a = <optimized out>
output = {mode = CLINFO_HUMAN, cond = COND_PROP_CHECK, brief = 1, detailed = 0, offline = 0, check_size = 0}
plist = {num_platforms = 0, ndevs_total = 0, alloc_devs = 0, max_plat_version = 0, max_devs = 8388608, max_sname_len = 0, platform = 0x0, all_devs = 0x0, dev_offset = 0x0, pdata = 0x0, platform_checks = 0x0}
__func__ = "main"
The kernel module will have a null pointer dereference, a kernel work queue will lockup and eventually the whole system will be unusable, because this also affects disk I/O:
Running
clinfo -l
results in a segfault inside/usr/lib64/libhsa-ext-image64.so.1
:The kernel module will have a null pointer dereference, a kernel work queue will lockup and eventually the whole system will be unusable, because this also affects disk I/O:
My system is running these versions:
My hardware is: