worked fine with SDK 2.4, but is broken now with SDK 2.5:
easy to reproduce for everyone:
download clbinary.zip from here: http://developer.amd.com/support/KnowledgeBase/Lists/KnowledgeBase/DispForm.aspx?ID=115
$ unzip clbinary.zip
Archive: clbinary.zip
inflating: clbinarygen.c
inflating: clbinaryuse.c
$ gcc -o clbinarygen clbinarygen.c -I /opt/AMDAPP/include -lOpenCL -L /opt/AMDAPP/lib/x86_64 -g
clbinarygen.c: In function ‘main’:
clbinarygen.c:180:18: warning: comparison between pointer and integer
clbinarygen.c:213:5: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’
clbinarygen.c: In function ‘printDeviceList’:
clbinarygen.c:329:9: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘cl_device_type’
$ echo '__kernel void very_big_kernel () { }' > kernel.cl
$ ulimit -c 999999999
$ ./clbinarygen
Reading in program from kernel.cl
Number of platforms found: 1
Found AMD platform
Segmentation fault (core dumped)
$ gdb ./clbinarygen core
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
.
.
(gdb) bt
#0 0x00007f212d733b1e in ?? () from /usr/lib/libaticaldd.so
#1 0x00007f212d736651 in ?? () from /usr/lib/libaticaldd.so
#2 0x00007f212d6dfa5d in ?? () from /usr/lib/libaticaldd.so
#3 0x00007f212d6dfd56 in ?? () from /usr/lib/libaticaldd.so
#4 0x00007f212d6e1e57 in ?? () from /usr/lib/libaticaldd.so
#5 0x00007f212d8a752b in ?? () from /usr/lib/libaticaldd.so
#6 0x00007f212d6903aa in ?? () from /usr/lib/libaticaldd.so
#7 0x00007f212d691be2 in ?? () from /usr/lib/libaticaldd.so
#8 0x00007f212f56484a in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#9 0x00007f212f56edec in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#10 0x00007f212f5729c3 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#11 0x00007f212f53c25d in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#12 0x00007f212f58e565 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#13 0x00007f212f532252 in clBuildProgram () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#14 0x0000000000400fd2 in main () at clbinarygen.c:206