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

Bug: investigate possible deadlock in tests of core/bloombits #102

Open
qdm12 opened this issue Jan 9, 2025 · 0 comments
Open

Bug: investigate possible deadlock in tests of core/bloombits #102

qdm12 opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@qdm12
Copy link
Collaborator

qdm12 commented Jan 9, 2025

Host platform

macos-arm64

What is the version of libevm

ce2cde5

What's the problem 🤔

➡️ Action run

Tests in the core/bloombits timed out at the 10 minutes mark, logs are below.

Share your logs if needed

panic: test timed out after 10m0s
running tests:
	TestMatcherRandom (10m0s)

goroutine 423150 [running]:
testing.(*M).startAlarm.func1()
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:2259 +0x3b9
created by time.goFunc
	/opt/hostedtoolcache/go/1.21.4/x64/src/time/sleep.go:176 +0x2d

goroutine 1 [chan receive, 9 minutes]:
testing.tRunner.func1()
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1561 +0x489
testing.tRunner(0xc000128d00, 0xc00023fc48)
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1601 +0x138
testing.runTests(0xc000[104](https://github.com/ava-labs/libevm/actions/runs/12690668060/job/35372014817?pr=99#step:5:105)780?, {0x723b00, 0xb, 0xb}, {0x41515f?, 0xc00023fd08?, 0x740440?})
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:2052 +0x445
testing.(*M).Run(0xc000104780)
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1925 +0x636
main.main()
	_testmain.go:69 +0x19c

goroutine 10 [chan receive, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.testMatcher(0xc000129a00, {0xc00037dc20, 0x3, 0x3}, 0x0, 0x2710, 0x1, 0x0, 0x58cec0?)
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:178 +0x277
github.com/ava-labs/libevm/core/bloombits.testMatcherBothModes(0xc000129a00, {0xc00037dc20, 0x3, 0x3}, 0x6fe508?, 0x731560?, 0x47760?)
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:141 +0x9e
github.com/ava-labs/libevm/core/bloombits.TestMatcherRandom(0x0?)
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:83 +0x1cc
testing.tRunner(0xc000129a00, 0x5faf90)
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
	/opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x3ad

goroutine 424041 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.startRetrievers.func1()
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:230 +0xaf
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:227 +0x4e

goroutine 424046 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).allocateRetrieval(...)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:545
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).Multiplex(0xc0004cfec0, 0x10, 0xc0004c48a0?, 0xc0004c4f00)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:601 +0xc6
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:224 +0xd6

goroutine 424052 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).allocateRetrieval(...)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:167 +0x2e5

goroutine 424056 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).allocateRetrieval(...)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:545
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).Multiplex(0xc0004cfec0, 0x10, 0xc0004c4ea0?, 0xc0004c4f00)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:601 +0xc6
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:224 +0xd6

goroutine 424053 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.startRetrievers.func1()
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:230 +0xaf
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:227 +0x4e

goroutine 424044 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).allocateRetrieval(...)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:545
github.com/ava-labs/libevm/core/bloombits.(*MatcherSession).Multiplex(0xc0004cfec0, 0x10, 0xc000190ee0?, 0xc0004c4f00)
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:601 +0xc6
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:224 +0xd6

goroutine 424047 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.startRetrievers.func1()
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:230 +0xaf
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:227 +0x4e

goroutine 424037 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*Matcher).subMatch.func2()
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:341 +0x608
created by github.com/ava-labs/libevm/core/bloombits.(*Matcher).subMatch in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher.go:319 +0x2c9

goroutine 424045 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.startRetrievers.func1()
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:230 +0xaf
created by github.com/ava-labs/libevm/core/bloombits.startRetrievers in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/matcher_test.go:227 +0x4e

goroutine 424035 [select, 9 minutes]:
github.com/ava-labs/libevm/core/bloombits.(*scheduler).scheduleDeliveries(0xc000567470, 0xc0004f67e0, 0xc0004f10e0, 0xc0004c4ea0, 0xc0004c4300?)
	/home/runner/work/libevm/libevm/core/bloombits/scheduler.go:155 +0x1f9
created by github.com/ava-labs/libevm/core/bloombits.(*scheduler).run in goroutine 10
	/home/runner/work/libevm/libevm/core/bloombits/scheduler.go:67 +0x17f
FAIL	github.com/ava-labs/libevm/core/bloombits	600.047s


### Share your configuration(s) if needed

_No response_
@qdm12 qdm12 added Category: Investigation 🔍 Category: Testing 🧪 Unit tests, integration tests, etc. labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant