You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/cso on Windows: setup fails with "Staged CSO core is not one executable regular file" — staged core, launcher and generation vanish before the publish step #3071
gstack 1.91.33.0 (commit db74567), installed at ~/.claude/skills/gstack
Windows 11 Pro 10.0.26300
Git for Windows (Git Bash), Bun 1.4.2
Visual Studio Build Tools 2022 17.14.41 with "Desktop development with C++"
PowerShell 7.6.6
Summary
./setup --refresh-registered fails in the CSO publish step. MSVC compiles both launcher-windows.c and publish-lock.c successfully, and every pre-publish check
in scripts/build-cso.sh passes. But when the child Bash started by gstack-cso-publish-lock.exe runs cso_publish_locked, three files are no longer
in the stage directory, so it fails with:
Staged CSO core is not one executable regular file.
Evidence
Parent run (bash -x scripts/build-cso.sh): cso_valid_artifact passes for
gstack-cso-core.exe, gstack-cso-launcher.exe and gstack-cso-publish-lock.exe; cso_valid_generation passes; the core SHA-256 matches the generation file; gstack-cso-launcher.exe --version succeeds; then:
Missing: gstack-cso-core.exe, gstack-cso-launcher.exe, .gstack-cso-generation.
The file that survives is the one that is executing (publish-lock.exe).
Not the cause, as far as we can tell:
No Windows Defender detections in the period.
No delete/move calls in launcher-windows.c or publish-lock.c.
A plain bash -c 'trap ... EXIT; exec <native exe>' does not run the EXIT trap
on this machine.
The component that removes the three files is unknown.
Secondary issue: hard-coded Windows PowerShell 5.1
setup (toolchain probe) and scripts/build-cso.sh call powershell.exe by name.
On this machine Windows PowerShell 5.1 crashes with 0xC0000005
(exit -1073741819, faulting module unknown, offset 0x0), so setup reported:
CSO unavailable: its native helper was not built (windows-msvc-toolchain)
That message is misleading: any probe failure that is not a compile error is
labeled "windows-msvc-toolchain", even when Build Tools are installed. Running the
same probe with pwsh returns 0. Workaround used to get past the probe:
Retested on v1.91.65.0 (b357b50) after #3079. Setup now completes and degrades correctly
("CSO unavailable: the native helper's publish step failed (exit 1)"), and pwsh is used for
the MSVC probe and build. Thanks.
The vanishing files still reproduce. bin/.gstack-cso-build-result:
result=failed, stage=publish, reason=exit 1, revision=1.91.65.0 (b357b50), launcher=no
Log tail: launcher-windows.c / publish-lock.c compile, then
"Staged CSO core is not one executable regular file."
Since #3079 clears the parent EXIT trap and sets execfail before the native publisher exec,
the parent cleanup trap is ruled out as the cause of the missing core, launcher and
generation files.
Activity
v1.91.60.0 fix(windows): setup degrades instead of dying on a CSO fai…
v1.91.65.0 fix(install): skills only for the agents you installed, ev…
dviolante commentedon Oct 8, 2026
Retested on v1.91.65.0 (b357b50) after #3079. Setup now completes and degrades correctly
("CSO unavailable: the native helper's publish step failed (exit 1)"), and pwsh is used for
the MSVC probe and build. Thanks.
The vanishing files still reproduce. bin/.gstack-cso-build-result:
result=failed, stage=publish, reason=exit 1, revision=1.91.65.0 (b357b50), launcher=no
Log tail: launcher-windows.c / publish-lock.c compile, then
"Staged CSO core is not one executable regular file."
Since #3079 clears the parent EXIT trap and sets execfail before the native publisher exec,
the parent cleanup trap is ruled out as the cause of the missing core, launcher and
generation files.
v1.91.60.0 fix(windows): setup degrades instead of dying on a CSO fai…
v1.91.65.0 fix(install): skills only for the agents you installed, ev…