{"action":"created","issue":{"url":"https://api.github.com/repos/turbobytes/geoipdb/issues/24","repository_url":"https://api.github.com/repos/turbobytes/geoipdb","labels_url":"https://api.github.com/repos/turbobytes/geoipdb/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/turbobytes/geoipdb/issues/24/comments","events_url":"https://api.github.com/repos/turbobytes/geoipdb/issues/24/events","html_url":"https://github.com/turbobytes/geoipdb/issues/24","id":194293132,"number":24,"title":"concurrent map writes causes cnc to panic","user":{"login":"sajal","id":25007,"avatar_url":"https://avatars.githubusercontent.com/u/25007?v=3","gravatar_id":"","url":"https://api.github.com/users/sajal","html_url":"https://github.com/sajal","followers_url":"https://api.github.com/users/sajal/followers","following_url":"https://api.github.com/users/sajal/following{/other_user}","gists_url":"https://api.github.com/users/sajal/gists{/gist_id}","starred_url":"https://api.github.com/users/sajal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajal/subscriptions","organizations_url":"https://api.github.com/users/sajal/orgs","repos_url":"https://api.github.com/users/sajal/repos","events_url":"https://api.github.com/users/sajal/events{/privacy}","received_events_url":"https://api.github.com/users/sajal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T10:02:21Z","updated_at":"2016-12-08T10:29:07Z","closed_at":null,"body":"Panic caused at : https://github.com/turbobytes/geoipdb/blob/c20a6ca6a6f3b33301955d03a02bba07d2390edf/cache.go#L73\r\n\r\nI see that map operation is wrapped in a lock, but maybe something else started writing to it at the same time without locking?\r\n\r\ncrashlog snippet: https://gist.github.com/sajal/a567bd6d5f168e12cda67dc737cc21d9"},"comment":{"url":"https://api.github.com/repos/turbobytes/geoipdb/issues/comments/265707024","html_url":"https://github.com/turbobytes/geoipdb/issues/24#issuecomment-265707024","issue_url":"https://api.github.com/repos/turbobytes/geoipdb/issues/24","id":265707024,"user":{"login":"sajal","id":25007,"avatar_url":"https://avatars.githubusercontent.com/u/25007?v=3","gravatar_id":"","url":"https://api.github.com/users/sajal","html_url":"https://github.com/sajal","followers_url":"https://api.github.com/users/sajal/followers","following_url":"https://api.github.com/users/sajal/following{/other_user}","gists_url":"https://api.github.com/users/sajal/gists{/gist_id}","starred_url":"https://api.github.com/users/sajal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajal/subscriptions","organizations_url":"https://api.github.com/users/sajal/orgs","repos_url":"https://api.github.com/users/sajal/repos","events_url":"https://api.github.com/users/sajal/events{/privacy}","received_events_url":"https://api.github.com/users/sajal/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T10:29:07Z","updated_at":"2016-12-08T10:29:07Z","body":"The problem is with `sync.Mutex` . It really needs to be a pointer\r\n\r\nhttps://gist.github.com/sajal/50e173fcd3fa043f46e1e5084512d5de\r\n\r\n    go run buggy.go 2>&1 | less"}}
{"actor":{"display_login":"sajal"}}