Project

General

Profile

Bug #10842

Segfault on startup - OpenCL

Added by Rovanion Luckey over 4 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
12/31/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0.0
System:
Ubuntu
bitness:
32-bit
hardware architecture:
amd64/x86

Description

I just installed darktable freshly from the stable Ubuntu PPA:s. I'm running 32-bit Ubuntu 14.04. This is the output of running gdb on it:

(gdb) start
Temporary breakpoint 1 at 0x80485f9: file /build/darktable-ussF9c/darktable-2.0.0/src/main.c, line 24.
Starting program: /usr/bin/darktable 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'

Temporary breakpoint 1, main (argc=1, argv=0xbffff6d4)
    at /build/darktable-ussF9c/darktable-2.0.0/src/main.c:24
24    /build/darktable-ussF9c/darktable-2.0.0/src/main.c: Filen eller katalogen finns inte.
(gdb) continue
Continuing.
WARNING: either your user id or the effective user id are 0. are you running darktable as root?
[defaults] found a 32-bit system with 4009824 kb ram and 4 cores (0 atom based)
[defaults] setting very conservative defaults
[New Thread 0xb559bb40 (LWP 22149)]
[New Thread 0xb4d9ab40 (LWP 22150)]
[New Thread 0xb43ffb40 (LWP 22151)]
[New Thread 0xb3bfeb40 (LWP 22152)]
[New Thread 0xb1506b40 (LWP 22153)]
[New Thread 0xafeffb40 (LWP 22154)]
[New Thread 0xaf6feb40 (LWP 22155)]
[New Thread 0xaeefdb40 (LWP 22156)]
[New Thread 0xae6fcb40 (LWP 22157)]
[New Thread 0xadefbb40 (LWP 22158)]

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50
50    ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Filen eller katalogen finns inte.
(gdb) continue
Continuing.
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
warning: process 22145 is already traced by process 22143
ptrace: Operationen inte tillåten.
/home/rovanion/22145: Filen eller katalogen finns inte.
backtrace written to /tmp/darktable_bt_DDNRAY.txt

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) continue
Continuing.
[Thread 0xb4d9ab40 (LWP 22150) exited]
[Thread 0xb559bb40 (LWP 22149) exited]
[Thread 0xb590f900 (LWP 22145) exited]
[Thread 0xae6fcb40 (LWP 22157) exited]
[Thread 0xaeefdb40 (LWP 22156) exited]
[Thread 0xaf6feb40 (LWP 22155) exited]
[Thread 0xafeffb40 (LWP 22154) exited]
[Thread 0xb1506b40 (LWP 22153) exited]
[Thread 0xb3bfeb40 (LWP 22152) exited]
[Thread 0xb43ffb40 (LWP 22151) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) quit

This is what is written to the log, albeit two different runs:

this is darktable 2.0.0 reporting a segfault:

#0  0xb7778428 in __kernel_vsyscall ()
#1  0xb7495cdb in waitpid () at ../sysdeps/unix/syscall-template.S:81
#2  0xb7530230 in _dt_sigsegv_handler (param=11) at /build/darktable-ussF9c/darktable-2.0.0/src/common/darktable.c:187
#3  <signal handler called>
#4  __strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50
#5  0xb1d0e4c8 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
#6  0xb2d049de in clGetProgramBuildInfo () from /usr/lib/i386-linux-gnu/libOpenCL.so
#7  0xb758f062 in dt_opencl_build_program (dev=dev@entry=0, prog=0, binname=binname@entry=0xbfb2645c "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M/demosaic_ppg.cl.bin", cachedir=cachedir@entry=0xbfb2345c "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M", md5sum=md5sum@entry=0xbfb2092f "a54307a617593611e9e9c6d34f60e18d", loaded_cached=0, kerneldir=kerneldir@entry=0xbfb2745c "/usr/share/darktable/kernels") at /build/darktable-ussF9c/darktable-2.0.0/src/common/opencl.c:1277
#8  0xb7595353 in dt_opencl_init (cl=0x9ba6988, exclude_opencl=exclude_opencl@entry=0) at /build/darktable-ussF9c/darktable-2.0.0/src/common/opencl.c:448
#9  0xb75325f6 in dt_init (argc=argc@entry=1, argv=argv@entry=0xbfb2ca84, init_gui=init_gui@entry=1, L=L@entry=0x0) at /build/darktable-ussF9c/darktable-2.0.0/src/common/darktable.c:868
#10 0x0804861b in main (argc=1, argv=0xbfb2ca84) at /build/darktable-ussF9c/darktable-2.0.0/src/main.c:24

Thread 11 (Thread 0xb4d36b40 (LWP 22328)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7491d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
No locals.
#2  0xb759ef74 in dt_control_work (ptr=0x9ba1038) at /build/darktable-ussF9c/darktable-2.0.0/src/control/jobs.c:530
        params = 0x9ba1038
        control = 0x9ba1e48
#3  0xb748df70 in start_thread (arg=0xb4d36b40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xb4d36b40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1261212864, 4001536, -1261215192, 185433917, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#4  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 10 (Thread 0xb4535b40 (LWP 22329)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb738d826 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
No locals.
#2  0xb738d5cd in __sleep (seconds=0, seconds@entry=2) at ../sysdeps/unix/sysv/linux/sleep.c:137
        ts = {tv_sec = 1, tv_nsec = 710836755}
        set = {__val = {65536, 0 <repeats 31 times>}}
        oset = {__val = {0, 0, 3037393008, 5, 0, 1, 3078060344, 0, 0, 0, 0, 0, 0, 0, 0, 3025359108, 3025358968, 3025358960, 3075359170, 3078060344, 0, 0, 0, 4294967295, 0, 3073259960, 3074973696, 0, 0, 0, 0, 0}}
        result = <optimized out>
#3  0xb759dd4c in dt_control_worker_kicker (ptr=0x9ba1e48) at /build/darktable-ussF9c/darktable-2.0.0/src/control/jobs.c:505
        control = 0x9ba1e48
#4  0xb748df70 in start_thread (arg=0xb4535b40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xb4535b40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1269605568, 4001536, -1269607896, 191725372, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#5  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 9 (Thread 0xb3d34b40 (LWP 22330)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7491d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
No locals.
#2  0xb759e0c0 in dt_control_work_res (ptr=0x9b49f38) at /build/darktable-ussF9c/darktable-2.0.0/src/control/jobs.c:492
        old = 0
        params = 0x9b49f38
        s = 0x9ba1e48
#3  0xb748df70 in start_thread (arg=0xb3d34b40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xb3d34b40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1277998272, 4001536, -1278000600, 189628211, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#4  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 8 (Thread 0xb3533b40 (LWP 22331)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7491d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
No locals.
#2  0xb759e0c0 in dt_control_work_res (ptr=0x9b3cfd0) at /build/darktable-ussF9c/darktable-2.0.0/src/control/jobs.c:492
        old = 0
        params = 0x9b3cfd0
        s = 0x9ba1e48
#3  0xb748df70 in start_thread (arg=0xb3533b40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xb3533b40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1286390976, 4001536, -1286393304, 195919666, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#4  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 7 (Thread 0xb0ddbb40 (LWP 22332)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb73b4c8b in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#2  0xb25b8148 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1e3df6b in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xb0ddbb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xb0ddbb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1327645888, 4001536, -1327648216, 380469045, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 6 (Thread 0xaf6ffb40 (LWP 22333)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7494135 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:79
No locals.
#2  0xb25b86e7 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1d1eb23 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xaf6ffb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xaf6ffb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1351615680, 4001536, -1351618008, 1915584266, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 5 (Thread 0xaeefeb40 (LWP 22334)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7494135 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:79
No locals.
#2  0xb25b86e7 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1d1eb23 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xaeefeb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xaeefeb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1360008384, 4001536, -1360010712, 1913487113, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 4 (Thread 0xae6fdb40 (LWP 22335)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7494135 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:79
No locals.
#2  0xb25b86e7 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1d1eb23 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xae6fdb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xae6fdb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1368401088, 4001536, -1368403416, 1919778568, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 3 (Thread 0xadefcb40 (LWP 22336)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7494135 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:79
No locals.
#2  0xb25b86e7 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1d1eb23 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xadefcb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xadefcb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1376793792, 4001536, -1376796120, 1917681423, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 2 (Thread 0xad6fbb40 (LWP 22337)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7494135 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:79
No locals.
#2  0xb25b86e7 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#3  0xb1d1eb23 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#4  0xb25b8901 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#5  0xb748df70 in start_thread (arg=0xad6fbb40) at pthread_create.c:312
        __res = <optimized out>
        pd = 0xad6fbb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219887104, -1385186496, 4001536, -1385188824, 1923972878, 1014096186}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread" 
#6  0xb73c3bee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.

Thread 1 (Thread 0xb50aa900 (LWP 22327)):
#0  0xb7778428 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7495cdb in waitpid () at ../sysdeps/unix/syscall-template.S:81
No locals.
#2  0xb7530230 in _dt_sigsegv_handler (param=11) at /build/darktable-ussF9c/darktable-2.0.0/src/common/darktable.c:187
        pid = 22338
        name_used = 0x9d5cc50 "/tmp/darktable_bt_F30WAY.txt" 
        fout = <optimized out>
        delete_file = 0
        datadir = "/usr/share/darktable", '\000' <repeats 4075 times>
        pid_arg = 0x9d5cf98 "22327" 
        comm_arg = 0x9d5cfa8 "/usr/share/darktable/gdb_commands" 
        log_arg = 0x9d5cfd0 "set logging on /tmp/darktable_bt_F30WAY.txt" 
#3  <signal handler called>
No symbol table info available.
#4  __strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50
No locals.
#5  0xb1d0e4c8 in ?? () from /usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
No symbol table info available.
#6  0xb2d049de in clGetProgramBuildInfo () from /usr/lib/i386-linux-gnu/libOpenCL.so
No symbol table info available.
#7  0xb758f062 in dt_opencl_build_program (dev=dev@entry=0, prog=0, binname=binname@entry=0xbfb2645c "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M/demosaic_ppg.cl.bin", cachedir=cachedir@entry=0xbfb2345c "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M", md5sum=md5sum@entry=0xbfb2092f "a54307a617593611e9e9c6d34f60e18d", loaded_cached=0, kerneldir=kerneldir@entry=0xbfb2745c "/usr/share/darktable/kernels") at /build/darktable-ussF9c/darktable-2.0.0/src/common/opencl.c:1277
        cl = 0x9ba6988
        program = <optimized out>
        err = -11
        options = "-cl-fast-relaxed-math -cl-strict-aliasing  -DNVIDIA_SM_20=1 -DNVIDIA=1 -I/usr/share/darktable/kernels", '\000' <repeats 922 times>
        build_status = -2
        build_log = <optimized out>
        ret_val_size = 0
#8  0xb7595353 in dt_opencl_init (cl=0x9ba6988, exclude_opencl=exclude_opencl@entry=0) at /build/darktable-ussF9c/darktable-2.0.0/src/common/opencl.c:448
        prog = <optimized out>
        rd = <optimized out>
        end = <optimized out>
        programname = 0x9d41de8 "demosaic_ppg.cl" 
        programnumber = <optimized out>
        tokens = <optimized out>
        confline_pattern = <optimized out>
        loaded_cached = 0
        md5sum = "a54307a617593611e9e9c6d34f60e18d" 
        infoint = 0
        infointtab = {0 <repeats 1024 times>}
        deviceversion = "OpenCL 1.1 CUDA", '\000' <repeats 240 times>
        devname = "NVS4200M", '\000' <repeats 1015 times>
        filename = "/usr/share/darktable/kernels/demosaic_ppg.cl", '\000' <repeats 4051 times>
        infostr = "NVS 4200M", '\000' <repeats 1014 times>
        vendor = "NVIDIA Corporation", '\000' <repeats 237 times>
        tdiff = <optimized out>
        len = <optimized out>
        vendor_id = 4318
        dtcache = "/home/rovanion/.cache/darktable", '\000' <repeats 4064 times>
        cachedir = "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M", '\000' <repeats 4036 times>
        j = <optimized out>
        confentry = "demosaic_ppg.cl          0\000h sign\000er. use int to ref it in the code.", '\000' <repeats 4027 times>
        binname = "/home/rovanion/.cache/darktable/cached_kernels_for_NVS4200M/demosaic_ppg.cl.bin", '\000' <repeats 4016 times>
        kerneldir = "/usr/share/darktable/kernels", '\000' <repeats 4067 times>
        type = 4
        image_support = 1
        device_available = 1
        devid = 0x9ba95e0
        driverversion = "340.96", '\000' <repeats 249 times>
        dtpath = "/usr/share/darktable", '\000' <repeats 4075 times>
        f = 0x9d5cc80
        k = <optimized out>
        locale = <optimized out>
        handles = <optimized out>
        opencl_memory_requirement = <optimized out>
        err = 0
        all_platforms = {0x9ba95b0, 0x0, 0x0, 0x0, 0x0}
        all_num_devices = {1, 0, 0, 0, 0}
        num_platforms = 1
        num_devices = <optimized out>
        devices = <optimized out>
        devs = <optimized out>
        dev = <optimized out>
#9  0xb75325f6 in dt_init (argc=argc@entry=1, argv=argv@entry=0xbfb2ca84, init_gui=init_gui@entry=1, L=L@entry=0x0) at /build/darktable-ussF9c/darktable-2.0.0/src/common/darktable.c:868
        dbfilename_from_command = <optimized out>
        noiseprofiles_from_command = <optimized out>
        datadir_from_command = <optimized out>
        moduledir_from_command = <optimized out>
        tmpdir_from_command = <optimized out>
        configdir_from_command = <optimized out>
        cachedir_from_command = <optimized out>
        exclude_opencl = <optimized out>
        lua_command = <optimized out>
        config_override = <optimized out>
        datadir = "/home/rovanion/.config/darktable", '\000' <repeats 4063 times>
        filename = "/home/rovanion/.config/darktable/darktablerc", '\000' <repeats 4051 times>
        changed_xmp_files = <optimized out>
        mode = <optimized out>
#10 0x0804861b in main (argc=1, argv=0xbfb2ca84) at /build/darktable-ussF9c/darktable-2.0.0/src/main.c:24
No locals.

History

#1 Updated by Rovanion Luckey over 4 years ago

Worth to mention is also that i did the following before installing from the release PPA:

apt-get purge darktable
rm -r ~/.config/darktable

#2 Updated by Roman Lebedev over 4 years ago

  • Subject changed from Segfault on startup to Segfault on startup - OpenCL

#3 Updated by Ulrich Pegelow over 4 years ago

Looks like an issue within the OpenCL driver. Segfault is caused by OpenCL routine clGetProgramBuildInfo() and there is probably not much we can do about it.

#4 Updated by Rovanion Luckey over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

Now that you mention it I had similar issues with an OpenCL programming lab not too long ago.

My Thinkpad T420s has two graphics cards, one integrated Intel card and a Nvidia Quadro NVS 4200M. It turns out that, for some reason, running darktable with optirun once (probably because it compiles the OpenCL kernels and caches them) solves the problem. What's even stranger is that darktable runs fine without prefixing the command with optirun after that first run.

The segfault is gone, but feel free to think about what can cause this.

#5 Updated by Roman Lebedev over 3 years ago

  • Target version set to 2.2.0

Also available in: Atom PDF

Go to top