-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: writeHeapDump crashes program #9172
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
Labels
Milestone
Comments
The following fixed the issue for me: func iterate_finq(callback func(*funcval, unsafe.Pointer, uintptr, *_type, *ptrtype)) { for fb := allfin; fb != nil; fb = fb.alllink { for i := int32(0); i < fb.cnt; i++ { - f := &fb.fin[i] + f := (*finalizer)(add(unsafe.Pointer(&finq.fin[0]), uintptr(i)*unsafe.Sizeof(finq.fin[0]))) callback(f.fn, f.arg, f.nret, f.fint, f.ot) } } |
CL https://golang.org/cl/178380043 mentions this issue. |
gopherbot
pushed a commit
that referenced
this issue
Dec 10, 2014
It could only handle one finalizer before it raised an out-of-bounds error. Fixes issue #9172 Change-Id: Ibb4d0c8aff2d78a1396e248c7129a631176ab427 Reviewed-on: https://go-review.googlesource.com/1201 Reviewed-by: Russ Cox <rsc@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: