<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic clBuildProgram segmentation fault when -g build option specified in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979810#M2525</link>
    <description>&lt;P&gt;This demonstrates a segmentation fault experienced upon calling clBuildProgram() when this particular OpenCL program is compiled with the "-g" build option.&lt;BR /&gt;&lt;BR /&gt;My setup:&amp;nbsp; Ubuntu 13.04, Intel OpenCL intel/opencl-1.2-3.0.67279&lt;BR /&gt;Execution is on CPU device: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Build Command:&lt;BR /&gt;[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]&lt;BR /&gt;&lt;BR /&gt;Run Command:&lt;BR /&gt;[bash]./debug_symbols_seg_fault [/bash]&lt;BR /&gt;Or, if you need to supply a different OpenCL platform index or device index, see [bash]./debug_symbols_seg_fault -h [/bash]&lt;BR /&gt;&lt;BR /&gt;I see a segmentation fault upon call to clBuildProgram().&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I tried a much smaller kernel but it did not reproduce this bug.&amp;nbsp; The attached full OpenCL program does work correctly in the context of a larger program on AMD and Apple OpenCL implementations.&lt;/P&gt;
&lt;P&gt;Any suggestions?&amp;nbsp; I'd like to resolve this so that I can use the Intel debugging toolset.&lt;/P&gt;
&lt;P&gt;Sidenote:&amp;nbsp; Wow.&amp;nbsp; Your forum does not accept files with .cl extension?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2013 21:20:15 GMT</pubDate>
    <dc:creator>Noah_R_</dc:creator>
    <dc:date>2013-08-20T21:20:15Z</dc:date>
    <item>
      <title>clBuildProgram segmentation fault when -g build option specified</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979810#M2525</link>
      <description>&lt;P&gt;This demonstrates a segmentation fault experienced upon calling clBuildProgram() when this particular OpenCL program is compiled with the "-g" build option.&lt;BR /&gt;&lt;BR /&gt;My setup:&amp;nbsp; Ubuntu 13.04, Intel OpenCL intel/opencl-1.2-3.0.67279&lt;BR /&gt;Execution is on CPU device: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Build Command:&lt;BR /&gt;[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]&lt;BR /&gt;&lt;BR /&gt;Run Command:&lt;BR /&gt;[bash]./debug_symbols_seg_fault [/bash]&lt;BR /&gt;Or, if you need to supply a different OpenCL platform index or device index, see [bash]./debug_symbols_seg_fault -h [/bash]&lt;BR /&gt;&lt;BR /&gt;I see a segmentation fault upon call to clBuildProgram().&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I tried a much smaller kernel but it did not reproduce this bug.&amp;nbsp; The attached full OpenCL program does work correctly in the context of a larger program on AMD and Apple OpenCL implementations.&lt;/P&gt;
&lt;P&gt;Any suggestions?&amp;nbsp; I'd like to resolve this so that I can use the Intel debugging toolset.&lt;/P&gt;
&lt;P&gt;Sidenote:&amp;nbsp; Wow.&amp;nbsp; Your forum does not accept files with .cl extension?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 21:20:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979810#M2525</guid>
      <dc:creator>Noah_R_</dc:creator>
      <dc:date>2013-08-20T21:20:15Z</dc:date>
    </item>
    <item>
      <title>Thanks for the reproducer. We</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979811#M2526</link>
      <description>&lt;P&gt;Thanks for the reproducer. We'll take a look and get back to you.&lt;/P&gt;
&lt;P&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 15:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979811#M2526</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2013-08-21T15:47:00Z</dc:date>
    </item>
    <item>
      <title>Were you able to reproduce</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979812#M2527</link>
      <description>&lt;P&gt;Were you able to reproduce this bug?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 04:09:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979812#M2527</guid>
      <dc:creator>Noah_R_</dc:creator>
      <dc:date>2013-09-11T04:09:51Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979813#M2528</link>
      <description>Hi,

Yes, the bug is reproducible on our side. I will notify you about availability of the fix.

Thanks,
Yuri</description>
      <pubDate>Wed, 11 Sep 2013 07:58:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979813#M2528</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-09-11T07:58:22Z</dc:date>
    </item>
    <item>
      <title>Has there been any progress</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979814#M2529</link>
      <description>&lt;P&gt;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&amp;nbsp;troubleshoot my complex kernels using gdb.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 16:41:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979814#M2529</guid>
      <dc:creator>Noah_R_</dc:creator>
      <dc:date>2013-12-04T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979815#M2530</link>
      <description>Hi,

We have the fix in our development branch. Unfortunately, I can't say anything regarding when this fix will be available in a public release. I will update here once this is done.

Thanks,
Yuri</description>
      <pubDate>Thu, 05 Dec 2013 07:25:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clBuildProgram-segmentation-fault-when-g-build-option-specified/m-p/979815#M2530</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-12-05T07:25:18Z</dc:date>
    </item>
  </channel>
</rss>

