URL: <http://savannah.gnu.org/bugs/?37703>
Summary: job starts before dependency Project: make Submitted by: kvho Submitted on: Fri 09 Nov 2012 02:17:19 PM CET Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.82 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: I run make -j. In a rare case, a jobs starts before its dependency had run. It happens if a dependency had finished after it has been checked, but before the update of a target. With the attached Makefile I could reproduce the problem, but I had to add a 'sleep(1)' in function new_job, before the call to reap_children. The error is in the attached log. I have also attached a patch that seem to fix it. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 09 Nov 2012 02:17:19 PM CET Name: Makefile Size: 116B By: kvho <http://savannah.gnu.org/bugs/download.php?file_id=26895> ------------------------------------------------------- Date: Fri 09 Nov 2012 02:17:19 PM CET Name: reconsider.patch Size: 735B By: kvho <http://savannah.gnu.org/bugs/download.php?file_id=26896> ------------------------------------------------------- Date: Fri 09 Nov 2012 02:17:19 PM CET Name: log Size: 3kB By: kvho <http://savannah.gnu.org/bugs/download.php?file_id=26897> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37703> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make