From b4f042e2979806c0ab068b159631597abf7295ab Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Wed, 11 Mar 2020 13:41:18 -0700 Subject: [PATCH] Committing gc_goopts for issue repro --- beacon-chain/blockchain/BUILD.bazel | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/beacon-chain/blockchain/BUILD.bazel b/beacon-chain/blockchain/BUILD.bazel index 07c09b90d5f8..0f09af2cfaa2 100644 --- a/beacon-chain/blockchain/BUILD.bazel +++ b/beacon-chain/blockchain/BUILD.bazel @@ -115,6 +115,13 @@ go_test( "service_norace_test.go", ], embed = [":go_default_library"], + gc_goopts = [ + # Go 1.14 enables checkptr by default when building with -race or -msan. There is a pointer + # issue in boltdb, so must disable checkptr at compile time. This flag can be removed once + # the project is migrated to etcd's version of boltdb and the issue has been fixed. + # See: https://github.com/etcd-io/bbolt/issues/187. + "-d=checkptr=0", + ], race = "on", tags = ["race_on"], deps = [