sminterpolate icon indicating copy to clipboard operation
sminterpolate copied to clipboard

Segfault at end of execution when intel cpu is set as the opencl device

Open dthpham opened this issue 9 years ago • 2 comments

butterflow segfaults at the end of every call when the default device is an Intel CPU. I've seen this happen on Arch Linux and Debian.

OpenCL devices:
  Platform            : Intel(R) OpenCL
  Platform Vendor     : Intel(R) Corporation
  Platform Version    : OpenCL 1.2 LINUX
    Device            : Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
      Version         : OpenCL 1.2 (Build 8)
      Version         : 1.2.0.8
(gdb) bt
#0  0x00007ffff74cb2a8 in malloc_consolidate () from /usr/lib/libc.so.6
#1  0x00007ffff74cbf30 in _int_free () from /usr/lib/libc.so.6
#2  0x00007ffff74cc489 in free_check () from /usr/lib/libc.so.6
#3  0x00007ffff7ded0c7 in _dl_deallocate_tls () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff77fc5d6 in __free_stacks () from /usr/lib/libpthread.so.0
#5  0x00007ffff77fc72a in __deallocate_stack () from /usr/lib/libpthread.so.0
#6  0x00007ffff77fe58c in pthread_join () from /usr/lib/libpthread.so.0
#7  0x00007fffe6826a6d in ?? () from /usr/lib/libusb-1.0.so.0
#8  0x00007fffe68241dc in ?? () from /usr/lib/libusb-1.0.so.0
#9  0x00007fffe681d5c2 in libusb_exit () from /usr/lib/libusb-1.0.so.0
#10 0x00007fffed0abed1 in ?? () from /usr/lib/libdc1394.so.22
#11 0x00007fffed09a406 in dc1394_free () from /usr/lib/libdc1394.so.22
#12 0x00007ffff7489e78 in __run_exit_handlers () from /usr/lib/libc.so.6
#13 0x00007ffff7489ec5 in exit () from /usr/lib/libc.so.6
#14 0x00007ffff7474797 in __libc_start_main () from /usr/lib/libc.so.6
#15 0x000000000040073e in _start ()
(gdb) thread apply all bt

Thread 4 (Thread 0x7fffd35de700 (LWP 3511)):
#0  0x00007ffff7537939 in syscall () from /usr/lib/libc.so.6
#1  0x00007ffff36f61a2 in ?? () from /usr/lib/libtbb.so.2
#2  0x00007ffff36f61c9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007ffff77fd354 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007ffff753bbfd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffd2ddc700 (LWP 3513)):
#0  0x00007ffff7537939 in syscall () from /usr/lib/libc.so.6
#1  0x00007ffff36f61a2 in ?? () from /usr/lib/libtbb.so.2
#2  0x00007ffff36f61c9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007ffff77fd354 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007ffff753bbfd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffd31dd700 (LWP 3512)):
#0  0x00007ffff7537939 in syscall () from /usr/lib/libc.so.6
#1  0x00007ffff36f61a2 in ?? () from /usr/lib/libtbb.so.2
#2  0x00007ffff36f61c9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007ffff77fd354 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007ffff753bbfd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7fb7700 (LWP 3499)):
#0  0x00007ffff74cb2a8 in malloc_consolidate () from /usr/lib/libc.so.6
#1  0x00007ffff74cbf30 in _int_free () from /usr/lib/libc.so.6
#2  0x00007ffff74cc489 in free_check () from /usr/lib/libc.so.6
#3  0x00007ffff7ded0c7 in _dl_deallocate_tls () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff77fc5d6 in __free_stacks () from /usr/lib/libpthread.so.0
#5  0x00007ffff77fc72a in __deallocate_stack () from /usr/lib/libpthread.so.0
#6  0x00007ffff77fe58c in pthread_join () from /usr/lib/libpthread.so.0
#7  0x00007fffe6826a6d in ?? () from /usr/lib/libusb-1.0.so.0
#8  0x00007fffe68241dc in ?? () from /usr/lib/libusb-1.0.so.0
#9  0x00007fffe681d5c2 in libusb_exit () from /usr/lib/libusb-1.0.so.0
#10 0x00007fffed0abed1 in ?? () from /usr/lib/libdc1394.so.22
#11 0x00007fffed09a406 in dc1394_free () from /usr/lib/libdc1394.so.22
#12 0x00007ffff7489e78 in __run_exit_handlers () from /usr/lib/libc.so.6
#13 0x00007ffff7489ec5 in exit () from /usr/lib/libc.so.6
#14 0x00007ffff7474797 in __libc_start_main () from /usr/lib/libc.so.6
#15 0x000000000040073e in _start ()

dthpham avatar May 31 '15 00:05 dthpham

This was a bug that was fixed after updating the OpenCL library I was using.

dthpham avatar Sep 09 '15 04:09 dthpham

@dthpham which library version do you using, cause only suitable i found is libpocl1 and latest version on the debian 8 is 0.10-10. Trying to setup butterflow on GCE without GPU

Actually im trying to make this work for couple of WEEKS on ANY platform. Tried all versions of Ubuntu, Debian, CentOS since 2014!!!

Enelar avatar Feb 13 '18 00:02 Enelar