Lix client keeps onto eval-cache lock while building #608

Open
opened 2024-12-27 23:08:47 +00:00 by yu-re-ka · 0 comments
Member

Describe the bug

[yuka@yuyu:~/proj/nixpkgs]$ lsof /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
      Output information may be incomplete.                                                                 
COMMAND     PID USER FD   TYPE DEVICE SIZE/OFF      NODE NAME                                               
nix      451641 yuka 4u   REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix      616970 yuka 4u   REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix      837312 yuka 4u   REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix      942240 yuka 4u   REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix      993433 yuka 4u   REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix     3112563 yuka 4uw  REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite
nix     3116532 yuka 4ur  REG  254,1    12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite

Process with id 3112563 is holding a write lock.
A stack trace from this process tells us that it is busy building something.

Steps To Reproduce

Start multiple builds of firefox from staging on the same machine
The second and following processes get stuck evaluating

Expected behavior

First process should drop the write lock as soon as it's done evaluating

nix --version output

nix (Lix, like Nix) 2.92.0-dev-pre20241211-92ed9fe

Additional context

Add any other context about the problem here.

## Describe the bug ``` [yuka@yuyu:~/proj/nixpkgs]$ lsof /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nix 451641 yuka 4u REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 616970 yuka 4u REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 837312 yuka 4u REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 942240 yuka 4u REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 993433 yuka 4u REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 3112563 yuka 4uw REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite nix 3116532 yuka 4ur REG 254,1 12288 269304390 /home/yuka/.cache/nix/eval-cache-v5/da35028cde15e478e43bd4a6095682652f83d3611a2fb1c4cb947e1547e708c1.sqlite ``` Process with id 3112563 is holding a write lock. A stack trace from this process tells us that it is busy building something. ## Steps To Reproduce Start multiple builds of firefox from staging on the same machine The second and following processes get stuck evaluating ## Expected behavior First process should drop the write lock as soon as it's done evaluating ## `nix --version` output nix (Lix, like Nix) 2.92.0-dev-pre20241211-92ed9fe ## Additional context Add any other context about the problem here.
yu-re-ka added the
bug
label 2024-12-27 23:08:47 +00:00
jade added the
release-blocker
label 2025-01-06 23:24:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#608
No description provided.