Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal instruction on windows x64 baseline #10460

Closed
SunP04 opened this issue Apr 23, 2024 · 2 comments · Fixed by #10884
Closed

Illegal instruction on windows x64 baseline #10460

SunP04 opened this issue Apr 23, 2024 · 2 comments · Fixed by #10884
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@SunP04
Copy link

SunP04 commented Apr 23, 2024

How can we reproduce the crash?

Running any command would produce the same error, this is already very documented and a problem in all versions since 1.0

Relevant log output

λ bun i
[3.00ms] ".env"
bun install v1.1.5-canary.1 (68c13f2a)
  � eslint-plugin-react-refresh [40/135] ============================================================
Bun v1.1.5-canary.1 (68c13f2a) Windows x64 (baseline)
Features: dotenv
Elapsed: 3856ms | User: 359ms | Sys: 546ms
RSS: 97.26MB | Peak: 101.76MB | Commit: 0.16GB | Faults: 31967

panic(thread 6196): Illegal instruction at address 0x7FF71CF0B831
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.5 (68c13f2) on windows x86_64_baseline [InstallCommand]

Illegal instruction at address 0x7FF64C5BB831

Features: dotenv

@SunP04 SunP04 added bug Something isn't working crash An issue that could cause a crash labels Apr 23, 2024
@ducktype
Copy link

ducktype commented Apr 23, 2024

Bun v1.1.5 ([`68c13f2`](https://github.com/oven-sh/bun/tree/68c13f2af5dde2053e2a27859e42b31d8c9a193e)) on windows x86_64_baseline [UpdateCommand]

Illegal instruction at address 0x7FF79AB6B831

- [`libtcc.c:189`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/deps/tinycc/libtcc.c#L189): `pstrcpy`
- [`tccpp.c:408`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/deps/tinycc/tccpp.c#L408): `cstr_reset`
- [`migration.zig:631`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/install/migration.zig#L631): `migrateNPMLockfile`
- [`pdq.zig:26`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/deps/zig/lib/std/sort/pdq.zig#L26): `swap`
- [`npm.zig:661`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/install/npm.zig#L661): `writeFile`
- [`array_hash_map.zig:685`](https://github.com/oven-sh/bun/blob/68c13f2af5dde2053e2a27859e42b31d8c9a193e/src/deps/zig/lib/std/array_hash_map.zig#L685): `getOrPutContext`
- ??? at `0x1257d` in /KERNEL32.DLL
- ??? at `0x5aa48` in /ntdll.dll

Features:

<!-- from bun.report: Q9KM2eC2oQcZJdWtZEAd -->

@paperdave paperdave changed the title Segfaults on windows Illegal instruction on windows x64 baseline Apr 23, 2024
@ducktype
Copy link

Bun v1.1.5 ([#10456](https://github.com/oven-sh/bun/pull/10456)) on windows x86_64_baseline [UpdateCommand]

Illegal instruction at address 0x7FF64FFBF181

- [`libtcc.c:190`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/deps/tinycc/libtcc.c#L190): `pstrcpy`
- [`libtcc.c:193`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/deps/tinycc/libtcc.c#L193): `pstrcpy`
- [`migration.zig:621`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/install/migration.zig#L621): `migrateNPMLockfile`
- [`semver.zig:728`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/install/semver.zig#L728): `orderWithoutTag`
- [`npm.zig:661`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/install/npm.zig#L661): `writeFile`
- [`array_hash_map.zig:182`](https://github.com/oven-sh/bun/blob/024c274a3d9c530a0601d5482b0a133eca40d1a1/src/deps/zig/lib/std/array_hash_map.zig#L182): `getOrPut`
- ??? at `0x1257d` in /KERNEL32.DLL
- ??? at `0x5aa48` in /ntdll.dll

Features:

<!-- from bun.report: wdTq82Zsv05csUIupCsz -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants