bug-make
[Top][All Lists]
Advanced

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

[bug #37703] job starts before dependency


From: Koen Van Hoof
Subject: [bug #37703] job starts before dependency
Date: Fri, 09 Nov 2012 13:17:20 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0

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/




reply via email to

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