fix(agent): the Windows sandbox lists the folders above the tools, so LLVM's start is not refused #156
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!156
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/windows-list-above-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every Windows build of main's longshot-builder stops at its first link with
<mingw>\bin\x86_64-w64-mingw32-clang.exe: Permission denied(proc-macro2, serde_core, quote, libm … 20+ reports in a day, none passed). The probe lines #154 added to the failed report say why (rp_0d071663be9c033d, PR #2496, nightly-272):spawn real exit 1 [... clang-23.exe: Permission denied]:clang-23.exe --versionitself is refused, so it is LLVM's start, not the driver's later spawn of cc1.longpath clang failed winerror 5and, folder by folder (clang atZ:\builder\tools\tools\llvm-mingw\bin\clang-23.exe):look 1 ok(Z:\builder),look 2 8.3-like failed winerror 5(Z:\builder\tools),look 3 ok…LLVM's start looks up every folder above its own path (Longshot #910); each lookup lists the folder above it. Z:\ is listed and
Z:\builder\toolsis read, but nothing listsZ:\builder, which holds the tools since #2286's builder keeps them in<data>\builder\tools(make_game.py's were<data>\tools, a child of the root). So the second lookup is refused.Fix:
WinDrive.ListAbovenames every folder strictly between the drive's root and each grant;WindowsSandbox.Preparegives each a listing of itself alone (WinAccess.List: its entries, no file's data, nothing inherited, as the root has). It replaces the attributes-only grant a writable root's parent gets, and is skipped where a read or modify grant covers the folder already.Not built or run here (this PC's rules). If the link still fails afterwards the next error is the driver's (
-no-canonical-prefixes, docs/windows-clang.md), which the probe lines will show.🤖 Generated with Claude Code