An unexpected crash occurred while bulk writing a BadgerDB

What version of Go are you using (go version)?

$ go version

go version go1.16.7 darwin/amd64

What operating system are you using?

macOS Catalina 10.15.7

What version of Badger are you using?


Does this issue reproduce with the latest master?


Steps to Reproduce the issue

What Badger options were set?


What did you do?

Bulk writing a BadgerDB

What did you expect to see?

Finish writing without an error

What did you see instead?

BadgerDB crashed:

unexpected fault address 0x33f00000
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x33f00000 pc=0x13b2a02]