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

Fix race conditions with -race flag #13

Open
Lazar955 opened this issue Oct 31, 2024 · 1 comment · Fixed by #22
Open

Fix race conditions with -race flag #13

Lazar955 opened this issue Oct 31, 2024 · 1 comment · Fixed by #22

Comments

@Lazar955
Copy link
Member

No description provided.

@Lazar955
Copy link
Member Author

Race condition happens:

WARNING: DATA RACE
Write at 0x00c000f07920 by goroutine 5150:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:223 +0x0
  github.com/cosmos/cosmos-sdk/types.(*Config).SetBech32PrefixForAccount()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:89 +0xe5
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.SetSDKConfigContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:24 +0x71
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SetSDKContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:17 +0xe4
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).buildMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:605 +0xc7
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessagesToMempool()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:175 +0x1ef
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages.func2()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:128 +0x144
  github.com/avast/retry-go/v4.Do.func1()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x2e
  github.com/avast/retry-go/v4.DoWithData[go.shape.interface {}]()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0xbdc
  github.com/avast/retry-go/v4.Do()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x84
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:127 +0x56e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).SendMsgs()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:163 +0x24e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).InsertBTCHeadersToBabylon()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:196 +0x324
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).genBlocks()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:85 +0x1f5
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).runForever()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:70 +0x3c
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start.gowrap1()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x4f

Previous read at 0x00c000f07920 by main goroutine:
  runtime.mapaccess1_faststr()
      /usr/local/go/src/runtime/map_faststr.go:13 +0x0
  github.com/cosmos/cosmos-sdk/types.(*Config).GetBech32AccountAddrPrefix()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:162 +0x7a
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewDefaultSigningOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:94 +0x175
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfigWithOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:191 +0x535
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfig()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:79 +0x127
  github.com/babylonlabs-io/babylon/app/params.DefaultEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/params/proto.go:35 +0x40e
  github.com/babylonlabs-io/babylon/app.NewBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/app.go:222 +0x153
  github.com/babylonlabs-io/babylon/app.NewTmpBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:31 +0x3be
  github.com/babylonlabs-io/babylon/app.GetEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:46 +0x24
  github.com/babylonlabs-io/babylon-benchmark/harness.New()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:77 +0x20d
  github.com/babylonlabs-io/babylon-benchmark/harness.NewSenderWithBabylonClient()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:137 +0x4a4
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:83 +0x12de
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540

Goroutine 5150 (running) created at:
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x18e
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:71 +0x8a6
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540
==================
==================
WARNING: DATA RACE
Write at 0x00c00060f948 by goroutine 5150:
  github.com/cosmos/cosmos-sdk/types.(*Config).SetBech32PrefixForAccount()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:89 +0xf4
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.SetSDKConfigContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:24 +0x71
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SetSDKContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:17 +0xe4
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).buildMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:605 +0xc7
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessagesToMempool()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:175 +0x1ef
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages.func2()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:128 +0x144
  github.com/avast/retry-go/v4.Do.func1()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x2e
  github.com/avast/retry-go/v4.DoWithData[go.shape.interface {}]()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0xbdc
  github.com/avast/retry-go/v4.Do()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x84
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:127 +0x56e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).SendMsgs()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:163 +0x24e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).InsertBTCHeadersToBabylon()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:196 +0x324
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).genBlocks()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:85 +0x1f5
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).runForever()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:70 +0x3c
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start.gowrap1()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x4f

Previous read at 0x00c00060f948 by main goroutine:
  github.com/cosmos/cosmos-sdk/types.(*Config).GetBech32AccountAddrPrefix()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:162 +0x84
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewDefaultSigningOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:94 +0x175
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfigWithOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:191 +0x535
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfig()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:79 +0x127
  github.com/babylonlabs-io/babylon/app/params.DefaultEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/params/proto.go:35 +0x40e
  github.com/babylonlabs-io/babylon/app.NewBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/app.go:222 +0x153
  github.com/babylonlabs-io/babylon/app.NewTmpBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:31 +0x3be
  github.com/babylonlabs-io/babylon/app.GetEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:46 +0x24
  github.com/babylonlabs-io/babylon-benchmark/harness.New()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:77 +0x20d
  github.com/babylonlabs-io/babylon-benchmark/harness.NewSenderWithBabylonClient()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:137 +0x4a4
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:83 +0x12de
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540

Goroutine 5150 (running) created at:
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x18e
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:71 +0x8a6
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540
==================
==================
WARNING: DATA RACE
Write at 0x00c00060f958 by goroutine 5150:
  github.com/cosmos/cosmos-sdk/types.(*Config).SetBech32PrefixForValidator()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:98 +0x254
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.SetSDKConfigContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:25 +0x1af
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SetSDKContext()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/bech32_hack.go:17 +0xe4
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).buildMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:605 +0xc7
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessagesToMempool()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:175 +0x1ef
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages.func2()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:128 +0x144
  github.com/avast/retry-go/v4.Do.func1()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x2e
  github.com/avast/retry-go/v4.DoWithData[go.shape.interface {}]()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0xbdc
  github.com/avast/retry-go/v4.Do()
      /home/ubuntu/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x84
  github.com/cosmos/relayer/v2/relayer/chains/cosmos.(*CosmosProvider).SendMessages()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/relayer/[email protected]/relayer/chains/cosmos/tx.go:127 +0x56e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).SendMsgs()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:163 +0x24e
  github.com/babylonlabs-io/babylon-benchmark/harness.(*SenderWithBabylonClient).InsertBTCHeadersToBabylon()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:196 +0x324
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).genBlocks()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:85 +0x1f5
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).runForever()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:70 +0x3c
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start.gowrap1()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x4f

Previous read at 0x00c00060f958 by main goroutine:
  github.com/cosmos/cosmos-sdk/types.(*Config).GetBech32ValidatorAddrPrefix()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/types/config.go:167 +0xef
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewDefaultSigningOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:95 +0x1bf
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfigWithOptions()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:191 +0x535
  github.com/cosmos/cosmos-sdk/x/auth/tx.NewTxConfig()
      /home/ubuntu/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/tx/config.go:79 +0x127
  github.com/babylonlabs-io/babylon/app/params.DefaultEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/params/proto.go:35 +0x40e
  github.com/babylonlabs-io/babylon/app.NewBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/app.go:222 +0x153
  github.com/babylonlabs-io/babylon/app.NewTmpBabylonApp()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:31 +0x3be
  github.com/babylonlabs-io/babylon/app.GetEncodingConfig()
      /home/ubuntu/go/pkg/mod/github.com/babylonlabs-io/[email protected]/app/encoding.go:46 +0x24
  github.com/babylonlabs-io/babylon-benchmark/harness.New()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:77 +0x20d
  github.com/babylonlabs-io/babylon-benchmark/harness.NewSenderWithBabylonClient()
      /home/ubuntu/babylon-benchmark/harness/babylonclient.go:137 +0x4a4
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:83 +0x12de
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540

Goroutine 5150 (running) created at:
  github.com/babylonlabs-io/babylon-benchmark/harness.(*BTCHeaderGenerator).Start()
      /home/ubuntu/babylon-benchmark/harness/headergenerator.go:61 +0x18e
  github.com/babylonlabs-io/babylon-benchmark/harness.startHarness()
      /home/ubuntu/babylon-benchmark/harness/app.go:71 +0x8a6
  github.com/babylonlabs-io/babylon-benchmark/harness.Run()
      /home/ubuntu/babylon-benchmark/harness/app.go:18 +0x715
  github.com/babylonlabs-io/babylon-benchmark/cmd/datagen/cmd.cmdGenerate()
      /home/ubuntu/babylon-benchmark/cmd/datagen/cmd/generate.go:78 +0x723
  github.com/spf13/cobra.(*Command).execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x10f3
  github.com/spf13/cobra.(*Command).ExecuteC()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x655
  github.com/spf13/cobra.(*Command).Execute()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x53a
  github.com/spf13/cobra.(*Command).ExecuteContext()
      /home/ubuntu/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034 +0x535
  main.main()
      /home/ubuntu/babylon-benchmark/cmd/datagen/main.go:35 +0x540
==================

@Lazar955 Lazar955 changed the title Check race conditions with -race flag Fix race conditions with -race flag Oct 31, 2024
@Lazar955 Lazar955 linked a pull request Nov 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant