{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/19652","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/19652/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/19652/comments","events_url":"https://api.github.com/repos/golang/go/issues/19652/events","html_url":"https://github.com/golang/go/issues/19652","id":215916251,"number":19652,"title":"os/signal: \"morestack on gsignal\" on NetBSD","user":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars2.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"labels":[{"id":199753589,"url":"https://api.github.com/repos/golang/go/labels/OS-NetBSD","name":"OS-NetBSD","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/50","html_url":"https://github.com/golang/go/milestone/50","labels_url":"https://api.github.com/repos/golang/go/milestones/50/labels","id":2073599,"number":50,"title":"Go1.9Maybe","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars2.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":190,"closed_issues":47,"state":"open","created_at":"2016-10-17T07:59:14Z","updated_at":"2017-03-22T00:10:22Z","due_on":"2017-08-01T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-03-22T00:10:22Z","updated_at":"2017-03-22T00:10:22Z","closed_at":null,"body":"While debugging NetBSD failures, I got:\r\n\r\n```\r\n$ gomote run user-bradfitz-netbsd-amd64-70-0 go/bin/go test -short -v os/signal  \r\n=== RUN   TestSignal  \r\n--- PASS: TestSignal (0.00s)  \r\n        signal_test.go:40: sighup...  \r\n        signal_test.go:49: sigwinch...  \r\n        signal_test.go:56: sighup...  \r\n        signal_test.go:59: sighup...  \r\n=== RUN   TestStress  \r\nfatal: morestack on gsignal  \r\nSIGTRAP: trace trap  \r\nPC=0x453ff8 m=4 sigcode=1  \r\n  \r\ngoroutine 11 [running]:  \r\nruntime.morestack()  \r\n        /tmp/workdir/go/src/runtime/asm_amd64.s:381 +0x38 fp=0xc420023f98 sp=0xc420023f90  \r\ncreated by os/signal.TestStress  \r\n        /tmp/workdir/go/src/os/signal/signal_test.go:89 +0x10f  \r\n  \r\ngoroutine 1 [chan receive]:  \r\ntesting.(*T).Run(0xc420068410, 0x541530, 0xa, 0x549100, 0x468f01)  \r\n        /tmp/workdir/go/src/testing/testing.go:702 +0x2f3  \r\ntesting.runTests.func1(0xc420068410)  \r\n        /tmp/workdir/go/src/testing/testing.go:888 +0x67  \r\ntesting.tRunner(0xc420068410, 0xc420035e10)  \r\n        /tmp/workdir/go/src/testing/testing.go:659 +0x98  \r\ntesting.runTests(0xc42000a100, 0x5f7a40, 0x7, 0x7, 0x5e4c00)  \r\n        /tmp/workdir/go/src/testing/testing.go:886 +0x2b5  \r\ntesting.(*M).Run(0xc420035f20, 0xc420035f78)  \r\n        /tmp/workdir/go/src/testing/testing.go:828 +0xf7  \r\nmain.main()  \r\n        os/signal/_test/_testmain.go:58 +0xdb  \r\n  \r\ngoroutine 5 [syscall]:  \r\nos/signal.signal_recv(0x5e4d80)  \r\n        /tmp/workdir/go/src/runtime/sigqueue.go:116 +0xa8  \r\nos/signal.loop()  \r\n        /tmp/workdir/go/src/os/signal/signal_unix.go:22 +0x22  \r\ncreated by os/signal.init.1  \r\n        /tmp/workdir/go/src/os/signal/signal_unix.go:28 +0x41  \r\n  \r\ngoroutine 9 [sleep]:  \r\ntime.Sleep(0x5f5e100)  \r\n        /tmp/workdir/go/src/runtime/time.go:64 +0x12d  \r\nos/signal.TestStress(0xc4200685b0)  \r\n        /tmp/workdir/go/src/os/signal/signal_test.go:102 +0x11d  \r\ntesting.tRunner(0xc4200685b0, 0x549100)  \r\n        /tmp/workdir/go/src/testing/testing.go:659 +0x98  \r\ncreated by testing.(*T).Run  \r\n        /tmp/workdir/go/src/testing/testing.go:701 +0x2d5  \r\n  \r\ngoroutine 7 [select, locked to thread]:  \r\nruntime.gopark(0x5494c0, 0x0, 0x540b75, 0x6, 0x18, 0x1)  \r\n        /tmp/workdir/go/src/runtime/proc.go:267 +0x12c  \r\nruntime.selectgo(0xc42003bf50, 0xc42004a420)  \r\n        /tmp/workdir/go/src/runtime/select.go:395 +0xc68  \r\nruntime.ensureSigM.func1()  \r\n        /tmp/workdir/go/src/runtime/signal_unix.go:492 +0x1f4  \r\nruntime.goexit()  \r\n        /tmp/workdir/go/src/runtime/asm_amd64.s:2152 +0x1  \r\n  \r\ngoroutine 10 [select]:  \r\nos/signal.TestStress.func1(0xc42004a960, 0xc42004a9c0)  \r\n        /tmp/workdir/go/src/os/signal/signal_test.go:81 +0x16a  \r\ncreated by os/signal.TestStress  \r\n        /tmp/workdir/go/src/os/signal/signal_test.go:75 +0xe3  \r\n  \r\nrax    0x1c  \r\nrbx    0xc420025000  \r\nrcx    0x457935  \r\nrdx    0x0  \r\nrdi    0x2  \r\nrsi    0x544f60  \r\nrbp    0xc420023fc0  \r\nrsp    0xc420023f90  \r\nr8     0x0  \r\nr9     0x0  \r\nr10    0x0  \r\nr11    0x206  \r\nr12    0x0  \r\nr13    0x0  \r\nr14    0x11  \r\nr15    0x0  \r\nrip    0x453ff8  \r\nrflags 0x206  \r\ncs     0x47  \r\nfs     0x0  \r\ngs     0x0  \r\nexit status 2  \r\nFAIL    os/signal       0.102s  \r\nError running run: exit status 1  \r\n```\r\n\r\nSometimes it passes, though.\r\n\r\n(I meant to run a different package, but ended up testing os/signal instead.)\r\n\r\n/cc @bcmills @ianlancetaylor "}}
{"actor":{"display_login":"bradfitz"}}