Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Race in x/auth/client test #12481

Closed
4 tasks
robert-zaremba opened this issue Jul 7, 2022 · 1 comment
Closed
4 tasks

Data Race in x/auth/client test #12481

robert-zaremba opened this issue Jul 7, 2022 · 1 comment

Comments

@robert-zaremba
Copy link
Collaborator

Summary of Bug

While working on #12448 I found that sometimes this test fails.

Version

b75c2eb

Steps to Reproduce

cosmos-sdk/x/auth/client main* ❯ for i in {1..10}; go test -timeout 30s -race
PASS
ok      github.com/cosmos/cosmos-sdk/x/auth/client      0.477s
PASS
ok      github.com/cosmos/cosmos-sdk/x/auth/client      0.488s
PASS
ok      github.com/cosmos/cosmos-sdk/x/auth/client      0.471s
PASS
ok      github.com/cosmos/cosmos-sdk/x/auth/client      0.488s
==================
WARNING: DATA RACE
Read at 0x00c00037e280 by goroutine 34:
  runtime.racereadrange()
      <autogenerated>:1 +0x1b
  github.com/cosmos/cosmos-sdk/depinject.ExtractProviderDescriptor()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/provider_desc.go:47 +0x2c4
  github.com/cosmos/cosmos-sdk/depinject.invoke()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/config.go:78 +0x10a
  github.com/cosmos/cosmos-sdk/depinject.InvokeInModule.func1()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/config.go:72 +0x1b3
  github.com/cosmos/cosmos-sdk/depinject.containerConfig.apply()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/config.go:169 +0x36
  github.com/cosmos/cosmos-sdk/depinject.Configs.func1()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/config.go:157 +0x92
  github.com/cosmos/cosmos-sdk/depinject.containerConfig.apply()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/config.go:169 +0x36
  github.com/cosmos/cosmos-sdk/depinject.doInject()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/inject.go:73 +0x427
  github.com/cosmos/cosmos-sdk/depinject.inject()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/inject.go:44 +0x4d7
  github.com/cosmos/cosmos-sdk/depinject.Inject()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/depinject/inject.go:18 +0x94
  github.com/cosmos/cosmos-sdk/x/auth/client_test.TestBatchScanner_Scan()
      /home/robert/go/src/github.com/cosmos/cosmos-sdk/x/auth/client/tx_test.go:103 +0x113
  testing.tRunner()
      /usr/lib/go/src/testing/testing.go:1439 +0x213
  testing.(*T).Run.func1()
      /usr/lib/go/src/testing/testing.go:1486 +0x47

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

This is a duplicate of #12439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants