-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: fatal error: MSpanList_Remove #14990
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
Comments
There is a old issue with same panic backtrace: #14831 |
@googollee #14831 was due to a bug in some code called from cgo, does your code use cgo ? Is your code available ? Can you provide a sample which reproduces the problem ? |
@davecheney to be correct, #14831 did not involve cgo at all, it was just a syscall (ioctl) and there was a bug in a proprietary kernel driver that in some edge case went past the provided buffer by 4 bytes, resulting in memory corruption. |
There is no cgo or syscall or unsafe in my code. I will try to make a sample to reproduce it, but the code is really complex and mess ,and panic after a long run. I'm not sure which part cause this issue now. |
The first thing I think your should do is build a race enabled version of your application, go build -race and deploy that.
|
OK. I will try. |
CC @aclements @RLH |
Looks like the span was on nonempty, but was being removed from empty because its freelist was nil. Unfortunately, I don't think there's enough information in the traceback to glean which of these conditions was wrong. |
@googollee it may be worth looking at the dependencies/3rd party libs you may be using and they may be using in turn. Your code may not be doing anything with the unsafe package/syscall/cgo directly but some dependency may. |
I try @bits01 I have checked all 3rd party libs and all of them are not using cgo/unsafe/sysctl. |
I find some race code and try to fix them. After that I will check if the program will panic again. Thanks. |
I'm going to close this until there's something actionable for us to do. Feel free to reopen if you have more details to suggest it's a bug in Go. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6 linux/amd64
go env
)?Linux xxxx 3.19.0-25-generic unknown pc's #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Our program is a long TCP connection server, which receiving data from a TCP and forwarding it to other. When it upgrade to 1.6, it run a long time (around 4 days) then panic with same error. Log attached below:
No crash
Crash
The text was updated successfully, but these errors were encountered: