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

 
 

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

Submitter:  None
Submitted:  Wed 18 Sep 2019 08:25:19 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.3 Operating System:  POSIX-Based
Fixed Release:  4.3 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-758e.
    Corresponding source code