Skip to content

runtime: stoplockedm: inconsistent locking #21306

Closed
@bradfitz

Description

@bradfitz

linux-386 at be596f0

https://build.golang.org/log/40f5c89dd04f3d7f0f5ebaf14636c25d814d3f65

...

##### ../misc/cgo/errors
test barrier-gcprog-struct-heap output does not contain expected error (failed with exit status 2)
=== test barrier-gcprog-struct-heap output ===
fatal error: stoplockedm: inconsistent locking
fatal error: runtime: internal error: misuse of lockOSThread/unlockOSThread

runtime stack:
runtime.throw(0x80a9482, 0x21)
	/tmp/workdir/go/src/runtime/panic.go:605 +0x7c
runtime.stoplockedm()
	/tmp/workdir/go/src/runtime/proc.go:1808 +0x13e
runtime.schedule()
	/tmp/workdir/go/src/runtime/proc.go:2203 +0x270
runtime.goschedImpl(0x197000e0)
	/tmp/workdir/go/src/runtime/proc.go:2323 +0xdc
runtime.gopreempt_m(0x197000e0)
	/tmp/workdir/go/src/runtime/proc.go:2351 +0x2c
runtime.newstack(0x0)
	/tmp/workdir/go/src/runtime/stack.go:1042 +0x23f
runtime.morestack()
	/tmp/workdir/go/src/runtime/asm_386.s:465 +0x77

goroutine 1 [running, locked to thread]:
	goroutine running on other thread; stack unavailable

runtime stack:
runtime.throw(0x80aaa6b, 0x3e)
	/tmp/workdir/go/src/runtime/panic.go:605 +0x7c
runtime.badunlockosthread()
	/tmp/workdir/go/src/runtime/proc.go:3206 +0x2b
runtime.systemstack(0x1971ca80)
	/tmp/workdir/go/src/runtime/asm_386.s:393 +0x5e
runtime.mstart()
	/tmp/workdir/go/src/runtime/proc.go:1125
=== end of test barrier-gcprog-struct-heap output ===
exit status 1
2017/08/03 21:34:59 Failed: exit status 1
2017/08/03 21:34:59 FAILED

/cc @aclements @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions