bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting RLIMIT_STACK


From: Alberto Bertogli
Subject: Setting RLIMIT_STACK
Date: Sat, 17 Jul 2010 02:22:33 -0300
User-agent: Mutt/1.5.17 (2008-03-04)

Hi!

Chasing a bug, I noticed that make sets RLIMIT_STACK to RLIM_INFINITY.

In Linux (since 2.6.25), that actually triggers a very subtle behaviour
change in the way the kernel manages the memory layout. While most
applications are oblivious to it, some are not and can cause issues that
are not so easy to see.

The layouts are described at http://lwn.net/Articles/90311/, and while
Linux usually uses the new one (described there as "top-down mmap()
method"), when RLIMIT_STACK is set to RLIM_INFINITY it falls back to the
old one (the one described first).


So I was wondering what was the reason for that rlimit, and if perhaps it
could be avoided to prevent this behaviour change.

Thanks a lot,
                Alberto




reply via email to

[Prev in Thread] Current Thread [Next in Thread]