Skip to content

runtime: fatal error: runtime: wrong goroutine in newstack #10645

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

Closed
toffaletti opened this issue Apr 30, 2015 · 2 comments
Closed

runtime: fatal error: runtime: wrong goroutine in newstack #10645

toffaletti opened this issue Apr 30, 2015 · 2 comments

Comments

@toffaletti
Copy link

I was using Dmitry's go-fuzz and Ctrl-C left me with a runtime panic:

^C2015/04/30 00:35:15 shutting down...
runtime: newstack called from g=0xc208804fc0
    m=0xc20807e700 m->curg=0xc20812e7e0 m->g0=0xc2088050e0 m->gsignal=0xc208804fc0
runtime.onM(0xc208088e60)
    /usr/local/go/src/runtime/asm_amd64.s:235 +0x2f
runtime.morestackc()
    /usr/local/go/src/runtime/stack.c:885 +0x1e
runtime.sighandler(0x2, 0xc2080892d8, 0xc208089340, 0xc20812e7e0)
    /usr/local/go/src/runtime/signal_amd64x.c:44 +0x14
runtime.sigtramp(0x2dd, 0x0, 0x200000200000085, 0xc2086ffaa0, 0x5da6, 0xc20807e700, 0xc2080893f8, 0x1, 0x0, 0x0, ...)
    /usr/local/go/src/runtime/sys_darwin_amd64.s:229 +0x69
fatal error: runtime: wrong goroutine in newstack

runtime stack:
runtime.throw(0x5fb1d7)
    /usr/local/go/src/runtime/panic.go:491 +0xad
runtime.newstack()
    /usr/local/go/src/runtime/stack.c:710 +0x16b
runtime.morestack()
    /usr/local/go/src/runtime/asm_amd64.s:324 +0x7e

goroutine 15 [running]:

go version go1.4.2 darwin/amd64 on 10.10.3

I've only had this happen once in a couple days of use, so reproducing this might be a good use of the new stress tool.

@ianlancetaylor ianlancetaylor changed the title fatal error: runtime: wrong goroutine in newstack runtime: fatal error: runtime: wrong goroutine in newstack Jun 3, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jun 3, 2015
@ianlancetaylor
Copy link
Member

Does this happen with tip? Is it reproducible at all?

@toffaletti
Copy link
Author

I haven't tried, will reopen if I ever encounter it again.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
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

3 participants