AnsweredAssumed Answered

Segmentation Fault in every sample

Question asked by markuswalter on Feb 11, 2012
Latest reply on Feb 13, 2012 by markuswalter

Hi,

 

I would like to get started with OpenCL, a Radeon HD 68xx and Linux (Debian 6 x86_64, X11, Catalyst 11.1, AMD Stream SDK 2.6).

Installing the stream SDK worked fine, but whenever I run a sample application, I get a SIGSEGV.

 

What did I do wrong?

 

/opt/AMDAPP/samples/opencl/bin/x86_64$ gdb ./HelloCL

GNU gdb (GDB) 7.3.1

Copyright (C) 2011 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-unknown-linux-gnu".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>...

No symbol table is loaded.  Use the "file" command.

Catchpoint 1 (throw)

Reading symbols from /opt/AMDAPP/samples/opencl/bin/x86_64/HelloCL...done.

(gdb) r

Starting program: /opt/AMDAPP/samples/opencl/bin/x86_64/HelloCL

[Thread debugging using libthread_db enabled]

HelloCL!

Getting Platform Information

 

Program received signal SIGSEGV, Segmentation fault.

0x00007ffff7555a13 in std::string::_Rep::_M_dispose () from /usr/local/lib64/libstdc++.so.6

(gdb) bt

#0  0x00007ffff7555a13 in std::string::_Rep::_M_dispose () from /usr/local/lib64/libstdc++.so.6

#1  0x00007ffff7555a63 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/local/lib64/libstdc++.so.6

#2  0x00007ffff565f78a in ?? () from /usr/lib/libamdocl64.so

#3  0x00007ffff565fdae in ?? () from /usr/lib/libamdocl64.so

#4  0x00007ffff566a1f4 in ?? () from /usr/lib/libamdocl64.so

#5  0x00007ffff566c4de in ?? () from /usr/lib/libamdocl64.so

#6  0x00007ffff561bc50 in ?? () from /usr/lib/libamdocl64.so

#7  0x00007ffff56263d9 in ?? () from /usr/lib/libamdocl64.so

#8  0x00007ffff56504df in ?? () from /usr/lib/libamdocl64.so

#9  0x00007ffff5653c8f in ?? () from /usr/lib/libamdocl64.so

#10 0x00007ffff565437f in ?? () from /usr/lib/libamdocl64.so

#11 0x00007ffff5619f53 in ?? () from /usr/lib/libamdocl64.so

#12 0x00007ffff56291b5 in ?? () from /usr/lib/libamdocl64.so

#13 0x00007ffff55f3881 in clGetPlatformInfo () from /usr/lib/libamdocl64.so

#14 0x00007ffff77bae8d in ?? () from /usr/lib/libOpenCL.so.1

#15 0x00007ffff77bcc13 in ?? () from /usr/lib/libOpenCL.so.1

#16 0x00007ffff77bc320 in clGetPlatformIDs () from /usr/lib/libOpenCL.so.1

#17 0x0000000000402fdb in cl::Platform::get(std::vector<cl::Platform, std::allocator<cl::Platform> >*) ()

#18 0x0000000000401d1d in main ()

(gdb)

Outcomes