Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Crash during parsing of compound statement

$
0
0

Hi, the following code snippet void A() { (global a*)() causes a stack dump and crash during parsing:

$ gcc -DPLATFORM_ID=0 parser-crash1.c -lOpenCL && ./a.out
[cldrive] Platform: Intel(R) OpenCL
[cldrive] Device:       Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
[cldrive] OpenCL optimizations: on
Stack dump:
0.    1:1:23: current parser token '('
1.    1:1:10: parsing function body 'A'
2.    1:1:10: in compound statement ('{}')
[1]    25373 segmentation fault  ./a.out

Compiler version:

$ cat /etc/OpenCL/vendors/intel64.icd
/opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so

Cheers,
Chris

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>