Comments (6)
Stack trace:
[bun shell] $ DEBUG=localfluence-auth-server:* && bun --hot ./bin/www
uh-oh: reached unreachable code
bun will crash now 😭😭😭
----- bun meta -----
Bun v1.1.1 (b8278052) Windows x64
AutoCommand: standalone_shell
Elapsed: 11ms | User: 0ms | Sys: 0ms
RSS: 33.55MB | Peak: 33.55MB | Commit: 70.00MB | Faults: 8375
----- bun meta -----
0 00007FF7797A5108
1 ???
2 ???
3 ???
4 ???
5 ???
6 ???
7 ???
8 ???
9 ???
10 ???
11 ???
12 ???
13 ???
14 ???
15 ???
16 ???
17 ???
18 ???
19 ???
20 ???
21 ???
22 ???
23 ???
Search GitHub issues https://bun.sh/issues or join in #windows channel in https://bun.sh/discord
thread 5936 panic: reached unreachable code
C:\bun\src\main.zig:19:34: 0x7ff7760912cc in panic (bun-zig.o)
MainPanicHandler.handle_panic(msg, trace, addr);
^
C:\bun\src\deps\zig\lib\std\debug.zig:342:14: 0x7ff77609537d in assert (bun-zig.o)
if (!ok) unreachable; // assertion failure
^
C:\bun\src\shell\shell.zig:1739:25: 0x7ff7768105ee in expect_delimit (bun-zig.o)
std.debug.assert(self.delimits(self.peek()));
^
C:\bun\src\shell\shell.zig:1521:48: 0x7ff77680ec7d in parse_assign (bun-zig.o)
_ = self.expect_delimit();
^
C:\bun\src\shell\shell.zig:1413:38: 0x7ff776810f99 in parse_simple_cmd (bun-zig.o)
if (try self.parse_assign()) |assign| {
^
C:\bun\src\shell\shell.zig:1156:42: 0x7ff7764e2e59 in parse_compound_cmd (bun-zig.o)
return (try self.parse_simple_cmd()).to_expr(self.alloc);
^
C:\bun\src\shell\shell.zig:1070:47: 0x7ff7764e22d5 in parse_pipeline (bun-zig.o)
var expr = try self.parse_compound_cmd();
^
C:\bun\src\shell\shell.zig:1049:43: 0x7ff7764e37e5 in parse_binary (bun-zig.o)
var left = try self.parse_pipeline();
^
C:\bun\src\shell\shell.zig:1045:37: 0x7ff7764e3d3e in parse_expr (bun-zig.o)
return try self.parse_binary();
^
C:\bun\src\shell\shell.zig:991:45: 0x7ff7764e426c in parse_stmt (bun-zig.o)
const expr = try self.parse_expr();
^
C:\bun\src\shell\shell.zig:972:49: 0x7ff7764e4bcd in parse_impl (bun-zig.o)
try stmts.append(try self.parse_stmt());
^
C:\bun\src\shell\shell.zig:958:35: 0x7ff7764e51be in parse (bun-zig.o)
return try self.parse_impl();
^
C:\bun\src\shell\interpreter.zig:1070:52: 0x7ff7764e566b in parse (bun-zig.o)
const script_ast = try out_parser.*.?.parse();
^
C:\bun\src\shell\interpreter.zig:1260:45: 0x7ff7764f1587 in initAndRunFromSource (bun-zig.o)
const script = ThisInterpreter.parse(&arena, src, jsobjs, &[_]bun.String{}, &out_parser, &out_lex_result) catch |err| {
^
C:\bun\src\cli\run_command.zig:320:68: 0x7ff7764f3739 in runPackageScriptForeground (bun-zig.o)
const code = bun.shell.Interpreter.initAndRunFromSource(ctx, mini, name, combined_script) catch |err| {
^
C:\bun\src\cli\run_command.zig:1468:56: 0x7ff776511343 in exec__anon_88904 (bun-zig.o)
if (!try runPackageScriptForeground(
^
C:\bun\src\cli.zig:1818:44: 0x7ff7765179fe in start (bun-zig.o)
if (try RunCommand.exec(ctx, true, false, true)) {
^
C:\bun\src\cli.zig:59:22: 0x7ff776093ac4 in start__anon_5651 (bun-zig.o)
Command.start(allocator, log) catch |err| {
^
C:\bun\src\main.zig:55:22: 0x7ff776091498 in main (bun-zig.o)
bun.CLI.Cli.start(bun.default_allocator, MainPanicHandler);
^
C:\bun\src\deps\zig\lib\std\start.zig:484:101: 0x7ff7760911e3 in main (bun-zig.o)
return @call(.always_inline, callMainWithArgs, .{ @as(usize, @intCast(c_argc)), @as([*][*:0]u8, @ptrCast(c_argv)), envp });
^
D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0: 0x7ff77ad2bed3 in __scrt_common_main_seh (msvcrt.lib)
???:?:?: 0x7ffd5912257c in ??? (KERNEL32.DLL)
???:?:?: 0x7ffd5ad6aa57 in ??? (ntdll.dll)
from bun.
Also I feel this is related to windows only, in WSL2 the server is running fine
localfluence-auth-server git:(main) bun run dev
$ DEBUG=localfluence-auth-server:* && bun --hot ./bin/www
Connected to MongoDB
from bun.
This was related to a parsing error with globbing syntax and should be fixed in #9940
from bun.
Hi @zackradisic ,
Thanks for the fixes but the issue on windows is still there, I upgraded my bun version to 1.1.1.
Tried command on both powershell and git bash
PS: This works on Windows Subsystem for Linux 2
(even before the fixes)
from bun.
@karprabha please run bun upgrade --canary
and try again
this isn't in 1.1.1, but it will be in 1.1.2
from bun.
@karprabha please run
bun upgrade --canary
and try againthis isn't in 1.1.1, but it will be in 1.1.2
Hi @Jarred-Sumner , thanks for the prompt response
prabhakar@ZEUS MINGW64 /d/Git/localfluence/localfluence-auth-server (main)
$ bun upgrade --canary
Downloading... error: Canary builds are not available for this platform yet
Release: https://github.com/oven-sh/bun/releases/tag/canary
Filename: bun-windows-x64.zip
I guess I'll wait for the stable built no issues. Also thanks zackradisic
again for such quick fixes, Have a nice day
from bun.
Related Issues (20)
- `bun update` doesn't update `package.json` in windows and WSL HOT 1
- bun install doesn't respect `installConfig: { "hoistingLimits": }` value in package.json inside a yarn monorepo
- `bunx --version`
- InvalidURL - Installing a library, works on npm/node HOT 14
- Add --unsafely-ignore-certificate-errors[=<HOSTNAMES>...] flag HOT 5
- could not run executable which from `bun build --compile --target=node` HOT 1
- Bun is case-sensetive to file extensions on Windows
- Maximum url length (or header size) is different from Node's default HOT 1
- Handling Dependency while bun install
- Run bun update, the file package.json not update
- Windows11 Bun.write bug
- Support foundationDB HOT 3
- PWA App Production Build Failure on Vercel (Works on Yarn)
- bun upgrade on windows
- Not able to start CycleTLS instance
- NestJs unpredictable behaviour HOT 1
- bun.exe --bun x @ulixee/cloud start Illegal instruction at address 0x7ff7e0805671
- Bun does not read the .env file correctly HOT 3
- Bun upgrade not work in windows
- Playwright does not work on Bunjs environment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bun.