bugmake - Bugs: bug #56918, endless loop under Darwin if...

 
 

bug #56918: endless loop under Darwin if recipe is non_existent_program

Submitted by:  None
Submitted on:  Wed 18 Sep 2019 08:25:19 PM UTC  
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  4.3 Operating System:  POSIX-Based
Fixed Release:  4.3 Triage Status:  Small Effort

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sat 21 Sep 2019 08:44:07 PM UTC, comment #2: 

I pushed a fix for this issue; it will appear in the next release of GNU make.

Thanks!

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Wed 18 Sep 2019 08:38:10 PM UTC, comment #1: 

Hm I can reproduce on GNU/Linux as well.  It seems we get into a state where we have no children but job_slots_used is not 0 which shouldn't happen.  Thanks for the report I'll look at this tonight.

It's interesting that it doesn't fail if the non-existent operation is the first one in the recipe.  I think that's why my current regression tests in this area didn't find this problem.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Wed 18 Sep 2019 08:25:19 PM UTC, original submission:  

With this Makefile on my Darwin system (MacOS Mojave 18.7.0), make-4.2.91 loops indefinitely and i have to kill -9 (kill -15 is not enough):

% cat Makefile
target:
echo anything
non_existent_program
% make
anything
non_existent_program
make: non_existent_program: No such file or directory
make: *** [Makefile;3: target] Error 127
Killed
%

This is also the case with make-4.2.90 but not with make-4.2.1.
Commenting out the line "echo anything" has the same effect (endless loop), but completely removing this line makes the hang disappear (and 'make' to work correctly).
Using --disable-posix-spawn also makes the hang disappear in all situations (it seems).

Regards,

Denis Excoffier.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-21 psmith StatusNone => Fixed
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.3
        Triage StatusNone => Small Effort
    2019-09-18 psmith Assigned toNone => psmith

    Back to the top


    Powered by Savane 3.7