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 <davids@redhat.com>
This commit is contained in:
David Sommerseth 2014-09-16 15:01:58 -06:00 committed by Dan Horák
parent fddb0e34ac
commit 2617f03d5b
1 changed files with 6 additions and 1 deletions

7
R.spec
View File

@ -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 <davids@redhat.com> - 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 <dtardon@redhat.com> - 3.1.1-5
- rebuild for ICU 53.1