Re: Blender crash with packaged ROCm 5.2.3 drivers
On 2022-11-08 03:59, Cordell Bloor wrote:
I wish we had debug symbols for these libraries.
I rebuilt the Debian packages with nostrip. For most of them that was
sufficient to get debug symbols, but libamdhip64.so still didn't have
them. I had to build rocm-hipamd in Debug mode for that.
Here is the full stack trace of the crash I encountered when choosing
Edit -> Preferences -> System -> Cycles Render Devices -> HIP:
[New Thread 0x7fff9d5ff6c0 (LWP 46738)]
mesa: CommandLine Error: Option 'h' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Thread 1 "blender" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007ffff22a9d2f in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x00007ffff225aef2 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff2245472 in __GI_abort () at ./stdlib/abort.c:79
#4 0x00007fffc308bc2b in llvm::report_fatal_error(llvm::Twine const&,
bool) () from /lib/x86_64-linux-gnu/libLLVM-15.so.1
#5 0x00007fffc308ba76 in llvm::report_fatal_error(char const*, bool) ()
from /lib/x86_64-linux-gnu/libLLVM-15.so.1
#6 0x00007fffc307334e in ?? () from /lib/x86_64-linux-gnu/libLLVM-15.so.1
#7 0x00007fffc3064cbb in llvm::cl::Option::addArgument() () from
/lib/x86_64-linux-gnu/libLLVM-15.so.1
#8 0x00007ffe993fb76e in llvm::cl::alias::done (this=<optimized out>)
at /usr/lib/llvm-15/include/llvm/Support/CommandLine.h:1875
#9 0x00007ffe993fd831 in llvm::cl::alias::alias<char [2],
llvm::cl::desc, llvm::cl::aliasopt> (this=0x7ffe9ca1fa60
<SectionHeadersShorter>)
at /usr/lib/llvm-15/include/llvm/Support/CommandLine.h:1893
#10 0x00007ffe993ba294 in __static_initialization_and_destruction_0
(__priority=65535, __initialize_p=1) at
./lib/comgr/src/comgr-objdump.cpp:180
#11 0x00007ffff7fcfabe in call_init (env=0x7fffffffe098,
argv=0x7fffffffe088, argc=1, l=<optimized out>) at ./elf/dl-init.c:70
#12 call_init (l=<optimized out>, argc=1, argv=0x7fffffffe088,
env=0x7fffffffe098) at ./elf/dl-init.c:26
#13 0x00007ffff7fcfba4 in _dl_init (main_map=0x7fffa5812f00, argc=1,
argv=0x7fffffffe088, env=0x7fffffffe098) at ./elf/dl-init.c:117
#14 0x00007ffff236de94 in __GI__dl_catch_exception (exception=<optimized
out>, operate=<optimized out>, args=<optimized out>) at
./elf/dl-error-skeleton.c:182
#15 0x00007ffff7fd630e in dl_open_worker (a=a@entry=0x7fffffffc450) at
./elf/dl-open.c:808
#16 0x00007ffff236de3a in __GI__dl_catch_exception (exception=<optimized
out>, operate=<optimized out>, args=<optimized out>) at
./elf/dl-error-skeleton.c:208
#17 0x00007ffff7fd66a8 in _dl_open (file=0x7fff9d9651d1
"libamd_comgr.so.2", mode=<optimized out>, caller_dlopen=0x7fff9d8d7427
<amd::Os::loadLibrary(char const*)+167>,
nsid=<optimized out>, argc=1, argv=0x7fffffffe088,
env=0x7fffffffe098) at ./elf/dl-open.c:884
#18 0x00007ffff22a42d8 in dlopen_doit (a=a@entry=0x7fffffffc6c0) at
./dlfcn/dlopen.c:56
#19 0x00007ffff236de3a in __GI__dl_catch_exception
(exception=exception@entry=0x7fffffffc620, operate=<optimized out>,
args=<optimized out>) at ./elf/dl-error-skeleton.c:208
#20 0x00007ffff236deef in __GI__dl_catch_error (objname=0x7fffffffc678,
errstring=0x7fffffffc680, mallocedp=0x7fffffffc677, operate=<optimized
out>, args=<optimized out>)
at ./elf/dl-error-skeleton.c:227
#21 0x00007ffff22a3dc7 in _dlerror_run
(operate=operate@entry=0x7ffff22a4280 <dlopen_doit>,
args=args@entry=0x7fffffffc6c0) at ./dlfcn/dlerror.c:138
#22 0x00007ffff22a4389 in dlopen_implementation (dl_caller=<optimized
out>, mode=<optimized out>, file=<optimized out>) at ./dlfcn/dlopen.c:71
#23 ___dlopen (file=<optimized out>, mode=<optimized out>) at
./dlfcn/dlopen.c:81
#24 0x00007fff9d8d7427 in amd::Os::loadLibrary
(libraryname=libraryname@entry=0x7fff9d9651d1 "libamd_comgr.so.2") at
./clr/os/os.cpp:76
#25 0x00007fff9d8aeea1 in amd::Comgr::LoadLib () at
./clr/device/comgrctx.cpp:37
#26 0x00007ffff22ace37 in __pthread_once_slow
(once_control=0x7fff9e347998 <amd::Comgr::initialized>,
init_routine=0x7ffff20d3200 <__once_proxy>) at ./nptl/pthread_once.c:116
#27 0x00007fff9d8b2309 in __gthread_once (__func=<optimized out>,
__once=<optimized out>) at
/usr/include/x86_64-linux-gnu/c++/12/bits/gthr-default.h:700
#28 std::call_once<bool (&)()> (__f=<optimized out>, __once=...) at
/usr/include/c++/12/mutex:859
#29 amd::Device::ValidateComgr (this=this@entry=0x7fffba297000) at
./clr/device/device.cpp:493
#30 0x00007fff9d9021f5 in roc::Device::create (this=0x7fffba297000) at
./clr/device/rocm/rocdevice.cpp:628
#31 0x00007fff9d902d69 in roc::Device::init () at
./clr/device/rocm/rocdevice.cpp:479
#32 0x00007fff9d8b1e00 in amd::Device::init () at
./clr/device/device.cpp:414
#33 0x00007fff9d8f3bde in amd::Runtime::init () at
./clr/platform/runtime.cpp:75
#34 0x00007fff9d6ada2c in hip::init () at ./src/hip_context.cpp:47
#35 0x00007fff9d6ae545 in hipInit (flags=0) at ./src/hip_context.cpp:147
Reply to: