Data race in frostfs-adm
tests #346
fyrchik
commented 2023-05-15 08:46:15 +00:00
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
==================
```
fyrchik
added the 2023-05-15 08:46:32 +00:00
bug
P0
frostfs-adm
labels
fyrchik
self-assigned this 2023-05-15 08:48:11 +00:00
fyrchik
referenced this issue from a pull request that will close it, 2023-05-15 08:52:29 +00:00
[#346] adm: fix race in wallet generation #347
fyrchik
closed this issue 2023-05-15 12:19:01 +00:00
fyrchik
referenced this issue from a commit 2023-05-15 12:19:02 +00:00
[#346] adm: fix race in wallet generation
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#346
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?