{"action":"created","issue":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/322","repository_url":"https://api.github.com/repos/cgrates/cgrates","labels_url":"https://api.github.com/repos/cgrates/cgrates/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/cgrates/cgrates/issues/322/comments","events_url":"https://api.github.com/repos/cgrates/cgrates/issues/322/events","html_url":"https://github.com/cgrates/cgrates/issues/322","id":121542775,"number":322,"title":"Guard bad map state","user":{"login":"danbogos","id":1607526,"avatar_url":"https://avatars.githubusercontent.com/u/1607526?v=3","gravatar_id":"","url":"https://api.github.com/users/danbogos","html_url":"https://github.com/danbogos","followers_url":"https://api.github.com/users/danbogos/followers","following_url":"https://api.github.com/users/danbogos/following{/other_user}","gists_url":"https://api.github.com/users/danbogos/gists{/gist_id}","starred_url":"https://api.github.com/users/danbogos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbogos/subscriptions","organizations_url":"https://api.github.com/users/danbogos/orgs","repos_url":"https://api.github.com/users/danbogos/repos","events_url":"https://api.github.com/users/danbogos/events{/privacy}","received_events_url":"https://api.github.com/users/danbogos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cgrates/cgrates/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"rif","id":461577,"avatar_url":"https://avatars.githubusercontent.com/u/461577?v=3","gravatar_id":"","url":"https://api.github.com/users/rif","html_url":"https://github.com/rif","followers_url":"https://api.github.com/users/rif/followers","following_url":"https://api.github.com/users/rif/following{/other_user}","gists_url":"https://api.github.com/users/rif/gists{/gist_id}","starred_url":"https://api.github.com/users/rif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rif/subscriptions","organizations_url":"https://api.github.com/users/rif/orgs","repos_url":"https://api.github.com/users/rif/repos","events_url":"https://api.github.com/users/rif/events{/privacy}","received_events_url":"https://api.github.com/users/rif/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cgrates/cgrates/milestones/3","html_url":"https://github.com/cgrates/cgrates/milestones/0.9.1rc8","labels_url":"https://api.github.com/repos/cgrates/cgrates/milestones/3/labels","id":1318213,"number":3,"title":"0.9.1rc8","description":"Should target the last release before stable here.\r\n\r\nDanB","creator":{"login":"danbogos","id":1607526,"avatar_url":"https://avatars.githubusercontent.com/u/1607526?v=3","gravatar_id":"","url":"https://api.github.com/users/danbogos","html_url":"https://github.com/danbogos","followers_url":"https://api.github.com/users/danbogos/followers","following_url":"https://api.github.com/users/danbogos/following{/other_user}","gists_url":"https://api.github.com/users/danbogos/gists{/gist_id}","starred_url":"https://api.github.com/users/danbogos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbogos/subscriptions","organizations_url":"https://api.github.com/users/danbogos/orgs","repos_url":"https://api.github.com/users/danbogos/repos","events_url":"https://api.github.com/users/danbogos/events{/privacy}","received_events_url":"https://api.github.com/users/danbogos/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":62,"state":"open","created_at":"2015-09-22T11:48:23Z","updated_at":"2016-02-10T12:25:20Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-10T17:55:00Z","updated_at":"2016-02-23T12:34:43Z","closed_at":null,"body":"In some extreme load cases we could spot the following panic:\r\n\r\n```\r\nfatal error: bad map state\r\n\r\ngoroutine 708551 [running]:\r\nruntime.throw(0xfa8d60, 0xd)\r\n        /usr/local/go/src/runtime/panic.go:527 +0x90 fp=0xc838d12b38 sp=0xc838d12b20\r\nruntime.evacuate(0xca4ea0, 0xc8204c8750, 0xd98)\r\n        /usr/local/go/src/runtime/hashmap.go:825 +0x3b1 fp=0xc838d12bf8 sp=0xc838d12b38\r\nruntime.growWork(0xca4ea0, 0xc8204c8750, 0x78f5)\r\n        /usr/local/go/src/runtime/hashmap.go:795 +0x83 fp=0xc838d12c18 sp=0xc838d12bf8\r\nruntime.mapassign1(0xca4ea0, 0xc8204c8750, 0xc838d12d70, 0xc838d12d28)\r\n        /usr/local/go/src/runtime/hashmap.go:433 +0x176 fp=0xc838d12cc0 sp=0xc838d12c18\r\ngithub.com/cgrates/cgrates/engine.(*GuardianLock).Guard(0xc820194310, 0xc832131590, 0x77359400, 0xc838d12e98, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)\r\n        /home/byron/GOPATH/src/github.com/cgrates/cgrates/engine/guardian.go:44 +0x1db fp=0xc838d12e30 sp=0xc838d12cc0\r\ngithub.com/cgrates/cgrates/sessionmanager.(*Sessions).removeSession(0xc82096c660, 0xc8219d8120, 0x7f3486fd28b8, 0xc832131560, 0x0, 0x0)\r\n        /home/byron/GOPATH/src/github.com/cgrates/cgrates/sessionmanager/sessions.go:87 +0x197 fp=0xc838d12ed8 sp=0xc838d12e30\r\ngithub.com/cgrates/cgrates/sessionmanager.(*FSSessionManager).onChannelHangupComplete(0xc8200142d0, 0x7f3486fd28b8, 0xc832131560)\r\n        /home/byron/GOPATH/src/github.com/cgrates/cgrates/sessionmanager/fssessionmanager.go:216 +0x130 fp=0xc838d12f40 sp=0xc838d12ed8\r\ngithub.com/cgrates/cgrates/sessionmanager.(*FSSessionManager).createHandlers.func2(0xc83569c780, 0x259, 0xc82096c6c0, 0x24)\r\n        /home/byron/GOPATH/src/github.com/cgrates/cgrates/sessionmanager/fssessionmanager.go:66 +0x76 fp=0xc838d12f90 sp=0xc838d12f40\r\nruntime.goexit()\r\n        /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc838d12f98 sp=0xc838d12f90\r\ncreated by github.com/cgrates/fsock.(*FSock).dispatchEvent\r\n        /home/byron/GOPATH/src/github.com/cgrates/fsock/fsock.go:387 +0x401\r\n```"},"comment":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/comments/187681807","html_url":"https://github.com/cgrates/cgrates/issues/322#issuecomment-187681807","issue_url":"https://api.github.com/repos/cgrates/cgrates/issues/322","id":187681807,"user":{"login":"MarcVoIP","id":17156832,"avatar_url":"https://avatars.githubusercontent.com/u/17156832?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcVoIP","html_url":"https://github.com/MarcVoIP","followers_url":"https://api.github.com/users/MarcVoIP/followers","following_url":"https://api.github.com/users/MarcVoIP/following{/other_user}","gists_url":"https://api.github.com/users/MarcVoIP/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcVoIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcVoIP/subscriptions","organizations_url":"https://api.github.com/users/MarcVoIP/orgs","repos_url":"https://api.github.com/users/MarcVoIP/repos","events_url":"https://api.github.com/users/MarcVoIP/events{/privacy}","received_events_url":"https://api.github.com/users/MarcVoIP/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T12:34:43Z","updated_at":"2016-02-23T12:34:43Z","body":"So far no luck in reproducing the issue on better servers and with separate database and Freeswitch nodes. Cgrates performs well even with 160CPS (new call setups per second). I will continue the test and report in case of any further issues. \r\n\r\nStill using   go1.5.3 linux/amd64 and master cgrates trunk"}}