{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12753","labels_url":"https://api.github.com/repos/golang/go/issues/12753/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12753/comments","events_url":"https://api.github.com/repos/golang/go/issues/12753/events","html_url":"https://github.com/golang/go/issues/12753","id":108396474,"number":12753,"title":"runtime: OS X: hashmap caused SIGILL: illegal instruction","user":{"login":"VojtechVitek","id":139342,"avatar_url":"https://avatars.githubusercontent.com/u/139342?v=3","gravatar_id":"","url":"https://api.github.com/users/VojtechVitek","html_url":"https://github.com/VojtechVitek","followers_url":"https://api.github.com/users/VojtechVitek/followers","following_url":"https://api.github.com/users/VojtechVitek/following{/other_user}","gists_url":"https://api.github.com/users/VojtechVitek/gists{/gist_id}","starred_url":"https://api.github.com/users/VojtechVitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VojtechVitek/subscriptions","organizations_url":"https://api.github.com/users/VojtechVitek/orgs","repos_url":"https://api.github.com/users/VojtechVitek/repos","events_url":"https://api.github.com/users/VojtechVitek/events{/privacy}","received_events_url":"https://api.github.com/users/VojtechVitek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T19:50:30Z","updated_at":"2015-09-25T20:13:24Z","closed_at":"2015-09-25T20:05:09Z","body":"- go1.5.1 darwin/amd64\r\n- OS X Yosemite 10.10.5 (14F27)\r\n- Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz\r\n\r\n```\r\nSIGILL: illegal instruction\r\nPC=0xc12c m=11\r\n\r\ngoroutine 114\r\n[running]:\r\nruntime.evacuate(0x7e7880, 0xc82081f1a0, 0x1)\r\n    /usr/local/go/src/runtime/hashmap.go:819 +0x1ec fp=0xc820a29cb0 sp=0xc820a29bf0\r\nruntime.growWork(0x7e7880, 0xc82081f1a0, 0x0)\r\n    /usr/local/go/src/runtime/hashmap.go:795 +0x83 fp=0xc820a29cd0 sp=0xc820a29cb0\r\nruntime.mapassign1(0x7e7880, 0xc82081f1a0, 0xc8204a6f90, 0xc820a29de0)\r\n    /usr/local/go/src/runtime/hashmap.go:433 +0x176 fp=0xc820a29d78 sp=0xc820a29cd0\r\ngithub.com/--------------.func4(0xc8207463b0,\r\n0xc8200b9200, 0x12, 0x20, 0xc820849c00, 0x8, 0x8, 0xc82081f1a0)\r\n    /Users/vojtechvitek/go/src/github.com/--------------.go:175 +0x6e5 fp=0xc820a29f50 sp=0xc820a29d78\r\nruntime.goexit()\r\n    /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc820a29f58 sp=0xc820a29f50\r\ncreated by github.com/--------------Func\r\n    /Users/vojtechvitek/go/src/github.com/--------------.go:178 +0x700\r\n\r\n... other goroutines here ... \r\n\r\nrax    0x7e7880\r\nrbx    0x0\r\nrcx    0x40\r\nrdx    0xc820767200\r\nrdi    0xc82028b528\r\nrsi    0xc820767248\r\nrbp    0x200a0a202e7961\r\nrsp    0xc820a29bf0\r\nr8     0xc82081f1a0\r\nr9     0xc82081f1a0\r\nr10    0xc82028b528\r\nr11    0x3fe00ff803fe00\r\nr12    0x24\r\nr13    0xc745e0\r\nr14    0x3fe00ff\r\nr15    0x36\r\nrip    0xc12c\r\nrflags 0x10293\r\ncs     0x2b\r\nfs     0x0\r\ngs     0x0\r\n```\r\n\r\nhttps://github.com/golang/go/blob/go1.5.1/src/runtime/hashmap.go#L819\r\n\r\nUserspace pseudo-code:\r\n```go\r\nfunc Func() {\r\n    mapData := make(map[int64]*Type)\r\n\r\n    var wg sync.WaitGroup\r\n    wg.Add(1)\r\n    go func() {\r\n        defer wg.Done()\r\n        // ...\r\n        mapData[key] = value      ///// <<<======= \r\n        // ...\r\n    }()\r\n    wg.Wait()\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/143341562","html_url":"https://github.com/golang/go/issues/12753#issuecomment-143341562","issue_url":"https://api.github.com/repos/golang/go/issues/12753","id":143341562,"user":{"login":"VojtechVitek","id":139342,"avatar_url":"https://avatars.githubusercontent.com/u/139342?v=3","gravatar_id":"","url":"https://api.github.com/users/VojtechVitek","html_url":"https://github.com/VojtechVitek","followers_url":"https://api.github.com/users/VojtechVitek/followers","following_url":"https://api.github.com/users/VojtechVitek/following{/other_user}","gists_url":"https://api.github.com/users/VojtechVitek/gists{/gist_id}","starred_url":"https://api.github.com/users/VojtechVitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VojtechVitek/subscriptions","organizations_url":"https://api.github.com/users/VojtechVitek/orgs","repos_url":"https://api.github.com/users/VojtechVitek/repos","events_url":"https://api.github.com/users/VojtechVitek/events{/privacy}","received_events_url":"https://api.github.com/users/VojtechVitek/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T20:13:24Z","updated_at":"2015-09-25T20:13:24Z","body":"@bradfitz thanks, will do.\r\n\r\nIt might have been caused by a race condition in the code. So, is that expected that `panic()` / `recover()` don't capture this?"}}