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: "malloc/free - deadlock" while trying to print panic message #6419

Closed
alexbrainman opened this issue Sep 18, 2013 · 8 comments
Closed

Comments

@alexbrainman
Copy link
Member

From this thread https://groups.google.com/d/topic/golang-nuts/aX7sJxostWE/discussion

Go version: 
go version devel +45343b9c3db4 Mon Sep 16 22:53:12 2013 +1000 windows/386 

Panic message: 
fatal error: malloc/free - deadlock 
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x424bda] 

runtime stack: 
runtime: unexpected return pc for runtime.sigpanic called from 0x77238e19 
runtime.throw(0x63ece0) 
        C:/vcs/go/src/pkg/runtime/panic.c:464 +0x67 
runtime.mallocgc(0x8, 0x0, 0x0) 
        C:/vcs/go/src/pkg/runtime/malloc.goc:51 +0x4f 
runtime.mal(0x8) 
        C:/vcs/go/src/pkg/runtime/malloc.goc:700 +0x3a 
copyin(0x4f5ae0, 0x32cafb98, 0x32cafba4) 
        C:/vcs/go/src/pkg/runtime/iface.c:153 +0x5c 
runtime.convT2E(0x4f5ae0, 0x63dccf, 0x31, 0x4f5ae0, 0x31) 
        C:/vcs/go/src/pkg/runtime/iface.c:221 +0x32 
runtime.newErrorString(0x63dccf, 0x31, 0x32cafbc0) 
        C:/vcs/go/src/pkg/runtime/error.go:74 +0x3a 
runtime.panicstring(0x63dccf) 
        C:/vcs/go/src/pkg/runtime/panic.c:477 +0x82 
runtime.sigpanic() 
        C:/vcs/go/src/pkg/runtime/os_windows.c:337 +0xb4 
runtime.mallocgc(0x8, 0x0, 0x0) 
        C:/vcs/go/src/pkg/runtime/malloc.goc:70 +0xca 
runtime.mal(0x8) 
        C:/vcs/go/src/pkg/runtime/malloc.goc:700 +0x3a 
copyin(0x4f5ae0, 0x32cafc60, 0x32cafc6c) 
        C:/vcs/go/src/pkg/runtime/iface.c:153 +0x5c 
runtime.convT2E(0x4f5ae0, 0x63dccf, 0x31, 0x4f5ae0, 0x31) 
        C:/vcs/go/src/pkg/runtime/iface.c:221 +0x32 
runtime.newErrorString(0x63dccf, 0x31, 0x32cafc88) 
        C:/vcs/go/src/pkg/runtime/error.go:74 +0x3a 
runtime.panicstring(0x63dccf) 
        C:/vcs/go/src/pkg/runtime/panic.c:477 +0x82 
runtime: unexpected return pc for runtime.sigpanic called from 0x77238e19 
runtime.sigpanic() 
        C:/vcs/go/src/pkg/runtime/os_windows.c:337 +0xb4 

Alex
@alexbrainman
Copy link
Member Author

Comment 1:

Perhaps, there is a simple memory corruption here. But I would like to be sure there is
nothing we can do.
Alex

@rsc
Copy link
Contributor

rsc commented Sep 18, 2013

Comment 2:

i have been meaning to fix that panic not to allocate. then it won't be a
double panic at least. i'll do that later tonight.

@rsc
Copy link
Contributor

rsc commented Sep 20, 2013

Comment 3:

This issue was updated by revision 551ada4.

R=golang-dev, dvyukov, dave
CC=golang-dev
https://golang.org/cl/13774043

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 4:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 5:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 6:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@ianlancetaylor
Copy link
Contributor

I'm fairly sure that this was fixed a while back by https://golang.org/cl/83980043. Closing.

@alexbrainman
Copy link
Member Author

I'm fairly sure that this was fixed a while back by https://golang.org/cl/83980043. Closing.

There is no way for me to test CL 83980043, but it does look like it might fix this issue.

Thank you.

Alex

@golang golang locked and limited conversation to collaborators May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants