https://bugs.kde.org/show_bug.cgi?id=406422
Bug ID: 406422
Summary: none/tests/amd64-linux/map_32bits.vgtest fails too
easily
Product: valgrind
Version: 3.15 SVN
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
On various systems none/tests/amd64-linux/map_32bits.vgtest fails with first
mmap: Cannot allocate memory.
The problem is that the --aspace-minaddr is too tight. Newer glibc seem to mmap
some memory and so even our first mmap with MMAP_32BIT will fail.
The solution is to make a bit more memory < 2GB available. If there is 16MB
available the test always seems to succeed without needing too many tries.
diff --git a/none/tests/amd64-linux/map_32bits.vgtest
b/none/tests/amd64-linux/map_32bits.vgtest
index 2b7f3a04a..2c1785436 100644
--- a/none/tests/amd64-linux/map_32bits.vgtest
+++ b/none/tests/amd64-linux/map_32bits.vgtest
@@ -1,5 +1,5 @@
prog: map_32bits
# take a big aspacemgr minaddr, to quickly reach the 2GB limit
-vgopts: -q --aspace-minaddr=0x7ff60000
+vgopts: -q --aspace-minaddr=0x70000000
stderr_filter: filter_stderr
--
You are receiving this mail because:
You are watching all bug changes.