Valgrind错误:UME中失败,错误22 [英] Valgrind Error: failed in UME with error 22
本文介绍了Valgrind错误:UME中失败,错误22的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
valgrind:mmap(0x8048000,4096) )在UME中失败,错误22(参数无效)。
valgrind:这可能是由具有非常大的文本,数据或bss段的可执行文件引起的。
但我的可执行文件只有简单的变量赋值。我无法理解如何解决这个问题。任何建议?
解决方案
我解决了这个问题,并提交了一个补丁:
https://bugs.kde.org/show_bug.cgi?id=290061
如果您或任何其他人遇到此问题,请使用 -pie
构建可执行文件,这可能帮助你。
I am playing around with tool development in Valgrind and am getting the following error:
valgrind: mmap(0x8048000, 4096) failed in UME with error 22 (Invalid argument).
valgrind: this can be caused by executables with very large text, data or bss segments.
but my executable has nothing but simple variable assignments. I am not able to understand how to fix this problem. Any suggestions?
解决方案
I solved this for my case and submitted a patch:
https://bugs.kde.org/show_bug.cgi?id=290061
If you or anyone else having this problem are building your executable with -pie
, this might help you too.
这篇关于Valgrind错误:UME中失败,错误22的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文