Skip to content

Segmentation fault on asyncAggregateWithRandomness #44

@twoeths

Description

@twoeths

I tried this in my MacBook aarch64:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions