{"action":"created","issue":{"url":"https://api.github.com/repos/maidsafe/crust/issues/257","labels_url":"https://api.github.com/repos/maidsafe/crust/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/maidsafe/crust/issues/257/comments","events_url":"https://api.github.com/repos/maidsafe/crust/issues/257/events","html_url":"https://github.com/maidsafe/crust/issues/257","id":101880353,"number":257,"title":"Fedora - 'test_avoid_beacon seek_peers 2' panicked","user":{"login":"rossmuir","id":6030823,"avatar_url":"https://avatars.githubusercontent.com/u/6030823?v=3","gravatar_id":"","url":"https://api.github.com/users/rossmuir","html_url":"https://github.com/rossmuir","followers_url":"https://api.github.com/users/rossmuir/followers","following_url":"https://api.github.com/users/rossmuir/following{/other_user}","gists_url":"https://api.github.com/users/rossmuir/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmuir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmuir/subscriptions","organizations_url":"https://api.github.com/users/rossmuir/orgs","repos_url":"https://api.github.com/users/rossmuir/repos","events_url":"https://api.github.com/users/rossmuir/events{/privacy}","received_events_url":"https://api.github.com/users/rossmuir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maidsafe/crust/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-08-19T12:24:28Z","updated_at":"2016-01-06T09:05:47Z","closed_at":null,"body":"`Fedora release 20 (Heisenbug)` / `rustc 1.4.0-nightly (7e13faee1 2015-08-19)` \r\n2 cores and 2 gb memory\r\n\r\nTests hanging with error \r\n```\r\ntest beacon::test::test_avoid_beacon ... thread 'test_avoid_beacon seek_peers 2' panicked at 'index out of bounds: the len is 0 but the index is 0', ../src/libcollections/vec.rs:1047\r\n```\r\n\r\nWhoever picks this one up I have created a Fedora CI to replicate and test this on - access on request."},"comment":{"url":"https://api.github.com/repos/maidsafe/crust/issues/comments/169271477","html_url":"https://github.com/maidsafe/crust/issues/257#issuecomment-169271477","issue_url":"https://api.github.com/repos/maidsafe/crust/issues/257","id":169271477,"user":{"login":"vinipsmaker","id":865914,"avatar_url":"https://avatars.githubusercontent.com/u/865914?v=3","gravatar_id":"","url":"https://api.github.com/users/vinipsmaker","html_url":"https://github.com/vinipsmaker","followers_url":"https://api.github.com/users/vinipsmaker/followers","following_url":"https://api.github.com/users/vinipsmaker/following{/other_user}","gists_url":"https://api.github.com/users/vinipsmaker/gists{/gist_id}","starred_url":"https://api.github.com/users/vinipsmaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinipsmaker/subscriptions","organizations_url":"https://api.github.com/users/vinipsmaker/orgs","repos_url":"https://api.github.com/users/vinipsmaker/repos","events_url":"https://api.github.com/users/vinipsmaker/events{/privacy}","received_events_url":"https://api.github.com/users/vinipsmaker/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T09:05:47Z","updated_at":"2016-01-06T09:05:47Z","body":"This issue is so old. Does it still happens?\r\n\r\nThe only thing that comes to my mind is a race in this test: https://github.com/maidsafe/crust/blob/ff9f1080e48e70942491ed2a1199cbb02dd9ec22/src/beacon.rs#L330\r\n\r\nI think a proper fix is to make `t3` wait for `t2` to finish instead this [racy approach](https://github.com/maidsafe/crust/blob/ff9f1080e48e70942491ed2a1199cbb02dd9ec22/src/beacon.rs#L329). But I'd like to confirm this error still happens before proposing the fix."}}