dschwen

segfault on clEnqueueReadBuffer SDK2.01,Linux

Discussion created by dschwen on Apr 26, 2010
Latest reply on May 3, 2010 by dschwen

my code segfaults at:

clEnqueueReadBuffer(cmd_queue, c_mem, CL_TRUE, 0, c_buffer_size, c, 0, NULL, NULL);

 

dmesg gives me:

segfault at e6ce6e30 ip b5349e84 sp a43101d0 error 5 in libatiocl32.so[b52e8000+9e6000]

 

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa4b09b70 (LWP 20489)]
0xb5b42e84 in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
(gdb) bt
#0  0xb5b42e84 in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#1  0xb5b5e97c in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#2  0xb5b60285 in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#3  0xb5b6169d in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#4  0xb5b67f40 in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#5  0xb5b5d27d in ?? () from /usr/lib/OpenCL/vendors/libatiocl32.so
#6  0xb7d0f585 in start_thread (arg=0xa4b09b70) at pthread_create.c:300
#7  0xb7dfe29e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

 

I just switched from Nvidia to ATI, when this bug appeared.

Has anyone seen anything similar? How should I go about investigating this further?

Outcomes