From 8017b9987ba354962d30bc86da3ae11b4c8ad33e Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 16 Sep 2014 15:01:58 -0600 Subject: [PATCH] Add ulimit -s 16384 to avoid segfault on PPC64 during make check The issue is related to the stack being too small when running the ok-errors.R test case. This test will cause an infinite recursion loop, which should be interrupted by R. On x86_64, this works as expected. On ppc64, the stack size needs to be doubled to 16384 (ulimit -s 16384) to be able to run successfully, otherwise the segfault will happen. RHBZ: 1136388 Signed-off-by: David Sommerseth --- R.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/R.spec b/R.spec index 317084b..0b820b4 100644 --- a/R.spec +++ b/R.spec @@ -40,7 +40,7 @@ Name: R Version: 3.1.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A language for data analysis and graphics URL: http://www.r-project.org Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/R-%{version}.tar.gz @@ -477,6 +477,8 @@ ln -s ../../../R/texmf/tex/latex R popd %check +# Needed by tests/ok-error.R, which will smash the stack on PPC64. This is the purpose of the test. +ulimit -s 16384 make check %files @@ -911,6 +913,9 @@ R CMD javareconf \ %postun -n libRmath -p /sbin/ldconfig %changelog +* Tue Sep 16 2014 David Sommerseth - 3.1.1-6 +- Setting ulimit when running make check, to avoid segfault due to too small stack (needed on PPC64) + * Tue Aug 26 2014 David Tardon - 3.1.1-5 - rebuild for ICU 53.1