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

runtime: divide-by-zero panic in (*randomOrder).start #49689

Open
bcmills opened this issue Nov 19, 2021 · 3 comments
Open

runtime: divide-by-zero panic in (*randomOrder).start #49689

bcmills opened this issue Nov 19, 2021 · 3 comments

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Nov 19, 2021

panic: runtime.errorString("integer divide by zero")
fatal error: panic on system stack

runtime stack:
runtime.throw({0x667014?, 0x7aa3f0?})
	/tmp/workdir/go/src/runtime/panic.go:992 +0x71 fp=0x7fffde1eec70 sp=0x7fffde1eec40 pc=0x478531
panic({0x638720, 0x7aa3f0})
	/tmp/workdir/go/src/runtime/panic.go:764 +0x6f0 fp=0x7fffde1eed30 sp=0x7fffde1eec70 pc=0x478430
runtime.panicdivide()
	/tmp/workdir/go/src/runtime/panic.go:199 +0x45 fp=0x7fffde1eed50 sp=0x7fffde1eed30 pc=0x476805
runtime.(*randomOrder).start(...)
	/tmp/workdir/go/src/runtime/proc.go:6313
runtime.stealWork(0x7fffde1eee48?)
	/tmp/workdir/go/src/runtime/proc.go:3018 +0x357 fp=0x7fffde1eedd0 sp=0x7fffde1eed50 pc=0x480877
runtime.findrunnable()
	/tmp/workdir/go/src/runtime/proc.go:2773 +0x20c fp=0x7fffde1eeec0 sp=0x7fffde1eedd0 pc=0x47fccc
runtime.schedule()
	/tmp/workdir/go/src/runtime/proc.go:3361 +0x239 fp=0x7fffde1eef08 sp=0x7fffde1eeec0 pc=0x481239
runtime.park_m(0xc0001831e0?)
	/tmp/workdir/go/src/runtime/proc.go:3510 +0x14d fp=0x7fffde1eef38 sp=0x7fffde1eef08 pc=0x48176d
runtime.mcall()
	/tmp/workdir/go/src/runtime/asm_amd64.s:433 +0x43 fp=0x7fffde1eef48 sp=0x7fffde1eef38 pc=0x4a8743

greplogs --dashboard -md -l -e \(\?m\)runtime\\.panicdivide.\*\\n\\t.\*\\nruntime\\.\\\(\\\*randomOrder --since=2021-01-01

2021-11-12T03:54:29-ea63613-b954f58/freebsd-amd64-race
2021-11-10T05:08:25-51b60fd-17980df/freebsd-amd64-race
2021-11-09T22:14:19-cb908f1/freebsd-amd64-race
2021-11-04T15:43:59-036812b-6ba68a0/freebsd-amd64-race
2021-09-16T23:50:23-1a7ca93-4efdaa7/freebsd-amd64-race
2021-06-22T11:31:57-d040287-63daa77/freebsd-amd64-race
2021-04-08T02:17:19-89ca1ce/plan9-arm

@bcmills
Copy link
Member Author

@bcmills bcmills commented Nov 19, 2021

This panic has mostly been observed on the freebsd-amd64-race builder, but the line where the panic occurs is not freebsd-specific.

Marking as release-blocker at least until we can determine whether other platforms are affected.

(CC @jeremyfaller)

Loading

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Nov 19, 2021

This suggests that something has somehow zeroed out runtime.stealOrder.count. That should be impossible.

Loading

@jeremyfaller
Copy link
Contributor

@jeremyfaller jeremyfaller commented Nov 19, 2021

CCing @prattmic because he's seeing zeroing in #49453

Loading

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

Successfully merging a pull request may close this issue.

None yet
3 participants