bun
bun copied to clipboard
pure virtual method called
What version of Bun is running?
1.0.0
What platform is your computer?
Ubuntu 20.04 LTS on WSL on x64 Win 11
What steps can reproduce the bug?
- have
await Bun.file(path).text()calls in the code (example ) - run
bun run file.ts
What is the expected behavior?
No error, code getting executed
What do you see instead?
STDOUT:
pure virtual method called
exit code: 1
Additional information
Replacing the calls with fsPromise.readFile() or fs.readFileSync() works.
Bun.write() works just fine.
This is also something I have experienced on MacOS.
libc++abi: Pure virtual function called!
i did not do much digging, but few points:
me too on MacOS M1 Bun 1.20.0
Also experiencing this with v1.0.31, v1.0.33 and v1.1.3 on macOS 14.4 (arm)
I am getting this on bun 1.1.4, intel mac 14.4.1