callgrind

Valgrind reporting a segment overflow

大兔子大兔子 提交于 2019-11-27 03:42:57
问题 When running my program with valgrind / callgrind I get the following message a lot: ==21734== brk segment overflow in thread #1: can't grow to 0x4a39000 (with different addresses) Note that it is not preceded by a stack overflow message. I can't find any documentation on this message and I have no idea what is overflowing exactly. Can anybody help me figure out what the problem is? Is this a problem of valgrind, or of my program? 回答1: Line 1327 from the valgrind source code points to the