Skip to content

Instantly share code, notes, and snippets.

View itachi47's full-sized avatar
🎯
Focusing

Kuldeep Singh Karhana itachi47

🎯
Focusing
View GitHub Profile
@itachi47
itachi47 / repro.sh
Created September 25, 2026 10:51
Repro for foundry-rs/foundry#11486: anvil fork of a fork deadlocks under concurrent uncached reads
#!/usr/bin/env bash
# Repro for foundry-rs/foundry#11486: anvil (A) that is itself a fork hangs
# when another fork (B) pulls many uncached accounts from it at once.
# C (plain anvil) <- slow proxy <- A (fork) <- B (fork of A)
# Usage: ./repro.sh <parallel_workers> [requests]
# Env: ANVIL=/path/to/anvil (default: anvil on PATH), DELAY_MS=200
set -u
cd "$(dirname "$0")"
ANVIL=${ANVIL:-anvil}
WORKERS=${1:-300}