Skip to content

prog: TestDeterminism times out #6783

@a-nogikh

Description

@a-nogikh

I assume it's for the same reason as was fixed in c837efe

Sounds like we should find a more generic solution than patching individual tests.

panic: test timed out after 10m0s
	running tests:
		TestDeterminism (9m59s)

goroutine 1170 [running]:
testing.(*M).startAlarm.func1()
	/usr/local/go/src/testing/testing.go:2484 +0x394
created by time.goFunc
	/usr/local/go/src/time/sleep.go:215 +0x2d

goroutine 1 [chan receive, 9 minutes]:
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1753 +0x49b
testing.tRunner(0xc000365dc0, 0xc000033c70)
	/usr/local/go/src/testing/testing.go:1798 +0x12d
testing.runTests(0xc000010510, {0x16e69e0, 0x63, 0x63}, {0x16fa4e0?, 0x7?, 0x16f8c60?})
	/usr/local/go/src/testing/testing.go:2277 +0x4b4
testing.(*M).Run(0xc0003bbd60)
	/usr/local/go/src/testing/testing.go:2142 +0x64a
main.main()
	_testmain.go:251 +0x9b

goroutine 8 [chan receive]:
github.com/google/syzkaller/pkg/stat.newSet.func1()
	/syzkaller/gopath/src/github.com/google/syzkaller/pkg/stat/set.go:95 +0x66
created by github.com/google/syzkaller/pkg/stat.newSet in goroutine 1
	/syzkaller/gopath/src/github.com/google/syzkaller/pkg/stat/set.go:94 +0xd6

goroutine 182 [runnable]:
internal/runtime/maps.(*table).split(0xc02654a120, 0x9df060, 0xc00f22c870)
	/usr/local/go/src/internal/runtime/maps/table.go:1072 +0x17b
internal/runtime/maps.(*table).rehash(0xc00041d018?, 0x41040b?, 0xc00041d018?)
	/usr/local/go/src/internal/runtime/maps/table.go:1031 +0x30
github.com/google/syzkaller/prog.(*validCtx).validateArg(0xc00f22c8d0, {0x11b8a00, 0xc013d0db90}, {0x11bf2f0, 0xc000b81500}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:137 +0x3c8
github.com/google/syzkaller/prog.(*GroupArg).validate(0xc04bae9be0, 0xc00f22c8d0, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:252 +0x385
github.com/google/syzkaller/prog.(*validCtx).validateArg(0xc00f22c8d0, {0x11b8ac0, 0xc04bae9be0}, {0x11bf7a0, 0xc000d81900}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:138 +0x3ee
github.com/google/syzkaller/prog.(*PointerArg).validate(0xc059581c20, 0xc00f22c8d0, 0xa8?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:286 +0x187
github.com/google/syzkaller/prog.(*validCtx).validateArg(0xc00f22c8d0, {0x11b8a40, 0xc059581c20}, {0x11bf548, 0xc000aa9400}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:138 +0x3ee
github.com/google/syzkaller/prog.(*GroupArg).validate(0xc04bae9bc0, 0xc00f22c8d0, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:241 +0x425
github.com/google/syzkaller/prog.(*validCtx).validateArg(0xc00f22c8d0, {0x11b8ac0, 0xc04bae9bc0}, {0x11bf3b8, 0xc001408b90}, 0x2)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:138 +0x3ee
github.com/google/syzkaller/prog.(*PointerArg).validate(0xc059581bf0, 0xc00f22c8d0, 0xf0?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:286 +0x187
github.com/google/syzkaller/prog.(*validCtx).validateArg(0xc00f22c8d0, {0x11b8a40, 0xc059581bf0}, {0x11bf548, 0xc000aa9440}, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:138 +0x3ee
github.com/google/syzkaller/prog.(*validCtx).validateCall(0xc00f22c8d0, 0xc00b7fda40)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:84 +0x165
github.com/google/syzkaller/prog.(*Prog).validateWithOpts(0xc01ad18200, {0xa?})
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:59 +0x137
github.com/google/syzkaller/prog.(*Prog).validate(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:30
github.com/google/syzkaller/prog.(*Prog).debugValidate(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/validation.go:23
github.com/google/syzkaller/prog.(*Prog).cloneWithMap(0xc001473940, 0x11b8a40?)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/clone.go:27 +0xab
github.com/google/syzkaller/prog.(*Prog).Clone(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/clone.go:11
github.com/google/syzkaller/prog.Minimize(0xc025700740, 0xffffffffffffffff, 0x0, 0xc0021ce9c0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/minimization.go:98 +0x516
github.com/google/syzkaller/prog.generateProg(0xc0006d7dc0, 0xc0003fd000, {0x11b4fa8, 0xc000375500}, 0xc0015bc540, {0xc07f230580, 0x8, 0x8})
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand_test.go:76 +0x2ae
github.com/google/syzkaller/prog.TestDeterminism(0xc0006d7dc0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand_test.go:45 +0x1bc
testing.tRunner(0xc0006d7dc0, 0x1103da8)
	/usr/local/go/src/testing/testing.go:1792 +0xf4
created by testing.(*T).Run in goroutine 1
	/usr/local/go/src/testing/testing.go:1851 +0x413
FAIL	github.com/google/syzkaller/prog	600.147s

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in the syzkaller project (e.g. a crash or misbehavior).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions