Problem with MEMCHECK


I am new with CUDA. I have written a CUDA program. There was a problem with the output. So I tried to use memcheck to figure out what the error was. But after few seconds, it automatically close my Linux session (I am using Ubuntu 12.04 with CUDA 5.0). Do you know where the problem could come from?
Thank you for your help.