I'm using the bun test runner for testing Solidity contracts with the HardHat default provider. On each revert from the Solidity contract bun crashes with a segfault.
How can we reproduce the crash?
Install dependencies
bun install hardhat @nomicfoundation/hardhat-toolbox
Hi,
I'm using the bun test runner for testing Solidity contracts with the HardHat default provider. On each
revert
from the Solidity contract bun crashes with a segfault.How can we reproduce the crash?
Install dependencies
Configure HardHat in
./hardhat.config.js
Create the minimal Solidity contract in
./contracts/Revert.sol
Compile the Solidity contract
Create the minimal JS test using the bun test runner in
./tests/Revert.test.js
Run the test with the bun test runner
The bun test runner crashes every time.
Thank you for doing the exceptional work!
Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.32 (
fe8d007
) on linux x86_64_baseline [TestCommand]Segmentation fault at address 0x00000020
ZigGlobalObject.cpp:308
:formatStackTraceToJSValue
ZigGlobalObject.cpp:2642
:Zig::jsFunctionDefaultErrorPrepareStackTrace
ld-temp.o:0
:llint_call_javascript
ld-temp.o:0
:JSC::Interpreter::executeCall
ZigGlobalObject.cpp:336
:formatStackTraceToJSValue
ZigGlobalObject.cpp:697
:computeErrorInfoWithPrepareStackTrace
ZigGlobalObject.cpp:737
:computeErrorInfoToJSValue
Features: jsc, no_avx2, transpiler_cache, tsconfig