2 Replies Latest reply on Mar 3, 2017 3:58 AM by dipak

    clBuildProgram fails with SIGSEGV in child process

    haahh

      Hi,

       

      When I use fork() in my C++ program, and later in the child process I try to build OpenCL program clBuildProgram fails with SIGSEGV (Segmentation fault). It happens when I use Fiji, when I use Tonga or CPU device (Intel) it does not fail. I don't use OpenCL in parent process.

       

      I've succeeded to reproduce this problem in various OpenCL examples, in attachment you can find one of them.  Use

      c++ test.c -lOpenCL -DUSE_FORK
      

      to compile with fork(), and

      c++ test.c -lOpenCL
      

      to compile without fork() operation.

       

      Info:

      Ubuntu 14.04.5 LTS

      Driver version: 1912.5 (VM)

      Version: OpenCL 2.0 AMD-APP (1912.5)

      AMD APP SDK 3.0