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: panic in sweeper in go 1.17.7 #51597

Closed
dongpipi opened this issue Mar 10, 2022 · 3 comments
Closed

runtime: panic in sweeper in go 1.17.7 #51597

dongpipi opened this issue Mar 10, 2022 · 3 comments
Labels
WaitingForInfo

Comments

@dongpipi
Copy link

@dongpipi dongpipi commented Mar 10, 2022

objIndex := uintptr(siter.s.offset) / size

image

@dongpipi
Copy link
Author

@dongpipi dongpipi commented Mar 10, 2022

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x42a40b]

goroutine 18 [running]:
runtime.throw({0x5eeafe6, 0xc00016c658})
/data10/home/liuyidong.eddy/go/src/runtime/panic.go:1198 +0x71 fp=0xc00016c618 sp=0xc00016c5e8 pc=0x43cbb1
runtime.sigpanic()
/data10/home/liuyidong.eddy/go/src/runtime/signal_unix.go:719 +0x396 fp=0xc00016c668 sp=0xc00016c618 pc=0x4530b6
runtime.(*sweepLocked).sweep(0xab623e0, 0x0)
/data10/home/liuyidong.eddy/go/src/runtime/mgcsweep.go:436 +0x12b fp=0xc00016c740 sp=0xc00016c668 pc=0x42a40b
runtime.sweepone()
/data10/home/liuyidong.eddy/go/src/runtime/mgcsweep.go:290 +0x109 fp=0xc00016c7b0 sp=0xc00016c740 pc=0x429d09
runtime.bgsweep()
/data10/home/liuyidong.eddy/go/src/runtime/mgcsweep.go:166 +0x105 fp=0xc00016c7e0 sp=0xc00016c7b0 pc=0x429bc5
runtime.goexit()
/data10/home/liuyidong.eddy/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00016c7e8 sp=0xc00016c7e0 pc=0x470601
created by runtime.gcenable
/data10/home/liuyidong.eddy/go/src/runtime/mgc.go:181 +0x55

@randall77
Copy link
Contributor

@randall77 randall77 commented Mar 10, 2022

You're getting a segv, not a divide by zero error, so this failure isn't caused by the size being zero.
Probably one of those pointers is null. We'll need more info to help you here. Please fill out the issue template, and ideally provide us with a program that we could run ourselves that demonstrates the problem.

@randall77 randall77 changed the title Could 'size' be zero? I met a panic like this in go 1.17.7 runtime: panic in sweeper in go 1.17.7 Mar 10, 2022
@mengzhuo mengzhuo added the WaitingForInfo label Mar 11, 2022
@gopherbot
Copy link

@gopherbot gopherbot commented Apr 11, 2022

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo
Projects
None yet
Development

No branches or pull requests

4 participants