lix/src
Eelco Dolstra 4f09ce7940
Fix 'deadlock: trying to re-acquire self-held lock'
This was caused by derivations with 'allowSubstitutes = false'. Such
derivations will be built locally. However, if there is another
SubstitionGoal that has the output of the first derivation in its
closure, then the path will be simultaneously built and substituted.

There was a check to catch this situation (via pathIsLockedByMe()),
but it no longer worked reliably because substitutions are now done in
another thread. (Thus the comment 'It can't happen between here and
the lockPaths() call below because we're not allowing multi-threading'
was no longer valid.)

The fix is to handle the path already being locked in both
SubstitutionGoal and DerivationGoal.
2018-02-12 17:06:06 +01:00
..
boost Shut up some warnings 2017-04-14 14:42:20 +02:00
build-remote nix.conf: builders-use-substitutes 2018-01-09 22:40:07 +01:00
buildenv Fix "Unexpected EOF reading a line" error 2017-11-29 11:56:15 +00:00
libexpr Merge pull request #1816 from shlevy/add-path 2018-02-07 13:32:35 +01:00
libmain nix-env: Fix parsing of --system 2018-02-08 15:25:03 +01:00
libstore Fix 'deadlock: trying to re-acquire self-held lock' 2018-02-12 17:06:06 +01:00
libutil make multi threaded compression configurable and use single threaded 2018-02-07 17:54:08 +01:00
linenoise linenoise.cpp: allow completions from empty input 2017-12-19 12:52:10 -06:00
nix toBuildables -> build 2018-02-12 17:06:06 +01:00
nix-build Remove nix-build --hash 2018-02-03 10:08:05 +01:00
nix-channel Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-daemon More completely fix recursive nix, unbreak tests 2018-02-07 15:19:28 -06:00
nix-env nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-instantiate Add pure evaluation mode 2018-01-16 19:23:18 +01:00
nix-prefetch-url nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-store Remove nix-build --hash 2018-02-03 10:08:05 +01:00
nlohmann nlohmann-json: 2.1.1 -> 3.0.1 2018-01-22 12:19:50 -06:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00