Project

General

Profile

Bug #10404

darktable segfault

Added by Alexander Miroshnichenko almost 5 years ago. Updated almost 5 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
General
Start date:
04/03/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
1.6.3
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Darktable crashes when start after glibc update

media-gfx/darktable-1.6.3
sys-libs/glibc-2.20-r2

darktable_bt_LMOJWX.txt (20.7 KB) darktable_bt_LMOJWX.txt crash dump Alexander Miroshnichenko, 04/03/2015 11:53 AM

Associated revisions

Revision 469dd592 (diff)
Added by Igor Kuzmin almost 5 years ago

fix bug #10404, error handling in dt_opencl_init is a mess

Revision 247424e9 (diff)
Added by Igor Kuzmin almost 5 years ago

fix bug #10404, error handling in dt_opencl_init is a mess

(cherry picked from commit 469dd5922d356dc7b27bf5fb2821e41382d2f837)

History

#1 Updated by Pascal de Bruijn almost 5 years ago

Can you still reproduce after rebuilding darktable against the new glibc?

#2 Updated by Alexander Miroshnichenko almost 5 years ago

Yes.
I'm tried versions of darktable 1.6.2 and 1.6.3. They crashes with segfault.

#3 Updated by Pascal de Bruijn almost 5 years ago

Can you try running 'darktable-cltest' and 'darktable -d opencl' and paste the output of both?

#4 Updated by Alexander Miroshnichenko almost 5 years ago

$ darktable-cltest
[opencl_init] opencl related configuration options:
[opencl_init]
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 512
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_omit_whitebalance: 0
[opencl_init]
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] could not get device id size: -1
[opencl_init] could not get devices list: -30
[opencl_init] found -613457088 devices

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 9165]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f7bdba52919 in __libc_waitpid (pid=pid@entry=9174, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
backtrace written to /tmp/darktable_bt_8NNIWX.txt
Segmentation fault (core dumped)

$ darktable -d opencl
[opencl_init] opencl related configuration options:
[opencl_init]
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 512
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_omit_whitebalance: 0
[opencl_init]
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] could not get device id size: -1
[opencl_init] could not get devices list: -30
[opencl_init] found -2132131008 devices

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 9214]
[New LWP 9213]
[New LWP 9212]
[New LWP 9211]
[New LWP 9210]
[New LWP 9209]
[New LWP 9208]
[New LWP 9207]
[New LWP 9206]
[New LWP 9205]
[New LWP 9204]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007fc981200919 in __libc_waitpid (pid=pid@entry=9223, stat_loc=stat_loc@entry=0x0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
backtrace written to /tmp/darktable_bt_LUUEWX.txt
Segmentation fault (core dumped)

#5 Updated by Pascal de Bruijn almost 5 years ago

What OpenCL implementation do you have installed, because the output looks rather strange?

#6 Updated by Alexander Miroshnichenko almost 5 years ago

Pascal de Bruijn wrote:

What OpenCL implementation do you have installed, because the output looks rather strange?

I have intel GPU and it have OpenCL on CPU

  1. eselect opencl list
    Available OpenCL implementations:
    [1] mesa *

media-libs/mesa-10.5.2
x11-drivers/xf86-video-intel-2.99.917

#7 Updated by Pascal de Bruijn almost 5 years ago

Aside from the fact that the CPU OpenCL implementation looks broken (as we filter CPU implementations, and this one doesn't seem to report it is a CPU implementation), even if it wasn't it would slow Darktable down.

We're working on a fix, that would at least fix darktable from crashing.

#8 Updated by Alexander Miroshnichenko almost 5 years ago

I can confirm no segfault darktable with latest commits:

I test this version:

repository:               git://github.com/darktable-org/darktable.git
at the commit: d7ca6b946bc8dfee05f6aa5eddad20db4761a7bc

#9 Updated by Pascal de Bruijn almost 5 years ago

  • % Done changed from 0 to 100
  • Target version set to Candidate for next patch release
  • Status changed from New to Fixed

Thanks for testing.

The relevant fixes have been ported to 1.6.4 which will be released very very soon.

Also available in: Atom PDF

Go to top