Default stack size

Orion Poplawski orion at cora.nwra.com
Wed Mar 25 21:23:50 UTC 2015


On 03/24/2015 06:19 AM, Richard W.M. Jones wrote:
> 
> For the OCaml packages on ppc64/ppc64le, we keep having bugs like this
> one: https://bugzilla.redhat.com/show_bug.cgi?id=1204876
> 
> The OCaml compiler is quite recursive, and so it can easily overflow
> the default stack.  For reasons that are not entirely clear this
> happens only on ppc64/ppc64le (not on x86 or aarch64).  Perhaps POWER
> stack frames are bigger, or the default stack size is smaller.
> 
> One way to "fix" this would be to modify every single ocaml-* spec
> file to add:
> 
> %ifarch %{power64}
> ulimit -s 65536
> %endif

FWIW - coincidentally I just ran into a similar issue building gdl on EPEL6
for x86_64.  I couldn't reproduce it locally because I bump up the default
stack limit a bit on my machines.  It does appear that the default may be a
bit too constrained.


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the devel mailing list