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
Windows binary crashes with EUNKNOWN on startup when B: drive (Zscaler-mapped) is unreachable #182
The compiled Windows binary (cyberstrike-windows-x64) crashes at startup with:
Error: Unexpected error, check log file at ... for more details
EUNKNOWN: unknown error, open 'B:\~BUN\locales\en_US.json'
at _readLocaleFile (.../y18n@5.0.8/.../build/lib/index.js:135:51)
at builder (src/cli/cmd/tui/thread.ts:49:8)
The same binary runs fine for days, then suddenly crashes. It is not a build defect — it is an environment-dependent crash tied to the B: drive letter.
Root cause
Bun mounts a compiled executable's embedded files at the virtual path B:\~BUN\.
On machines where B: is a real mapped network drive (commonly mapped by Zscaler Client Connector in enterprise environments), fs.readFileSync('B:\~BUN\locales\en_US.json') is routed to the real drive.
yargs@18 → y18n@5.0.8 lazily reads its locale file. In _readLocaleFile() (build/lib/index.js:142) it only swallows ENOENT; any other error is rethrown:
if(err.code==='ENOENT')localeLookup={};// file missing -> fine, use defaultselsethrowerr;// <-- anything else is fatal
When B: is reachable (or absent), the missing locale file returns ENOENT → swallowed → works.
When B: is unreachable (Zscaler/VPN down, device not ready), the OS returns EUNKNOWN, not ENOENT → y18n rethrows → the entire CLI dies over a cosmetic i18n file.
This explains "worked for days, broke today": Zscaler dropped, B: went not-ready, the same read flipped from ENOENT to EUNKNOWN.
Fix
Patch y18n via Bun patchedDependencies so a locale read failure never crashes the CLI — treat any read error (not just ENOENT) as "no locale file, use built-in English defaults". Small, surgical, immune to B:-drive / VPN / AV interference. Rebuilt across the 11-OS release pipeline.
Impact
Zscaler is pervasive in enterprise environments — exactly the target market. Any customer whose Zscaler client maps B: hits this whenever Zscaler drops. A startup crash makes the product unusable until the drive comes back.
Repro
Windows machine where B: is a mapped-but-disconnected network drive → run cyberstrike.exe → EUNKNOWN crash. Reconnect so B: resolves → works again.
Workaround (end user)
Reconnect Zscaler (so B: resolves), or net use B: /delete then rerun.
Fixed in commit 69fbd68: y18n patched via patchedDependencies so a non-ENOENT locale read error (EUNKNOWN from an unreachable Bun B: mount) falls back to defaults instead of crashing. Ships in the next build.
Activity
badchars commentedon Nov 17, 2026
Fixed in commit 69fbd68: y18n patched via patchedDependencies so a non-ENOENT locale read error (EUNKNOWN from an unreachable Bun B: mount) falls back to defaults instead of crashing. Ships in the next build.
fix(cli): don't crash on locale read failure (Bun B: drive / Zscaler)