Re: Setting RLIMIT_STACK

2010-07-18 Thread Paul Smith
On Sat, 2010-07-17 at 02:22 -0300, Alberto Bertogli wrote: 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

Re: Setting RLIMIT_STACK

2010-07-18 Thread Paul Smith
On Sun, 2010-07-18 at 14:40 -0300, Alberto Bertogli wrote: The layout is decided by the kernel early, when the new process is being created in execve(), and cannot be changed while running. I did suspect as much: it seemed impossible (or at least highly unlikely) for this to be changed during

Re: Setting RLIMIT_STACK

2010-07-18 Thread Alberto Bertogli
On Sun, Jul 18, 2010 at 12:54:56PM -0400, Paul Smith wrote: On Sat, 2010-07-17 at 02:22 -0300, Alberto Bertogli wrote: 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

Re: Setting RLIMIT_STACK

2010-07-18 Thread Alberto Bertogli
On Sun, Jul 18, 2010 at 02:40:19PM -0300, Alberto Bertogli wrote: Peeking around the source browser I notice that the change that introduced the setrlimit() you describe is commit 1.191, dated 2008-11-30, which is post-3.81. Seeing that, I tried the latest alpha release (3.81.90), and it

Re: small patches submitted to savannah patch tracker

2010-07-18 Thread Paul Smith
On Sat, 2010-07-17 at 20:32 +0300, Ozkan Sezer wrote: Hi: I submitted several small patches to savannah patch tracker. That tracker looks like not being visited much, so I thought that a notification here wouldn't hurt. [patch #7240] cast const pointers to void* when feeding them to