--- a/nix/libstore/build.cc.orig 2019-05-03 14:25:15.000000000 +0200 +++ b/nix/libstore/build.cc 2019-09-02 17:53:29.000000000 +0200 @@ -492,7 +492,7 @@ void UserLock::acquire() { - assert(uid == 0); + // assert(uid == 0); assert(settings.buildUsersGroup != ""); @@ -571,9 +571,9 @@ void UserLock::release() { - if (uid == 0) return; + // if (uid == 0) return; fdUserLock.close(); /* releases lock */ - assert(lockedPaths.find(fnUserLock) != lockedPaths.end()); + // assert(lockedPaths.find(fnUserLock) != lockedPaths.end()); lockedPaths.erase(fnUserLock); fnUserLock = ""; uid = 0;