Skip to content

Intermittent hadrian exception: withFile: resource busy (file is locked)

Not many in the last two weeks, though I think I've seen it before:

json->>'id' json->>'web_url' json->>'runner.description' date(json->>'created_at')
1758509 https://gitlab.haskell.org/ghc/ghc/-/jobs/1758509 azure-ci-1__9d97fee6dfe8 2024-01-23
1757881 https://gitlab.haskell.org/ghc/ghc/-/jobs/1757881 aarch64-darwin-2_aarch64-darwin-2_cf5fc9331e7a 2024-01-22
1748231 https://gitlab.haskell.org/ghc/ghc/-/jobs/1748231 aarch64-linux-2.zw3rk_aarch64-linux-2_379242e21d29 2024-01-09

Two of the occasions mention stamp-ghc-bignum-1.3-inplace_dyn; one of them mentions stamp-ghc-9.9-inplace_dyn. But see #20886: the filename may be a red herring. Or maybe not!

/---------------------------------------------------------------------------------\
| Successfully built library 'ghc-bignum' (Stage1, way v).                        |
| Library: _build/stage1/libraries/ghc-bignum/build/libHSghc-bignum-1.3-inplace.a |
| Library synopsis: GHC BigNum library.                                           |
\---------------------------------------------------------------------------------/
Error when running Shake build system:
  at want, called at src/Main.hs:126:44 in main:Main
* Depends on: test:all_deps
  at apply1, called at src/Development/Shake/Internal/Rules/Rerun.hs:41:5 in shake-0.19.7-cd9c3e55acea68cf885a8c15ce0927a9c158686ecdfdc3cb2cfc3905a7237499:Development.Shake.Internal.Rules.Rerun
* Depends on: test:check-exact
  at apply1, called at src/Development/Shake/Internal/Rules/Rerun.hs:41:5 in shake-0.19.7-cd9c3e55acea68cf885a8c15ce0927a9c158686ecdfdc3cb2cfc3905a7237499:Development.Shake.Internal.Rules.Rerun
* Depends on: _build/test/bin/check-exact
  at need, called at src/Rules/Test.hs:163:17 in main:Rules.Test
* Depends on: _build/stage1/bin/check-exact
  at need, called at src/Rules/Register.hs:86:5 in main:Rules.Register
* Depends on: _build/stage1/lib/i386-linux-ghc-9.9.20240123/libHSghc-bignum-1.3-inplace-ghc9.9.20240123.so
  at need, called at src/Rules/Library.hs:83:5 in main:Rules.Library
* Depends on: _build/stage1/lib/package.conf.d/ghc-bignum-1.3-inplace.conf
  at need, called at src/Rules/Register.hs:140:5 in main:Rules.Register
* Depends on: _build/stage1/libraries/ghc-bignum/build/stamp-ghc-bignum-1.3-inplace_dyn
* Raised the exception:
_build/stage1/libraries/ghc-bignum/build/stamp-ghc-bignum-1.3-inplace_dyn: withFile: resource busy (file is locked)
Edited by Bryan R
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information