-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: bad sweepgen in refill #64492
Comments
releated issue:
|
cc @golang/runtime |
@yang-f can you better describe what is your use case with CGO, to try and narrow down the issue? |
I'm not sure whether the panic has anything related to cgo. After all, there is no cgo-related stack in the stack, but I see that many similar issues are caused by cgo, so I specially proposed it. fdb and rocksdb are used in our service, and these dependencies use cgo to load fdb.so/rocksdb.so |
ping @mauri870 |
Without a repro will be very hard to identify the issue cc @cherrymui |
@yang-f In the future, please post text and not images. It makes it much harder to interact with (e.g. searching for snippets in the codebase, etc.) and less accessible. I agree with @mauri870 that without a reproducer it's going to be hard to identify what the issue is. You mentioned the architecture is amd64 -- what is the OS? (You linked to an image of a linux-riscv64 failure, but there are usually some platform-specific issues on non-first-class ports, so I don't think we can make any conclusion based on that necessarily.) I can take some shots in the dark, but again, it's hard to say without more details and/or a reproducer. |
@mknyszek, this is not the actual stack, only copy from related issue has same stack, the stack of our panic is like this:
the upper stack is like below, just allocate a new object in a function, the os is centos7/amd64, i can not give a smallest piece of code to recurrence it because the frequency of its occurrence in our environment is very low:
|
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.) |
Go version
1.21.3 amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
our service in production, just alloc a new object in func, and we use cgo in our go program.
What did you expect to see?
no panic
What did you see instead?
panic like this:
and the mspan content is:
s.sweepgen and mheap_.sweepgen all is 691856, and the state of mspan is mSpanDead means the mspan just been sweept,and alloccount == nelems == 102
The text was updated successfully, but these errors were encountered: