I want to run the bandwidthTest inside the CUDA SDK. It is terminated by stack smashing detected error. How can I solve this problem????? I use the make command to run this program and make the file. I cannot change anything inside the code.
Asked
Active
Viewed 659 times
0
-
1I don't have an answer for this, but I must say that "Stack smashing detected" is one of the best error messages I've ever heard of! – joshuahealy Mar 26 '12 at 05:08
-
I've certainly never heard of that error message. – harrism Mar 26 '12 at 06:42
-
http://stackoverflow.com/questions/1345670/stack-smashing-detected – Pavan Yalamanchili Mar 26 '12 at 07:13
-
1More importantly, did you change anything in the example before you compiled and ran the example ? – Pavan Yalamanchili Mar 26 '12 at 07:14
1 Answers
1
Try to use GDB to see where it is happening. Are you using the latest CUDA, 4.2? I found that some of my CUDA code would have stack smashing errors when I upgraded from CUDA 4.0. Going back to CUDA 4.0 fixed my issues.

Richard Żak
- 814
- 1
- 11
- 21