foundry-rs / foundry-rs/foundry

`Text file busy (os error 26)` due to race condition in SVM when doing multiple installations

Open
#4,736 16 comments 3 reactions 0 assignees View on GitHub
A-compiler C-forge Cmd-forge-build T-bug
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Forge

### Have you ensured that all of these are up to date?

- [X] Foundry
- [X] Foundryup

### What version of Foundry are you on?

nightly

### What command(s) is the bug in?

forge build

### Operating System

Linux

### Describe the bug

Our monorepo has a bunch of packages, each using foundry nightly in CI (via `foundry-rs/foundry-toolchain@v1`). Each of these use `forge build` in their build step and we recently tried to turn on parallel builds (via `pnpm`), but it failed with

```
Text file busy (os error 26)
```

The logs weren't specific about where this was coming from, but I later saw a log line that mentioned `solc-0.8.13`:

![image](https://user-images.githubusercontent.com/508855/231887985-ea665bbf-1865-48f0-b7f6-4ef6ccd5b5a2.png)

Unclear if this is a foundry issue or solc issue, but it originates from `forge build`, so I'm starting here.

Ultimately would like to be able to run `forge build` for multiple foundry projects in parallel. Is this an issue with some sort of global cache? Or strictly just a ulimit thing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.