Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valgrind Error: failed in UME with error 22

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?

like image 568
Legend Avatar asked Nov 20 '10 02:11

Legend


1 Answers

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.

like image 128
kichik Avatar answered Sep 21 '22 04:09

kichik