3 // Copyright 2013 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Used to die in runtime due to init goroutine exiting while
8 // locked to main thread.
18 c
:= make(chan int, 1)
34 fatal error: internal lockOSThread error
36 goroutine 2 [runnable]:
37 runtime.MHeap_Scavenger()
38 /Users/rsc/g/go/src/pkg/runtime/mheap.c:438
40 /Users/rsc/g/go/src/pkg/runtime/proc.c:1313
41 created by runtime.main
42 /Users/rsc/g/go/src/pkg/runtime/proc.c:165
44 goroutine 3 [runnable]:
46 /Users/rsc/g/go/test/fixedbugs/issue5963.go:22
47 created by main.initĀ·1
48 /Users/rsc/g/go/test/fixedbugs/issue5963.go:24 +0xb9