bugmake - Bugs: bug #13651, Make seg faults if it runs out of...

 
 

bug #13651: Make seg faults if it runs out of memory (rather than failing gracefully)

Submitted by:  None
Submitted on:  Wed 06 Jul 2005 09:30:42 AM UTC  
 
Severity:  2 - Minor Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.80 Operating System:  POSIX-Based
Fixed Release:  SCM Triage Status:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 04 Jun 2017 10:54:07 PM UTC, comment #2: 

A fix has been pushed and will be in the next release.  Thank you for filing a report!

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
  Spam posted by sevanath
Wed 06 Jul 2005 12:46:49 PM UTC, comment #1: 

Hm.  Make is (I think) dumping core because it's running out of memory.  When that happens, make tries to print an error message but because there's no memory left, even simple operations like printing messages (which still require memory to be allocated) can't succeed and you get a core dump.

I tried this with 3.80 and it dumped core after about 5 minutes.  I tried it with the latest beta for make 3.81, and after 45 minutes it was still running.  The memory usage had increased to about 87M which is a lot for make but not very much, really.  I doubt anyone will wait that long before killing make to see what's wrong.

Anyway, if the problem is that there's a recursive eval call I don't know what exactly I can do about this, other than add an artificial restriction on the depth of eval recursion.  The problem with restrictions like that is that they run the risk of being to shallow for some people, and not shallow enough for others (so that you still get out of memory conditions).

I can try to look into a way to allow make to properly fail with an error even in out of memory conditions, though.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Wed 06 Jul 2005 09:30:42 AM UTC, original submission:  

What I'm trying to do is pretty hairy but nevertheless nothing I write in a makefile should make make dump core. This little dummy source tree has that affect. From looking at the stack it's stuck in a infinite recursion which is not suprising given the input I'm feeding it.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #3147:  dummy.tar.gz added by None (1KiB - application/x-gzip - Make rules and definitions to produce core file.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by sevanath (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-04 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => SCM
    2005-07-16 psmith SummarySeg fault with tricky $(eval $(call)) expansions => Make seg faults if it runs out of memory (rather than failing gracefully)
    2005-07-06 psmith Severity3 - Normal => 2 - Minor
    2005-07-06 None Attached File- => Added dummy.tar.gz, #2656

    Back to the top


    Powered by Savane 3.5