cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

haahh
Adept II

clBuildProgram fails with SIGSEGV in child process

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

0 Likes
2 Replies
dipak
Big Boss

Hi,

Thanks for reporting it. We'll check and get back to you.

Regards,

0 Likes

Update:

A ticket has been raised against this issue. I'll get back to you once I've any further update about it.

Regards,

0 Likes