Bug#1055601: darktable: Segfault in first run after system hang

2023-11-08 Thread David Bremner
Control: tag -1 wontfix

Greg Schmidt  writes:

> Package: darktable
> Version: 4.4.2-1+b1
> Severity: normal
> X-Debbugs-Cc: g...@desk1.attlocal.net
>
> Dear Maintainer,
>
> I was using darktable when my system hung. I had to reboot to recover. After 
> the reboot I started darktable and 
> it segfaulted. A backtrace was created which implicated dlopen. It was 
> attempting to load "libMesaOpenCL.so.1".
> A subsequent start of darktable was normal. 

Hi Greg;

This looks OpenCL related. I don't have a working OpenCL setup, so I
can't help you there (even if the problem was reproducible). If you find
a way to reproduce it, feel free to report a bug to upstream darktable
on github including the output of darktable -d common.



Bug#1055601: darktable: Segfault in first run after system hang

2023-11-08 Thread Greg Schmidt
Package: darktable
Version: 4.4.2-1+b1
Severity: normal
X-Debbugs-Cc: g...@desk1.attlocal.net

Dear Maintainer,

I was using darktable when my system hung. I had to reboot to recover. After 
the reboot I started darktable and 
it segfaulted. A backtrace was created which implicated dlopen. It was 
attempting to load "libMesaOpenCL.so.1".
A subsequent start of darktable was normal. 

Content of /tmp/darktable_bt_T7K9D2.txt follows:

this is darktable 4.4.2 reporting a segfault:

warning: Currently logging to /tmp/darktable_bt_T7K9D2.txt.  Turn the logging 
off and on to make the new setting effective.
#0  0x7f83a54f11b7 in __GI___wait4 (pid=5442, stat_loc=0x0, options=0, 
usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x7f83a57a28d0 in  () at 
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so
#2  0x7f83a545a510 in  () at 
/lib/x86_64-linux-gnu/libc.so.6
#3  0x7f833fd6bd52 in LLVMCreateTargetMachine () at 
/lib/x86_64-linux-gnu/libLLVM-15.so.1
#4  0x7f8351455e0e in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#5  0x7f83514561c5 in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#6  0x7f83513654eb in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#7  0x7f8351365943 in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#8  0x7f8395331720 in amdgpu_winsys_create () at 
/usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#9  0x7f8351366616 in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#10 0x7f835123b50a in  () at 
/usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so
#11 0x7f8351eb4fa8 in  () at /lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#12 0x7f8351ea0bd8 in  () at /lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#13 0x7f8351eafae2 in  () at /lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#14 0x7f8351e737d9 in  () at /lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#15 0x7f83a5dfad2e in call_init (env=0x5568250ba0e0, argv=0x7ffd910bebe8, 
argc=7, l=) at ./elf/dl-init.c:90
#16 call_init (l=, argc=7, argv=0x7ffd910bebe8, 
env=0x5568250ba0e0) at ./elf/dl-init.c:27
#17 0x7f83a5dfae14 in _dl_init (main_map=0x556825573a60, argc=7, 
argv=0x7ffd910bebe8, env=0x5568250ba0e0) at ./elf/dl-init.c:137
#18 0x7f83a5df7516 in __GI__dl_catch_exception 
(exception=exception@entry=0x0, operate=operate@entry=0x7f83a5e01570 
, args=args@entry=0x7ffd910ba280) at ./elf/dl-catch.c:211
#19 0x7f83a5e0150e in dl_open_worker (a=a@entry=0x7ffd910ba420) at 
./elf/dl-open.c:808
#20 0x7f83a5df7489 in __GI__dl_catch_exception 
(exception=exception@entry=0x7ffd910ba400, operate=operate@entry=0x7f83a5e01480 
, args=args@entry=0x7ffd910ba420) at ./elf/dl-catch.c:237
#21 0x7f83a5e018a8 in _dl_open (file=0x556825096160 "libMesaOpenCL.so.1", 
mode=, caller_dlopen=0x7f839c0238bd, nsid=, 
argc=7, argv=0x7ffd910bebe8, env=0x5568250ba0e0) at ./elf/dl-open.c:884
#22 0x7f83a54a26f8 in dlopen_doit (a=a@entry=0x7ffd910ba690) at 
./dlfcn/dlopen.c:56
#23 0x7f83a5df7489 in __GI__dl_catch_exception 
(exception=exception@entry=0x7ffd910ba5f0, operate=0x7f83a54a26a0 
, args=0x7ffd910ba690) at ./elf/dl-catch.c:237
#24 0x7f83a5df75af in _dl_catch_error (objname=0x7ffd910ba648, 
errstring=0x7ffd910ba650, mallocedp=0x7ffd910ba647, operate=, 
args=) at ./elf/dl-catch.c:256
#25 0x7f83a54a21e7 in _dlerror_run (operate=operate@entry=0x7f83a54a26a0 
, args=args@entry=0x7ffd910ba690) at ./dlfcn/dlerror.c:138
#26 0x7f83a54a27a9 in dlopen_implementation (dl_caller=, 
mode=, file=) at ./dlfcn/dlopen.c:71
#27 ___dlopen (file=, mode=) at 
./dlfcn/dlopen.c:81
#28 0x7f839c0238bd in  () at /lib/x86_64-linux-gnu/libOpenCL.so.1
#29 0x7f839c023aa3 in  () at /lib/x86_64-linux-gnu/libOpenCL.so.1
#30 0x7f839c0249e3 in clGetPlatformIDs () at 
/lib/x86_64-linux-gnu/libOpenCL.so.1
#31 0x7f83a578aabb in dt_opencl_init () at 
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so
#32 0x7f83a56efbf3 in dt_init () at 
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so
#33 0x556823a7a08c in  ()
#34 0x7f83a54456ca in __libc_start_call_main 
(main=main@entry=0x556823a7a070, argc=argc@entry=7, 
argv=argv@entry=0x7ffd910bebe8) at ../sysdeps/nptl/libc_start_call_main.h:58
#35 0x7f83a5445785 in __libc_start_main_impl (main=0x556823a7a070, argc=7, 
argv=0x7ffd910bebe8, init=, fini=, 
rtld_fini=, stack_end=0x7ffd910bebd8) at ../csu/libc-start.c:360
#36 0x556823a7a0f1 in  ()

=

  Id   Target Id Frame 
* 1Thread 0x7f839dc860c0 (LWP 5423) "darktable"  0x7f83a54f11b7 in 
__GI___wait4 (pid=5442, stat_loc=0x0, options=0, usage=0x0) at 
../sysdeps/unix/sysv/linux/wait4.c:30
  2Thread 0x7f839d7ff6c0 (LWP 5425) "pool-spawner"   syscall () at 
../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  3Thread 0x7f839cffe6c0 (LWP 5426) "gmain"  0x7f83a5519a1f in 
__GI___poll (fds=0x556825096e50, nfds=1, timeout=-1) at