{"action":"created","issue":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/207","labels_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/207/comments","events_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/207/events","html_url":"https://github.com/PurpleI2P/i2pd/issues/207","id":89084949,"number":207,"title":"Assert while removing SAM socket, concurency & thread safety problem","user":{"login":"mlt","id":413384,"avatar_url":"https://avatars.githubusercontent.com/u/413384?v=3","gravatar_id":"","url":"https://api.github.com/users/mlt","html_url":"https://github.com/mlt","followers_url":"https://api.github.com/users/mlt/followers","following_url":"https://api.github.com/users/mlt/following{/other_user}","gists_url":"https://api.github.com/users/mlt/gists{/gist_id}","starred_url":"https://api.github.com/users/mlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlt/subscriptions","organizations_url":"https://api.github.com/users/mlt/orgs","repos_url":"https://api.github.com/users/mlt/repos","events_url":"https://api.github.com/users/mlt/events{/privacy}","received_events_url":"https://api.github.com/users/mlt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-17T18:04:42Z","updated_at":"2015-06-24T19:41:56Z","closed_at":null,"body":"Assertion failed for a [sockets](https://github.com/PurpleI2P/i2pd/blob/master/SAM.cpp#L51) list item while handling [stream error](https://github.com/PurpleI2P/i2pd/blob/master/SAM.cpp#L593). From what I see *erase* found an item, but when it tried to delete it an assert failed that block was not in use. I see that an iterator is not valid in list::remove ."},"comment":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/comments/114990258","html_url":"https://github.com/PurpleI2P/i2pd/issues/207#issuecomment-114990258","issue_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/207","id":114990258,"user":{"login":"mlt","id":413384,"avatar_url":"https://avatars.githubusercontent.com/u/413384?v=3","gravatar_id":"","url":"https://api.github.com/users/mlt","html_url":"https://github.com/mlt","followers_url":"https://api.github.com/users/mlt/followers","following_url":"https://api.github.com/users/mlt/following{/other_user}","gists_url":"https://api.github.com/users/mlt/gists{/gist_id}","starred_url":"https://api.github.com/users/mlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlt/subscriptions","organizations_url":"https://api.github.com/users/mlt/orgs","repos_url":"https://api.github.com/users/mlt/repos","events_url":"https://api.github.com/users/mlt/events{/privacy}","received_events_url":"https://api.github.com/users/mlt/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T19:41:55Z","updated_at":"2015-06-24T19:41:55Z","body":"```csv\r\n2015-Jun-24 14:26:58.757640,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::SAMSocket @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.317843,Thread=0x00005700,debug,SAMSocket,i2p::client::SAMSocket::Terminate @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.323842,Thread=0x00005700,debug,SAMSocket,i2p::client::SAMSocket::CloseStream @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.360845,Thread=0x00005700,debug,SAMSocket,i2p::client::SAMSocket::Terminate @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.366845,Thread=0x00005700,debug,SAMSocket,i2p::client::SAMSocket::CloseStream @ 0x0909EFF8\r\n... posted to SAM bridge thread\r\n2015-Jun-24 14:32:05.431849,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::TerminateSession @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.439850,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::TerminateSession @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.456850,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::~SAMSocket @ 0x0909EFF8\r\n2015-Jun-24 14:32:05.473851,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::CloseStream @ 0x0909EFF8\r\n... memory being reused for another one\r\n2015-Jun-24 14:32:08.120852,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::SAMSocket @ 0x0909EFF8\r\n2015-Jun-24 14:32:50.137697,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::Terminate @ 0x0909EFF8\r\n2015-Jun-24 14:32:50.146706,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::CloseStream @ 0x0909EFF8\r\n2015-Jun-24 14:32:50.156101,Thread=0x00005140,debug,SAMSocket,i2p::client::SAMSocket::TerminateSession @ 0x0909EFF8\r\n```\r\nThere are still multiple calls to same functions, but as you said it is alright. So far it didn't die on win32."}}