Skip to content

Instantly share code, notes, and snippets.

@zsfelfoldi
Created April 20, 2025 10:46
Show Gist options
  • Save zsfelfoldi/86e19f80f6eb0c9f1ed93a537d34e20c to your computer and use it in GitHub Desktop.
Save zsfelfoldi/86e19f80f6eb0c9f1ed93a537d34e20c to your computer and use it in GitHub Desktop.
==================
WARNING: DATA RACE
Write at 0x00c01d5a80f0 by goroutine 226941:
github.com/ethereum/go-ethereum/p2p/discover.(*revalidationList).schedule()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table_reval.go:221 +0x193
github.com/ethereum/go-ethereum/p2p/discover.(*revalidationList).push()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table_reval.go:227 +0x155
github.com/ethereum/go-ethereum/p2p/discover.(*tableRevalidation).nodeAdded()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table_reval.go:59 +0x8a
github.com/ethereum/go-ethereum/p2p/discover.(*Table).nodeAdded()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:569 +0x171
github.com/ethereum/go-ethereum/p2p/discover.(*Table).handleAddNode()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:542 +0x5b4
github.com/ethereum/go-ethereum/p2p/discover.(*Table).loadSeedNodes()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:456 +0x18e
github.com/ethereum/go-ethereum/p2p/discover.(*Table).doRefresh()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:429 +0x77
github.com/ethereum/go-ethereum/p2p/discover.(*Table).loop.gowrap5()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:390 +0x44
Previous read at 0x00c01d5a80f0 by goroutine 4573:
github.com/ethereum/go-ethereum/p2p/discover.(*tableRevalidation).run.func1()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table_reval.go:81 +0x53
github.com/ethereum/go-ethereum/p2p/discover.(*tableRevalidation).run()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table_reval.go:90 +0x9c
github.com/ethereum/go-ethereum/p2p/discover.(*Table).loop()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:366 +0x567
github.com/ethereum/go-ethereum/p2p/discover.ListenV4.gowrap1()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/v4_udp.go:151 +0x33
Goroutine 226941 (running) created at:
github.com/ethereum/go-ethereum/p2p/discover.(*Table).loop()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/table.go:390 +0x9d6
github.com/ethereum/go-ethereum/p2p/discover.ListenV4.gowrap1()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/v4_udp.go:151 +0x33
Goroutine 4573 (running) created at:
github.com/ethereum/go-ethereum/p2p/discover.ListenV4()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/discover/v4_udp.go:151 +0x70a
github.com/ethereum/go-ethereum/p2p.(*Server).setupDiscovery()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/server.go:481 +0x509
github.com/ethereum/go-ethereum/p2p.(*Server).Start()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/server.go:413 +0x89e
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_util.go:52 +0x28e
github.com/syndtr/goleveldb/leveldb.openDB()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:136 +0x884
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x264
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:657 +0x18e
fmt.(*ss).doScanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:1230 +0x43b
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
fmt.Fscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x4f8
github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:482 +0xa6
github.com/syndtr/goleveldb/leveldb.openDB()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:131 +0x86d
github.com/syndtr/goleveldb/leveldb.Open()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:203 +0x37c
fmt.Sscanf()
/home/zsfelfoldi/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:643 +0x91
github.com/syndtr/goleveldb/leveldb/storage.fsParseNamePtr()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:666 +0x18b
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).GetMeta.func1()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:332 +0x121
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).GetMeta.func2()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:356 +0xbd
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).GetMeta()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:407 +0x87b
github.com/syndtr/goleveldb/leveldb.(*session).recover()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session.go:140 +0x11a
github.com/syndtr/goleveldb/leveldb.Open()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:189 +0x11b
github.com/syndtr/goleveldb/leveldb.OpenFile()
/home/zsfelfoldi/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:225 +0x7d
github.com/ethereum/go-ethereum/p2p/enode.newPersistentDB()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/enode/nodedb.go:101 +0xcd
github.com/ethereum/go-ethereum/p2p/enode.OpenDB()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/enode/nodedb.go:85 +0x67
github.com/ethereum/go-ethereum/p2p.(*Server).setupLocalNode()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/server.go:433 +0x5ec
github.com/ethereum/go-ethereum/p2p.(*Server).Start()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/p2p/server.go:403 +0x844
github.com/ethereum/go-ethereum/node.(*Node).openEndpoints()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/node/node.go:271 +0x188
github.com/ethereum/go-ethereum/node.(*Node).Start()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/node/node.go:179 +0x139
github.com/ethereum/go-ethereum/cmd/utils.StartNode()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/cmd/utils/cmd.go:82 +0x33
main.startNode()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:358 +0x49
main.localConsole()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/cmd/geth/consolecmd.go:74 +0x71
github.com/ethereum/go-ethereum/internal/flags.MigrateGlobalFlags.func2.1()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/internal/flags/helpers.go:90 +0x3e
github.com/urfave/cli/v2.(*Command).Run()
/home/zsfelfoldi/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276 +0x1643
github.com/urfave/cli/v2.(*Command).Run()
/home/zsfelfoldi/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:269 +0x1504
github.com/urfave/cli/v2.(*App).RunContext()
/home/zsfelfoldi/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x1294
github.com/urfave/cli/v2.(*App).Run()
/home/zsfelfoldi/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:307 +0x71
main.main()
/home/zsfelfoldi/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:282 +0x1c
==================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment