This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch release/2.23/master updated. glibc-2.23-61-ge6eea05
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 May 2016 11:05:21 -0000
- Subject: GNU C Library master sources branch release/2.23/master updated. glibc-2.23-61-ge6eea05
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.23/master has been updated
via e6eea05ee7bc49dbe9531620595fd7f6ca587dcd (commit)
from f2225475118c8804b1b31731bdfb3f76eb179e6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e6eea05ee7bc49dbe9531620595fd7f6ca587dcd
commit e6eea05ee7bc49dbe9531620595fd7f6ca587dcd
Author: Florian Weimer <fweimer@redhat.com>
Date: Mon Mar 7 13:48:47 2016 +0100
test-skeleton.c: Do not set RLIMIT_DATA [BZ #19648]
With older kernels, it is mostly ineffective because it causes malloc
to switch from sbrk to mmap (potentially invalidating malloc testing
compared to what real appliations do). With newer kernels which
have switched to enforcing RLIMIT_DATA for mmap as well, some test
cases will fail in an unintended fashion because the limit which was
set previously does not include room for all mmap mappings.
(cherry picked from commit 900056024b75eae8b550d7fee1dec9e71f28344e)
diff --git a/ChangeLog b/ChangeLog
index 88ad53a..2da868a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-07 Florian Weimer <fweimer@redhat.com>
+
+ [BZ #19648]
+ * test-skeleton.c (main): Do not set RLIMIT_DATA.
+
2016-05-23 Florian Weimer <fweimer@redhat.com>
[BZ #20111]
diff --git a/test-skeleton.c b/test-skeleton.c
index a2edf83..7ab3529 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -428,23 +428,6 @@ main (int argc, char *argv[])
setrlimit (RLIMIT_CORE, &core_limit);
#endif
-#ifdef RLIMIT_DATA
- /* Try to avoid eating all memory if a test leaks. */
- struct rlimit data_limit;
- if (getrlimit (RLIMIT_DATA, &data_limit) == 0)
- {
- if (TEST_DATA_LIMIT == RLIM_INFINITY)
- data_limit.rlim_cur = data_limit.rlim_max;
- else if (data_limit.rlim_cur > (rlim_t) TEST_DATA_LIMIT)
- data_limit.rlim_cur = MIN ((rlim_t) TEST_DATA_LIMIT,
- data_limit.rlim_max);
- if (setrlimit (RLIMIT_DATA, &data_limit) < 0)
- printf ("setrlimit: RLIMIT_DATA: %m\n");
- }
- else
- printf ("getrlimit: RLIMIT_DATA: %m\n");
-#endif
-
/* We put the test process in its own pgrp so that if it bogusly
generates any job control signals, they won't hit the whole build. */
if (setpgid (0, 0) != 0)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
test-skeleton.c | 17 -----------------
2 files changed, 5 insertions(+), 17 deletions(-)
hooks/post-receive
--
GNU C Library master sources