Blame valgrind-3.15.0-mmap-32bit.patch
|
Mark Wielaard |
afdb1b |
commit 535d2ff4f2f755faa8b1a9e467833eca455bd2d7
|
|
Mark Wielaard |
afdb1b |
Author: Mark Wielaard <mark@klomp.org>
|
|
Mark Wielaard |
afdb1b |
Date: Thu Apr 11 18:06:34 2019 +0200
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
afdb1b |
none/tests/amd64-linux/map_32bits.vgtest fails too easily
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
afdb1b |
On various systems none/tests/amd64-linux/map_32bits.vgtest fails with:
|
|
Mark Wielaard |
afdb1b |
first mmap: Cannot allocate memory.
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
afdb1b |
The problem is that the --aspace-minaddr is too tight. Newer glibc seem
|
|
Mark Wielaard |
afdb1b |
to mmap some memory and so even our first mmap with MMAP_32BIT will fail.
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
afdb1b |
The solution is to make a bit more memory < 2GB available.
|
|
Mark Wielaard |
afdb1b |
If there is 16MB available the test always seems to succeed without
|
|
Mark Wielaard |
afdb1b |
needing too many tries. The original 256K is too low.
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
afdb1b |
https://bugs.kde.org/show_bug.cgi?id=406422
|
|
Mark Wielaard |
afdb1b |
|
|
Mark Wielaard |
375230 |
diff --git a/none/tests/amd64-linux/map_32bits.vgtest b/none/tests/amd64-linux/map_32bits.vgtest
|
|
Mark Wielaard |
afdb1b |
index 2b7f3a0..43011e3 100644
|
|
Mark Wielaard |
375230 |
--- a/none/tests/amd64-linux/map_32bits.vgtest
|
|
Mark Wielaard |
375230 |
+++ b/none/tests/amd64-linux/map_32bits.vgtest
|
|
Mark Wielaard |
375230 |
@@ -1,5 +1,5 @@
|
|
Mark Wielaard |
375230 |
prog: map_32bits
|
|
Mark Wielaard |
375230 |
# take a big aspacemgr minaddr, to quickly reach the 2GB limit
|
|
Mark Wielaard |
375230 |
-vgopts: -q --aspace-minaddr=0x7ff60000
|
|
Mark Wielaard |
afdb1b |
+vgopts: -q --aspace-minaddr=0x7f000000
|
|
Mark Wielaard |
375230 |
stderr_filter: filter_stderr
|
|
Mark Wielaard |
375230 |
|