Project

General

Profile

Bug #12633

darktable hanged during close action

Added by Germano Massullo 6 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
03/17/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
git stable branch
System:
Fedora/RHEL
bitness:
64-bit
hardware architecture:
amd64/x86

Description

darktable 2.6.1 hanged during close action. Hereunder I attach GDB backtrace

0x00007fa17174cacd in GI_pthread_timedjoin_ex (threadid=140330942854912, thread_return=thread_return@entry=0x0, abstime=abstime@entry=0x0, block=block@entry=true)
at pthread_join_common.c:89
89 lll_wait_tid (pd->tid);
(gdb) set height 0
(gdb) set print elements 0
(gdb) set print frame-arguments all
(gdb) thread apply all backtrace

Thread 15 (Thread 0x7fa0dbf57700 (LWP 7796)):
#0 futex_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x7fa130058ee0, state=1432) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x7fa130058ee0) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fa0f6d7f700 (LWP 7795)):
#0 futex_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x7fa130058ee0, state=1432) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x7fa130058ee0) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fa15fff1700 (LWP 7794)):
#0 futex_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=1432, addr=0x7fa130058ee4) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x7fa130058ee0, state=1432) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x7fa130058ee0) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fa0e7fff700 (LWP 7494)):
#0 0x00007fa17166f421 in GI_poll (fds=0x560ef4be5540, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fa1712f63a6 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x560ef4be5540, timeout=<optimized out>, context=0x560ef4debb30) at gmain.c:4221
#2 g_main_context_iterate (context=context@entry=0x560ef4debb30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3915
#3 0x00007fa1712f64d0 in g_main_context_iteration (context=context@entry=0x560ef4debb30, may_block=may_block@entry=1) at gmain.c:3981
#4 0x00007fa1102dfc7d in dconf_gdbus_worker_thread (user_data=0x560ef4debb30) at ../gdbus/dconf-gdbus-thread.c:82
#5 0x00007fa17131f2aa in g_thread_proxy (data=0x560ef4cb5000) at gthread.c:784
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fa0e5fff700 (LWP 7489)):
#0 futex_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x560ef4c4b270, state=217968) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x560ef4c4b270) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fa0f4d84700 (LWP 7488)):
#0 futex_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x560ef4c4b270, state=217968) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x560ef4c4b270) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fa0f5585700 (LWP 7487)):
#0 futex_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/x86/futex.h:44
#1 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:67
#2 do_wait (val=217968, addr=0x560ef4c4b274) at ../../../libgomp/config/linux/wait.h:64
#3 gomp_barrier_wait_end (bar=0x560ef4c4b270, state=217968) at ../../../libgomp/config/linux/bar.c:48
#4 0x00007fa1713de448 in gomp_simple_barrier_wait (bar=0x560ef4c4b270) at ../../../libgomp/config/posix/simple-bar.h:60
#5 gomp_thread_start (xdata=<optimized out>) at ../../../libgomp/team.c:124
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fa1192b0700 (LWP 7479)):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fa1192a16a0, expected=0, futex_word=0x7fa127015b68 <scheduler+168>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x7fa1192a16a0, mutex=0x7fa127015b80 <scheduler+192>, cond=0x7fa127015b40 <scheduler+128>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=cond@entry=0x7fa127015b40 <scheduler+128>, mutex=mutex@entry=0x7fa127015b80 <scheduler+192>, abstime=abstime@entry=0x7fa1192a16a0)
at pthread_cond_wait.c:667
#3 0x00007fa126fa4783 in pthread_scheduler_sleep (td=0x560ef366df40) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:293
#4 pocl_pthread_driver_thread (p=0x560ef366df40) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:564
#5 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fa118aaf700 (LWP 7478)):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fa118aa06a0, expected=0, futex_word=0x7fa127015b68 <scheduler+168>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x7fa118aa06a0, mutex=0x7fa127015b80 <scheduler+192>, cond=0x7fa127015b40 <scheduler+128>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=cond@entry=0x7fa127015b40 <scheduler+128>, mutex=mutex@entry=0x7fa127015b80 <scheduler+192>, abstime=abstime@entry=0x7fa118aa06a0)
at pthread_cond_wait.c:667
#3 0x00007fa126fa4783 in pthread_scheduler_sleep (td=0x560ef366de80) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:293
#4 pocl_pthread_driver_thread (p=0x560ef366de80) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:564
#5 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fa113fff700 (LWP 7477)):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fa113ff06a0, expected=0, futex_word=0x7fa127015b68 <scheduler+168>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x7fa113ff06a0, mutex=0x7fa127015b80 <scheduler+192>, cond=0x7fa127015b40 <scheduler+128>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=cond@entry=0x7fa127015b40 <scheduler+128>, mutex=mutex@entry=0x7fa127015b80 <scheduler+192>, abstime=abstime@entry=0x7fa113ff06a0)
at pthread_cond_wait.c:667
#3 0x00007fa126fa4783 in pthread_scheduler_sleep (td=0x560ef366ddc0) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:293
#4 pocl_pthread_driver_thread (p=0x560ef366ddc0) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:564
#5 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fa1137fe700 (LWP 7476)):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fa1137ef6a0, expected=0, futex_word=0x7fa127015b68 <scheduler+168>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x7fa1137ef6a0, mutex=0x7fa127015b80 <scheduler+192>, cond=0x7fa127015b40 <scheduler+128>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=cond@entry=0x7fa127015b40 <scheduler+128>, mutex=mutex@entry=0x7fa127015b80 <scheduler+192>, abstime=abstime@entry=0x7fa1137ef6a0)
at pthread_cond_wait.c:667
#3 0x00007fa126fa4783 in pthread_scheduler_sleep (td=0x560ef366dd00) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:293
#4 pocl_pthread_driver_thread (p=0x560ef366dd00) at /usr/src/debug/pocl-1.2-1.fc29.x86_64/lib/CL/devices/pthread/pthread_scheduler.c:564
#5 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa157fff700 (LWP 7466)):
#0 0x00007fa1717554c0 in GI_nanosleep (requested_time=requested_time@entry=0x7fa157feccf0, remaining=remaining@entry=0x7fa157fecd00)
at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1 0x00007fa1713209d7 in g_usleep (microseconds=microseconds@entry=5) at gtimer.c:261
#2 0x00007fa1717f7178 in dt_cache_get_with_caller (cache=0x560ef3fc1570, key=key@entry=47, mode=mode@entry=114 'r',
file=file@entry=0x7fa171a04518 "/builddir/build/BUILD/darktable-2.6.1/src/common/image_cache.c", line=line@entry=182)
at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/cache.c:176
#3 0x00007fa171840671 in dt_image_cache_get (cache=<optimized out>, imgid=imgid@entry=47, mode=mode@entry=114 'r')
at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/image_cache.c:182
#4 0x00007fa1718b3775 in _dt_dev_load_raw (imgid=47, dev=0x7fa157fed6e0) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/develop/develop.c:448
#5 dt_dev_load_image (dev=dev@entry=0x7fa157fed6e0, imgid=47) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/develop/develop.c:494
#6 0x00007fa1718450f1 in dt_imageio_export_with_flags (imgid=<optimized out>, imgid@entry=47, filename=filename@entry=0x7fa171a06885 "unused",
format=format@entry=0x7fa157fef0e0, format_params=format_params@entry=0x7fa157feefe0, ignore_exif=ignore_exif@entry=1, display_byteorder=display_byteorder@entry=0,
high_quality=0, upscale=0, thumbnail_export=1, filter=0x0, copy_metadata=0, icc_type=DT_COLORSPACE_NONE, icc_filename=0x0, icc_intent=DT_INTENT_LAST, storage=0x0,
storage_params=0x0, num=1, total=1) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/imageio.c:593
#7 0x00007fa171863f8a in _init_8 (size=DT_MIPMAP_0, imgid=47, color_space=0x20, iscale=0x7fa1300d3978, height=0x7fa1300d3974, width=0x7fa1300d3970,
buf=0x7fa1300d3990 "") at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/mipmap_cache.c:1221
#8 dt_mipmap_cache_get_with_caller (cache=0x560ef3fc1640, buf=buf@entry=0x7fa157ff0650, imgid=47, mip=DT_MIPMAP_0, flags=flags@entry=DT_MIPMAP_BLOCKING,
mode=mode@entry=114 'r', file=0x7fa171a10240 "/builddir/build/BUILD/darktable-2.6.1/src/control/jobs/image_jobs.c", line=35)
at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/mipmap_cache.c:801
#9 0x00007fa17188ee98 in dt_image_load_job_run (job=<optimized out>) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/control/jobs/image_jobs.c:35
#10 0x00007fa17188706d in dt_control_job_execute (job=job@entry=0x560ef4de2c00) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/control/jobs.c:304
#11 0x00007fa171887b68 in dt_control_run_job (control=0x560ef340a980) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/control/jobs.c:323
#12 dt_control_work (ptr=<optimized out>) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/control/jobs.c:568
#13 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#14 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa15f7f0700 (LWP 7460)):
#0 0x00007fa17166f421 in GI_poll (fds=0x560ef33e5ec0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fa1712f63a6 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x560ef33e5ec0, timeout=<optimized out>, context=0x560ef3427ab0) at gmain.c:4221
#2 g_main_context_iterate (context=0x560ef3427ab0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3915
#3 0x00007fa1712f6762 in g_main_loop_run (loop=0x560ef33e5d40) at gmain.c:4116
#4 0x00007fa1707d010a in gdbus_shared_thread_func (user_data=0x560ef3427a80) at gdbusprivate.c:275
#5 0x00007fa17131f2aa in g_thread_proxy (data=0x560ef34108f0) at gthread.c:784
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa1607f2700 (LWP 7458)):
#0 0x00007fa17166f421 in GI_poll (fds=0x560ef33d9490, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fa1712f63a6 in g_main_context_poll (priority=<optimized out>, n_fds=2, fds=0x560ef33d9490, timeout=<optimized out>, context=0x560ef34103b0) at gmain.c:4221
#2 g_main_context_iterate (context=context@entry=0x560ef34103b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3915
#3 0x00007fa1712f64d0 in g_main_context_iteration (context=0x560ef34103b0, may_block=may_block@entry=1) at gmain.c:3981
#4 0x00007fa1712f6521 in glib_worker_main (data=<optimized out>) at gmain.c:5861
#5 0x00007fa17131f2aa in g_thread_proxy (data=0x560ef3410800) at gthread.c:784
#6 0x00007fa17174b58e in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007fa17167a6a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa16d7adec0 (LWP 7456)):
#0 0x00007fa17174cacd in GI_pthread_timedjoin_ex (threadid=140330942854912, thread_return=thread_return@entry=0x0, abstime=abstime@entry=0x0,
block=block@entry=true) at pthread_join_common.c:89
#1 0x00007fa17174c8e0 in __pthread_join (threadid=<optimized out>, thread_return=thread_return@entry=0x0) at pthread_join.c:24
#2 0x00007fa171882f46 in dt_control_shutdown (s=0x560ef340a980) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/control/control.c:160
#3 0x00007fa17180f033 in dt_cleanup () at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/common/darktable.c:1058
#4 0x00007fa17191b7a5 in dt_gui_gtk_run (gui=<optimized out>) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/gui/gtk.c:1261
#5 0x0000560ef2d320e6 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/darktable-2.6.1-1.fc29.x86_64/src/main.c:83

Also available in: Atom PDF

Go to top