Valgrind Error: failed in UME with error 22

匿名 (未验证) 提交于 2019-12-03 00:46:02

问题:

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?

回答1:

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.



回答2:

I don't have an answer, but there is an open bug on this issue.

http://bugs.kde.org/show_bug.cgi?id=138424



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!