Data race in frostfs-adm tests #346

Closed
opened 2023-05-15 08:46:15 +00:00 by fyrchik · 0 comments
Owner
==================
==================
WARNING: DATA RACE
Read at 0x00c00054c068 by goroutine 41:
  github.com/nspcc-dev/neo-go/pkg/wallet.(*Account).ConvertMultisig()
      /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/wallet/account.go:253 +0x20b
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.addMultisigAccount()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:127 +0x158
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets.func1()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:105 +0x164
  golang.org/x/sync/errgroup.(*Group).Go.func1()
      /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x82

Previous write at 0x00c00054c068 by goroutine 40:
  github.com/nspcc-dev/neo-go/pkg/crypto/keys.PublicKeys.Swap()
      /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/crypto/keys/publickey.go:49 +0xe4
  github.com/nspcc-dev/neo-go/pkg/crypto/keys.(*PublicKeys).Swap()
      <autogenerated>:1 +0x29
  sort.insertionSort()
      /usr/lib/go/src/sort/zsortinterface.go:13 +0x86
  sort.pdqsort()
      /usr/lib/go/src/sort/zsortinterface.go:73 +0x36d
  sort.Sort()
      /usr/lib/go/src/sort/sort.go:48 +0x74
  github.com/nspcc-dev/neo-go/pkg/smartcontract.CreateMultiSigRedeemScript()
      /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/smartcontract/contract.go:28 +0x199
  github.com/nspcc-dev/neo-go/pkg/wallet.(*Account).ConvertMultisig()
      /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/wallet/account.go:263 +0x24f
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.addMultisigAccount()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:127 +0x158
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets.func1()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:105 +0x164
  golang.org/x/sync/errgroup.(*Group).Go.func1()
      /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x82

Goroutine 41 (running) created at:
  golang.org/x/sync/errgroup.(*Group).Go()
      /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0x12e
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:104 +0xa24
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.generateAlphabetCreds()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:45 +0x144
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.TestGenerateAlphabet()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate_test.go:73 +0x7dd
  testing.tRunner()
      /usr/lib/go/src/testing/testing.go:1576 +0x216
  testing.(*T).Run.func1()
      /usr/lib/go/src/testing/testing.go:1629 +0x47

Goroutine 40 (running) created at:
  golang.org/x/sync/errgroup.(*Group).Go()
      /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0x12e
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:104 +0xa24
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.generateAlphabetCreds()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:45 +0x144
  git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.TestGenerateAlphabet()
      /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate_test.go:73 +0x7dd
  testing.tRunner()
      /usr/lib/go/src/testing/testing.go:1576 +0x216
  testing.(*T).Run.func1()
      /usr/lib/go/src/testing/testing.go:1629 +0x47
==================
``` ================== ================== WARNING: DATA RACE Read at 0x00c00054c068 by goroutine 41: github.com/nspcc-dev/neo-go/pkg/wallet.(*Account).ConvertMultisig() /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/wallet/account.go:253 +0x20b git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.addMultisigAccount() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:127 +0x158 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets.func1() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:105 +0x164 golang.org/x/sync/errgroup.(*Group).Go.func1() /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x82 Previous write at 0x00c00054c068 by goroutine 40: github.com/nspcc-dev/neo-go/pkg/crypto/keys.PublicKeys.Swap() /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/crypto/keys/publickey.go:49 +0xe4 github.com/nspcc-dev/neo-go/pkg/crypto/keys.(*PublicKeys).Swap() <autogenerated>:1 +0x29 sort.insertionSort() /usr/lib/go/src/sort/zsortinterface.go:13 +0x86 sort.pdqsort() /usr/lib/go/src/sort/zsortinterface.go:73 +0x36d sort.Sort() /usr/lib/go/src/sort/sort.go:48 +0x74 github.com/nspcc-dev/neo-go/pkg/smartcontract.CreateMultiSigRedeemScript() /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/smartcontract/contract.go:28 +0x199 github.com/nspcc-dev/neo-go/pkg/wallet.(*Account).ConvertMultisig() /home/dzeta/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.100.1/pkg/wallet/account.go:263 +0x24f git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.addMultisigAccount() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:127 +0x158 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets.func1() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:105 +0x164 golang.org/x/sync/errgroup.(*Group).Go.func1() /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x82 Goroutine 41 (running) created at: golang.org/x/sync/errgroup.(*Group).Go() /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0x12e git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:104 +0xa24 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.generateAlphabetCreds() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:45 +0x144 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.TestGenerateAlphabet() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate_test.go:73 +0x7dd testing.tRunner() /usr/lib/go/src/testing/testing.go:1576 +0x216 testing.(*T).Run.func1() /usr/lib/go/src/testing/testing.go:1629 +0x47 Goroutine 40 (running) created at: golang.org/x/sync/errgroup.(*Group).Go() /home/dzeta/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0x12e git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.initializeWallets() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:104 +0xa24 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.generateAlphabetCreds() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate.go:45 +0x144 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph.TestGenerateAlphabet() /repo/frostfs/node/cmd/frostfs-adm/internal/modules/morph/generate_test.go:73 +0x7dd testing.tRunner() /usr/lib/go/src/testing/testing.go:1576 +0x216 testing.(*T).Run.func1() /usr/lib/go/src/testing/testing.go:1629 +0x47 ================== ```
fyrchik added the
bug
P0
frostfs-adm
labels 2023-05-15 08:46:32 +00:00
fyrchik self-assigned this 2023-05-15 08:48:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#346
No description provided.