- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This demonstrates a segmentation fault experienced upon calling clBuildProgram() when this particular OpenCL program is compiled with the "-g" build option.
My setup: Ubuntu 13.04, Intel OpenCL intel/opencl-1.2-3.0.67279
Execution is on CPU device: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
Build Command:
[bash]g++ -o ./debug_symbols_seg_fault -g debug_symbols_seg_fault.cpp bugDemoSupport.cpp -I $OCL_INC_DIR -L $OCL_LIB_DIR -lOpenCL [/bash]
Run Command:
[bash]./debug_symbols_seg_fault [/bash]
Or, if you need to supply a different OpenCL platform index or device index, see [bash]./debug_symbols_seg_fault -h [/bash]
I see a segmentation fault upon call to clBuildProgram().
If you edit debug_symbols_seg_fault.cpp line 51 to remove the "-g" debug symbols flag from the buildOptions string, recompile, then re-run, the segmantion fault does not occur.
I tried a much smaller kernel but it did not reproduce this bug. The attached full OpenCL program does work correctly in the context of a larger program on AMD and Apple OpenCL implementations.
Any suggestions? I'd like to resolve this so that I can use the Intel debugging toolset.
Sidenote: Wow. Your forum does not accept files with .cl extension?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reproducer. We'll take a look and get back to you.
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Were you able to reproduce this bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has there been any progress on fixing this bug? The effect for me is I can't develop on the Intel OpenCL platform, because I can't troubleshoot my complex kernels using gdb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page