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: =========
======= 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.