Segmentation fault on asyncAggregateWithRandomness
- Dominant language
- Zig
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I tried this in my MacBook aarch64:
```typescript
it.only("fuzzy test - asyncAggregateWithRandomness", async () => {
let now = Date.now();
for (let i = 0; i < 1000; i ++) {
const {pk, sig} = await asyncAggregateWithRandomness(sets);
console.log("@@@ finish round ", i);
expect(verify(msg, pk, sig)).toBeTrue();
}
console.log("asyncAggregateWithRandomness", (Date.now() - now) / 1000);
});
```
sometimes it cause:
```
test/unit/aggregateWithRandomness.test.ts:
@@@ finish round 0
@@@ finish round 1
@@@ finish round 2
@@@ finish round 3
@@@ finish round 4
@@@ finish round 5
@@@ finish round 6
============================================================
Bun v1.2.5 (013fdddc) macOS Silicon
macOS v15.3.2
Args: "bun" "test" "test/unit/aggregateWithRandomness.test.ts"
Features: jsc tsconfig
Builtins: "bun:ffi" "node:buffer" "node:crypto" "node:path" "node:string_decoder" "node:util/types"
Elapsed: 137ms | User: 64ms | Sys: 32ms
RSS: 62.39MB | Peak: 62.39MB | Commit: 1.07GB | Faults: 1516
panic: Segmentation fault at address 0x10
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.2.5/Mt1013fdddEgggQ__+3m+5B+96j6Bu+jm6Bm+t95BulginB2pkinBm/18mB2jwpnBA2AgB
Trace/BPT trap: 5
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.