fairly scary CUDA runtime error please help

Hi guys,

I am compiling my project fine and when running it on some inputs it works perfectly on an example I got this:

*** glibc detected *** … : double free or corruption (!prev): 0x00000000014d25e0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fcb791e408a]
/lib/libc.so.6(cfree+0x8c)[0x7fcb791e7c1c]
…/…/bin/linux/release/…[0x40820b]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7fcb7918e1c4]
…/…/bin/linux/release/…(__gxx_personality_v0+0xe1)[0x402319]
======= Memory map: ========
00400000-0041e000 r-xp 00000000 08:02 1827555

Does anyone have any idea what this means?

Thanks in advance.

OK solved this, I made a mistake in the definition of the grid dimension, that in some cases
had a non integer value.
Solving this seems to have solved the issue above.