Thanks for the quick response nou and yes it does look very similar to the link you provided but I think you understand when I say formatting is not the option I am looking for. My Distro is Ubuntu 11.04. Here is my gdb backtrace:
(gdb) run
Starting program: /opt/AMDAPP/samples/opencl/bin/x86_64/SimpleGL
[Thread debugging using libthread_db enabled]
Platform 0 : Advanced Micro Devices, Inc.
Platform found : Advanced Micro Devices, Inc.
Selected Platform Vendor : Advanced Micro Devices, Inc.
Device 0 : Cayman Device ID is 0x10b3860
Device 1 : Cayman Device ID is 0x10b60b0
Device 2 : Cayman Device ID is 0x10b8980
Device 3 : Cayman Device ID is 0x10bb240
Number of displays 4
glXCreateContextAttribsARB 0x7ffff7354080
Number of interoperable devices 1
Interop Device ID is 0x10b3860
[New Thread 0x7fffed8f9700 (LWP 10744)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed8f9700 (LWP 10744)]
0x00007ffff6c3d006 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
All examples seen to segfault at this point. Thanks!
I removed the old SDK environment variable from my .bashrc so I am at a loss as to what is wrong.
Here is a backtrace as well as was requested on the other similar link.
(gdb) backtrace
#0 0x00007ffff6c3d006 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00007ffff37eae61 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#2 0x00007ffff37eb539 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#3 0x00007ffff37f3af5 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#4 0x00007ffff37f6777 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#5 0x00007ffff37bfa0d in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#6 0x00007ffff3810c47 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#7 0x00007ffff37d3ef7 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#8 0x00007ffff37d5d29 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#9 0x00007ffff3800d96 in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#10 0x00007ffff37df0be in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#11 0x00007ffff380d04d in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#12 0x00007ffff381508c in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#13 0x00007ffff381319d in ?? () from /home/hair/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/libamdocl64.so
#14 0x00007ffff7bc4d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#15 0x00007ffff645704d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#16 0x0000000000000000 in ?? ()
Ok seems that the older SDK is still pointed to by my environment. Where can I look to find the offending environment variable?
Edit: Sorry I guess only the second is a backtrace. I new to gdb 😉
Edit 2: Hardinfo shows that AMDAPPSDKROOT=/opt/AMDAPP is set and this is SDK 2.6. I dont understand why opencl programs are being pointed to the old SDK 2.4.