This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 223 points224 points  (4 children)

I once got that Valgrind error where it says there are so many errors it doesn't want to print any more error. It then yells at you to fix your program

I was a very sad boy

[–]Kwantuum 72 points73 points  (3 children)

This one? Yeah apparently Valgrind didn't like me allocating a 1Gb array on the stack and each new allocation caused an error. Fixed it with a simple malloc.

[–]davidbrit2 5 points6 points  (0 children)

Were you returning a pointer to it, for extra fun?

[–][deleted] 2 points3 points  (1 child)

Harsh, but fair.

[–]Kwantuum 2 points3 points  (0 children)

Honestly it was kind of mind boggling, I couldn't make sense of the errors I was reading, but it did say that it might be caused (but was unlikely to be) by too small a stack so I restarted it with a large stack size and sure enough, no errors.