Valgrind报告段溢出 [英] Valgrind reporting a segment overflow
问题描述
当使用valgrind / callgrind运行我的程序时,我得到了以下消息:
== 21734 == brk segment overflow in thread #1:不能增长到0x4a39000
(具有不同的地址)
请注意,
我找不到关于此邮件的任何文档,我不知道正在溢出的是什么。
任何人都可以帮我找出问题是什么?这是valgrind还是我的程序的问题?
虽然这不是一个答案,找不到任何文件要求:
1) http://repo.or.cz/valgrind.git/blob/HEAD:/coregrind/m_syswrap/syswrap-generic.c
包含第1322行讨论的邮件
2) http://sourceforge.net/p/valgrind/mailman/message/34068401/
是引入该功能的提交,并且相应的提交消息为
作者:florian
日期:Wed Apr 29 13:59:16 2015
新版本:15155
日志:如果brk段溢出,则发出错误消息。
从这里我们可以进一步转发这个问题给那些谁可以给一个合格的答案 brk段溢出在本上下文中是指!
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?
While this is not really an answer, it still satisfies OP's "couldn't find any docs" requirement:
1) http://repo.or.cz/valgrind.git/blob/HEAD:/coregrind/m_syswrap/syswrap-generic.c
contains the message discussed at line 1322
2) http://sourceforge.net/p/valgrind/mailman/message/34068401/
is the commit that introduced the feature, and the corresponding commit message reads
Author: florian
Date: Wed Apr 29 13:59:16 2015
New Revision: 15155
Log: Issue an error message if then brk segment overflows.
from where we can further relay this question on to those who can give a qualified answer to "what exactly does "a brk segment overflows" mean in this context"!
这篇关于Valgrind报告段溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!