Skip to content

sigsegv in bun test buffer #4062

Closed
@jecquas

Description

What version of Bun is running?

0.7.4 (320ee6b)

What platform is your computer?

Linux 5.19.0-50-generic x86_64 x86_64

What steps can reproduce the bug?

make setup
make release-bindings -j12
make release
./packages/bun-linux-x64/bun test buffer

What is the expected behavior?

Tests should pass (they do in 0.7.3)

What do you see instead?

➜  bun git:(main) ✗ ./packages/bun-linux-x64/bun -v
0.7.4
➜  bun git:(main) ✗ ./packages/bun-linux-x64/bun test buffer
bun test v0.7.4 (320ee6b6)

test/js/node/buffer.test.js:
✓ Buffer.copy > should work [0.44ms]
✓ Buffer.copy > should work with offset [0.06ms]
✓ Buffer.copy > should ignore sourceEnd if it's out of range [0.05ms]
✓ Buffer.copy > copy to the same buffer [0.06ms]
✓ Buffer.fill string > hello world [0.15ms]
✓ Buffer.fill string > 1234567890 [0.05ms]
✓ Buffer.fill string > 😀 [0.05ms]
✓ Buffer.fill string > 😀😃😄😁😆😅😂🤣☺😊😊😇 [0.05ms]
✓ isAscii [0.08ms]
✓ isUtf8 [0.08ms]
✓ Buffer global is settable [0.04ms]
✓ length overflow [0.12ms]
✓ truncate input values [0.17ms]
✓ Buffer.allocUnsafe() [0.04ms]
✓ Buffer.from() [0.29ms]
✓ offset properties [0.06ms]
✓ creating a Buffer from a Uint32Array [0.09ms]
✓ creating a Buffer from a Uint32Array (old constructor) [0.07ms]
✓ invalid encoding [0.11ms]
✓ create 0-length buffers [0.05ms]
✓ write() beyond end of buffer [0.11ms]
✓ copy() beyond end of buffer [0.04ms]
✓ smart defaults and ability to pass string values as offset [0.08ms]
✓ ASCII slice [0.14ms]
✓ UTF-8 slice [0.12ms]
✓ only top level parent propagates from allocPool [0.08ms]
✓ only top level parent propagates from a non-pooled instance [0.05ms]
✓ UTF-8 write() & slice() [0.04ms]
✓ triple slice [0.07ms]
✓ Buffer.from() with encoding [0.21ms]
✓ construction from arrayish object [0.10ms]
✓ toString('base64') [0.05ms]
[1]    75955 segmentation fault (core dumped)  ./packages/bun-linux-x64/bun test buffer

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashAn issue that could cause a crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions