-
Notifications
You must be signed in to change notification settings - Fork 704
Closed
Description
In Go 1.14 there is now checks of pointer conversions with the requirement that they should align to the "natural size".
It seems like they decided to make this enabled when -race
is specified: golang/go#34964
This leads to crashes like this:
--- FAIL: TestNewBoltStore/Basic (0.00s)
panic: runtime error: unsafe pointer conversion [recovered]
panic: runtime error: unsafe pointer conversion
goroutine 6 [running]:
testing.tRunner.func1(0xc000100360)
/home/travis/.gimme/versions/go/src/testing/testing.go:916 +0xaeb
panic(0x6b5ee0, 0xc00000e260)
/home/travis/.gimme/versions/go/src/runtime/panic.go:967 +0x396
github.com/etcd-io/bbolt.(*freelist).write(0xc0000fc080, 0xc0000ff000, 0xc0000ff000, 0x0)
/home/travis/gopath/pkg/mod/github.com/etcd-io/[email protected]/freelist.go:318 +0xe9
github.com/etcd-io/bbolt.(*Tx).commitFreelist(0xc00011a0e0, 0x2, 0x7f603f3d1000)
/home/travis/gopath/pkg/mod/github.com/etcd-io/[email protected]/tx.go:234 +0x204
github.com/etcd-io/bbolt.(*Tx).Commit(0xc00011a0e0, 0x0, 0x0)
/home/travis/gopath/pkg/mod/github.com/etcd-io/[email protected]/tx.go:175 +0x7d6
github.com/etcd-io/bbolt.(*DB).Update(0xc000106000, 0xc00005abf8, 0x0, 0x0)
/home/travis/gopath/pkg/mod/github.com/etcd-io/[email protected]/db.go:701 +0x174
...
hansgylling, anjmao, prestonvanloon, jared2501, sb10 and 8 morelucy, typeless, anacrolix, prestonvanloon, jared2501 and 2 more
Metadata
Metadata
Assignees
Labels
No labels