Skip to content

running substituters in parallel for a an overlapping set of paths can deadlock #178

Closed

Description

@mornfall

It seems that locking paths in nix is deadlock-prone; a failure to lock should re-start the locking process from scratch (i.e. give up all locks and trying again) possibly also always in sorting order.

Process 21218 attached
Process 21187 attached
[pid 21187] select(0, [], NULL, NULL, {0, 393589} <unfinished ...>
[pid 21218] select(0, [], NULL, NULL, {3, 753195} <unfinished ...>
[pid 21187] <... select resumed> )      = 0 (Timeout)
[pid 21187] open("/nix/store/mpbwif9nvavl4k203i1b8m8g0w6vhq8i-stdenv.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] open("/nix/store/nbdv5fk8qi7a3vbx86m257fx6d00lk7g-haskell-crypto-numbers-ghc7.6.3-0.2.3.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] open("/nix/store/sf7vlw0fd4b3dxrzrf8mdmcywid8z9qy-haskell-failure-ghc7.6.3-0.2.0.1.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] open("/nix/store/vjvqvfzixj8dvflfjcnjkh0m7vjj0zjd-haskell-tagged-ghc7.6.3-0.7.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] open("/nix/store/sfdwzhxn0jypr3ddnsx8pslngzzn298h-haskell-cryptohash-ghc7.6.3-0.11.1.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] open("/nix/store/x3pml23b47s4pk5bmgghhra39ijgxdsn-haskell-cipher-rc4-ghc7.6.3-0.1.4.lock", O_RDWR|O_CREAT, 0600) = 37
[pid 21187] fcntl(37, F_GETFD)          = 0
[pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21187] close(37)                   = 0
[pid 21187] select(0, [], NULL, NULL, {5, 0} <unfinished ...>
[pid 21218] <... select resumed> )      = 0 (Timeout)
[pid 21218] open("/nix/store/5wvdygwzdqf7z6hq0jczlr3mzgs7dhm8-haskell-asn1-types-ghc7.6.3-0.2.1.lock", O_RDWR|O_CREAT, 0600) = 25
[pid 21218] fcntl(25, F_GETFD)          = 0
[pid 21218] fcntl(25, F_SETFD, FD_CLOEXEC) = 0
[pid 21218] fcntl(25, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21218] close(25)                   = 0
[pid 21218] open("/nix/store/k8ywl0npdzal6ww2x8igaq9wbd292n9d-haskell-http-types-ghc7.6.3-0.8.2.lock", O_RDWR|O_CREAT, 0600) = 25
[pid 21218] fcntl(25, F_GETFD)          = 0
[pid 21218] fcntl(25, F_SETFD, FD_CLOEXEC) = 0
[pid 21218] fcntl(25, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21218] close(25)                   = 0
[pid 21218] open("/nix/store/g6byzzh1bpw58bi5fa4pjxsf73dnjiwv-haskell-asn1-data-ghc7.6.3-0.7.1.lock", O_RDWR|O_CREAT, 0600) = 25
[pid 21218] fcntl(25, F_GETFD)          = 0
[pid 21218] fcntl(25, F_SETFD, FD_CLOEXEC) = 0
[pid 21218] fcntl(25, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21218] close(25)                   = 0
[pid 21218] open("/nix/store/iwxvzgqgighbyfiirjk4zpvvppacpz00-haskell-dlist-ghc7.6.3-0.5.lock", O_RDWR|O_CREAT, 0600) = 25


lr-x------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/0 -> /dev/null
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/1 -> socket:[13172482]
l-wx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/10 -> pipe:[13213655]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/11 -> pipe:[13213656]
l-wx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/12 -> pipe:[13213660]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/13 -> pipe:[13213657]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/14 -> pipe:[13213661]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/15 -> /nix/var/nix/temproots/21187
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/16 -> pipe:[13213662]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/17 -> /nix/store/38swvz62spi17pvgizmqvn0w1d7mdnqi-haskell-entropy-ghc7.6.3-0.2.2.4.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/18 -> /nix/store/0b4393lqknqz6qxlzxxpk87qdg5ypxq2-haskell-zlib-ghc7.6.3-0.5.4.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/19 -> /nix/store/wr7s20ch3dadk29igqwmb8hx8k7mabx6-haskell-socks-ghc7.6.3-0.5.4.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/2 -> socket:[13172482]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/20 -> /nix/store/7ih6cvszh10q4ky438dfmhcz4irnhv32-haskell-crypto-pubkey-types-ghc7.6.3-0.4.0.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/21 -> /nix/store/7psqq560l2mc38gm33pk43njxdhiknx3-haskell-regex-compat-ghc7.6.3-0.95.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/22 -> /nix/store/zgqvk4dl5pd81k8k2k2sm8jz4407syis-haskell-zlib-conduit-ghc7.6.3-1.0.0.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/23 -> /nix/store/n6wsi2d033wadpam13hcgqwz3a2733ri-haskell-aeson-ghc7.6.3-0.6.2.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/24 -> /nix/store/iwxvzgqgighbyfiirjk4zpvvppacpz00-haskell-dlist-ghc7.6.3-0.5.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/25 -> /nix/store/smyfl02fbc61c5wpgfhfz96rcqq1gh7l-haskell-publicsuffixlist-ghc7.6.3-0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/26 -> /nix/store/g6byzzh1bpw58bi5fa4pjxsf73dnjiwv-haskell-asn1-data-ghc7.6.3-0.7.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/27 -> /nix/store/jh027r4qs484d263in0hgvvivxbwjxcj-haskell-data-default-instances-base-ghc7.6.3-0.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/28 -> /nix/store/05csvwqf5q4r98brbv0ppx8d7a22fbbh-haskell-pem-ghc7.6.3-0.2.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/29 -> /nix/store/2sg20iz7sr4asljxk1a0ni6wdlb0ysvi-haskell-base64-bytestring-ghc7.6.3-1.0.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/3 -> socket:[13178954]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/30 -> /nix/store/8xm20rmihbinska2xpx2mrd71rbw60y3-haskell-network-ghc7.6.3-2.4.1.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/31 -> /nix/store/yk6z4nmbyp6mdw1bpqkyl284yfmrp5nw-haskell-data-default-instances-old-locale-ghc7.6.3-0.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/32 -> /nix/store/9pg8cmw7vwpm1v95xbp7j26lckrmp66d-haskell-zlib-bindings-ghc7.6.3-0.1.1.3.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/33 -> /nix/store/5wvdygwzdqf7z6hq0jczlr3mzgs7dhm8-haskell-asn1-types-ghc7.6.3-0.2.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/34 -> /nix/store/r2138ipqrc259cd6jzb3kx8il71hv0bh-haskell-data-default-ghc7.6.3-0.5.3.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/35 -> /nix/store/q2z5m5rz2y2r8zrcq1blpkkf752ysq9p-haskell-mime-types-ghc7.6.3-0.1.0.3.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/36 -> /nix/store/k8ywl0npdzal6ww2x8igaq9wbd292n9d-haskell-http-types-ghc7.6.3-0.8.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/38 -> /nix/store/qhnj36i3symlqamp0sg9dlrl1b9h34qn-haskell-transformers-compat-ghc7.6.3-0.1.1.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/39 -> /nix/store/zb8xg3j73ma0jdpbkdlx4p8kclgm8ynm-haskell-cookie-ghc7.6.3-0.4.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/4 -> socket:[13213432]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/40 -> /nix/store/zyiablar96m8v3rjcby0dk34ja3hn8qm-haskell-data-default-instances-dlist-ghc7.6.3-0.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/5 -> /nix/var/nix/db/big-lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/6 -> /nix/var/nix/db/db.sqlite
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/7 -> /nix/var/nix/db/db.sqlite-wal
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/8 -> /nix/var/nix/db/db.sqlite-shm
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/9 -> /nix/store/y1ffn3bkksqgpz7i5ibwcaax282kjd3b-liblastfm-0.3.0.0.tar.gz.lock
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/0 -> /dev/null
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/1 -> socket:[13172482]
l-wx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/10 -> pipe:[13252973]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/11 -> pipe:[13252974]
l-wx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/12 -> pipe:[13252978]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/13 -> pipe:[13252975]
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/14 -> pipe:[13252979]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/15 -> /nix/var/nix/temproots/21218
lr-x------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/16 -> pipe:[13252980]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/17 -> /nix/store/x3pml23b47s4pk5bmgghhra39ijgxdsn-haskell-cipher-rc4-ghc7.6.3-0.1.4.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/18 -> /nix/store/0k812bnyx4x5pncs4mql2g2zvvdv0p0s-haskell-generic-deriving-ghc7.6.3-1.6.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/19 -> /nix/store/n5cf0xmmjamfyvf6cwvqlbmdry4xpm2p-haskell-shakespeare-ghc7.6.3-1.2.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/2 -> socket:[13172482]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/20 -> /nix/store/245grj9284mhp0s9r9xpiibbbz13119l-haskell-system-fileio-ghc7.6.3-0.3.11.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/21 -> /nix/store/4yk7wkw7ggfgi18fig4d8zh4z00z06qk-haskell-system-filepath-ghc7.6.3-0.4.8.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/22 -> /nix/store/mpbwif9nvavl4k203i1b8m8g0w6vhq8i-stdenv.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/23 -> /nix/store/7fwaczird4ivnfw8s1xnc3l4mp1yc6c6-haskell-reflection-ghc7.6.3-1.3.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/24 -> /nix/store/c6ffbgl39avfsc78py44aysgx7gdfajh-haskell-blaze-markup-ghc7.6.3-0.5.1.5.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/26 -> /nix/store/9d142bb348d2bi0nfgxjsinlpcg5igdi-haskell-optparse-applicative-ghc7.6.3-0.7.0.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/27 -> /nix/store/sfdwzhxn0jypr3ddnsx8pslngzzn298h-haskell-cryptohash-ghc7.6.3-0.11.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/29 -> /nix/store/vfg7c52r5y4wkgk7d7mdcbwfgcm3x82l-haskell-blaze-html-ghc7.6.3-0.6.1.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/3 -> socket:[13178954]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/30 -> /nix/store/nbdv5fk8qi7a3vbx86m257fx6d00lk7g-haskell-crypto-numbers-ghc7.6.3-0.2.3.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/33 -> /nix/store/vjvqvfzixj8dvflfjcnjkh0m7vjj0zjd-haskell-tagged-ghc7.6.3-0.7.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/34 -> /nix/store/w0pj5qlm323f5nmaskn6ah14s3qnjd83-haskell-MonadCatchIO-transformers-ghc7.6.3-0.3.0.0.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/35 -> /nix/store/sf7vlw0fd4b3dxrzrf8mdmcywid8z9qy-haskell-failure-ghc7.6.3-0.2.0.1.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/36 -> /nix/store/v9qkdrw8l2irn58kxpfcy8854l9fgky4-haskell-split-ghc7.6.3-0.2.2.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/38 -> /nix/store/877sm4yxzlv6v1b1p02z981s13jyxghf-haskell-xml-types-ghc7.6.3-0.3.4.lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/4 -> socket:[13252321]
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/5 -> /nix/var/nix/db/big-lock
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/6 -> /nix/var/nix/db/db.sqlite
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/7 -> /nix/var/nix/db/db.sqlite-wal
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/8 -> /nix/var/nix/db/db.sqlite-shm
lrwx------ 1 root root 64 Nov 25 17:30 /proc/21218/fd/9 -> /nix/store/5b5m39saq9hbbn2fzqd00ifw3dn0y4y0-DAV-0.4.1.tar.gz.lock

Activity

  1. edolstra commented on Nov 26, 2013

    @edolstra
    Member

    Where's the deadlock?

    Also, please post more information than just an strace without context. There is no way I can reproduce this.

  2. mornfall commented on Nov 26, 2013

    @mornfall
    Author

    nix-store -r paths1 & nix-store -r paths2

    where paths1 and paths2 have some overlap (maybe they need to be substitutable, not sure); if you look at the strace and the fd list below, you can see that 21218 holds /nix/store/sf7vlw0fd4b3dxrzrf8mdmcywid8z9qy-haskell-failure-ghc7.6.3-0.2.0.1.lock open (fd 35, presumably fcntl-locked). At the same time 21217 tries to open and lock the same file:

    [pid 21187] open("/nix/store/sf7vlw0fd4b3dxrzrf8mdmcywid8z9qy-haskell-failure-ghc7.6.3-0.2.0.1.lock", O_RDWR|O_CREAT, 0600) = 37
    [pid 21187] fcntl(37, F_GETFD)          = 0
    [pid 21187] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
    [pid 21187] fcntl(37, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
    

    The same but with the processes flipped is going on with /nix/store/k8ywl0npdzal6ww2x8igaq9wbd292n9d-haskell-http-types-ghc7.6.3-0.8.2.lock:

    lrwx------ 1 root root 64 Nov 25 17:30 /proc/21187/fd/36 -> /nix/store/k8ywl0npdzal6ww2x8igaq9wbd292n9d-haskell-http-types-ghc7.6.3-0.8.2.lock
    
    [pid 21218] open("/nix/store/k8ywl0npdzal6ww2x8igaq9wbd292n9d-haskell-http-types-ghc7.6.3-0.8.2.lock", O_RDWR|O_CREAT, 0600) = 25
    [pid 21218] fcntl(25, F_GETFD)          = 0
    [pid 21218] fcntl(25, F_SETFD, FD_CLOEXEC) = 0
    [pid 21218] fcntl(25, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
    [pid 21218] close(25)                   = 0
    
  3. mornfall commented on Nov 27, 2013

    @mornfall
    Author
  4. mornfall commented on Nov 28, 2013

    @mornfall
    Author
    build.cc:2658:    if (!outputLock->lockPaths(singleton<PathSet>(storePath), "", false)) {
    

    there's a bunch of SubstitutionGoals running at the same time in one process, and they grab locks in random order; if two processes do the same, deadlock results... for lockPaths to work as intended, calls to lockPaths and unlock must strictly alternate... calling lockPaths twice in a row is always a bug;

    I'd suggest for each Goal to export a set of paths it wants to lock, and run would then stuff all of them into a single LockPaths instance. This however means goals cannot be created from within run (i.e. the goal graph needs to be built upfront, not on-demand).

    The other option seems to be for Worker to proxy locking for Goals. When a Goal asks for a new lock, it's tried, but if it fails, all processing must be stopped, all locks dropped and the process started from scratch. This comes with its own set of problems. It might mean you need to wait with lock dropping until all busy goals finish whatever they are doing. This could induce substantial delays. You can drop idle locks early, that might help with the delays. But it's still all kinda complex and awkward.

  5. edolstra commented on Feb 26, 2014

    @edolstra
    Member

    Substitution goals cannot deadlock because they only acquire a single lock. Derivations goals cannot deadlock either because they acquire the locks for each output in alphabetical order.

    Maybe it's just a hanging substituter, or a livelock caused by a lack of build slots?

  6. mornfall commented on Feb 27, 2014

    @mornfall
    Author

    But a single nix-store instance can run multiple substitution goals, that each acquires one lock. The fact substituters acquire singleton lock is the actual cause of the deadlock, since the nix-store scheduler admits multiple such goals with locks to exist within a process. Another nix-store process can hold a different set of singleton locks. When these sets overlap, it's entirely possible that the schedulers will wait for each other's goals to finish, forever. (There are dependencies involved in running substituters, so for a particular dependency tree, holding one sorted-order lock set would fix the problem, instead of holding a singleton lock for each element in that tree.)

    The fact that this is a deadlock should be fairly obvious from the strace fragment I have posted: two processes, each waiting for a lock held by the other.

  7. edolstra commented on Feb 27, 2014

    @edolstra
    Member

    There is no hold and wait condition so there cannot be a deadlock. Once a process has a acquired a lock on a path to substitute it, it will proceed to run the substituter. It may also probe for other locks, but failure to get them doesn't block the substituter from completing. So eventually the lock will be released.

    The strace does not show a deadlock at all: it shows two processes doing a non-blocking probe for a lock held by the other, which is not a deadlock if they're both making progress.

  8. edolstra commented on Feb 27, 2014

    @edolstra
    Member

    Actually, it seems that the lock doesn't get released anymore. Investigating...

  9. added a commit that references this issue on Feb 26, 2025
  10. 16 remaining items

  11. added 15 commits that reference this issue on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions