help-make
[Top][All Lists]
Advanced

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

Re: Weird behavior on program execution with gmake (socket + pthreads)


From: David Boyce
Subject: Re: Weird behavior on program execution with gmake (socket + pthreads)
Date: Mon, 13 Sep 2010 17:45:57 -0400

On Mon, Sep 13, 2010 at 5:34 PM, Philip Guenther <address@hidden> wrote:
> On Mon, Sep 13, 2010 at 9:57 AM, Axel <address@hidden> wrote:
> ...
>> I'm alwys interested to understand why was it working with gmake but not
>> in bash ? Was there a side effect which allocate some memory around the
>> program virtual one or something like this ? Is it gmake specific or
>> linux specific ?
>
> gmake increases the stack size resource limit (ala setrlimit(2) or
> ulimit(1)), so if the dangling pointer referenced an area near where
> the stack would nominally have ended, the rlimit change may make it a
> valid pointer.

It should be possible to test this theory by trying with make 3.82,
since IIRC 3.82 was "fixed" to set the stack size back to normal
before running the recipe.

David Boyce



reply via email to

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