oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.09k stars 2.47k forks source link

"Failed to get cpu information" on supported architecture #10877

Closed atbe closed 1 week ago

atbe commented 1 week ago

What version of Bun is running?

bun-v1.1.7

What platform is your computer?

x86

What steps can reproduce the bug?

Spinning up a box on vast.ai, hard to pinpoint what about this specific distro/machine is triggering the exception.

I expect to be able to get cpu info. It doesn't include much more info beyond that. Seems like this exception is being thrown: https://github.com/oven-sh/bun/blob/16bf341a60672da1fcf6a1204913f1da903974f6/src/bun.js/node/node_os.zig#L65

import si from "systeminformation";
console.log(si.cpu())

Here's the side-by-side of me running the same function call that bun runs internally.


I'm currently working try and get a proper stacktrace.

What is the expected behavior?

That the cpu info is returned.

What do you see instead?

An exception is thrown because the os cannot be identified.

Additional information

No response