[Top][All Lists]

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

[bug #57242] Non-recursive command passes invalid jobserver file descrip

From: John Regehr
Subject: [bug #57242] Non-recursive command passes invalid jobserver file descriptors
Date: Mon, 30 Nov 2020 11:36:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Follow-up Comment #4, bug #57242 (project make):

Hello, I wanted to add that I have written a jobserver client and am currently
getting burned by the issue described in this bug.

We have an LLVM plugin that is compute-intensive, so it wants to use multiple
cores. However, by the time execution reaches our plugin, fds 3 and 4 are in
use by LLVM even if they were closed on exec by make, making it hard to tell
whether these fds lead to the jobserver or not

Of course the problem only happens if people fail to mark LLVM as a recursive
make command, but this is a very easy mistake to make, and the consequences
(reading and writing bytes from whatever random files LLVM has open at the
moment) seem pretty unpleasant.


Reply to this item at:


  Message sent via Savannah

reply via email to

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