{"action":"created","issue":{"url":"https://api.github.com/repos/ucb-bar/chisel/issues/624","labels_url":"https://api.github.com/repos/ucb-bar/chisel/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/ucb-bar/chisel/issues/624/comments","events_url":"https://api.github.com/repos/ucb-bar/chisel/issues/624/events","html_url":"https://github.com/ucb-bar/chisel/issues/624","id":122777622,"number":624,"title":"C++ simulation fails with IndexOutOfBoundsException","user":{"login":"ucbjrl","id":6845888,"avatar_url":"https://avatars.githubusercontent.com/u/6845888?v=3","gravatar_id":"","url":"https://api.github.com/users/ucbjrl","html_url":"https://github.com/ucbjrl","followers_url":"https://api.github.com/users/ucbjrl/followers","following_url":"https://api.github.com/users/ucbjrl/following{/other_user}","gists_url":"https://api.github.com/users/ucbjrl/gists{/gist_id}","starred_url":"https://api.github.com/users/ucbjrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucbjrl/subscriptions","organizations_url":"https://api.github.com/users/ucbjrl/orgs","repos_url":"https://api.github.com/users/ucbjrl/repos","events_url":"https://api.github.com/users/ucbjrl/events{/privacy}","received_events_url":"https://api.github.com/users/ucbjrl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T17:01:21Z","updated_at":"2015-12-17T17:22:17Z","closed_at":"2015-12-17T17:22:17Z","body":"Rarely we encounter a simulation run that fails (typically in the ArbiterSuite) with:\r\n\r\n    [info]   java.lang.IndexOutOfBoundsException:\r\n    [info]   at java.nio.Buffer.checkIndex(Buffer.java:532)\r\n    [info]   at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:300)\r\n    [info]   at Chisel.Tester$Channel.release(Tester.scala:148)\r\n    [info]   at Chisel.Tester.start(Tester.scala:717)\r\n    [info]   at Chisel.Tester.<init>(Tester.scala:743)\r\n    [info]   at ArbiterSuite$ArbiterTests$8.<init>(ArbiterTest.scala:396)\r\n    [info]   at ArbiterSuite$$anonfun$testStableRRArbiter$1.apply(ArbiterTest.scala:440)\r\n    [info]   at ArbiterSuite$$anonfun$testStableRRArbiter$1.apply(ArbiterTest.scala:440)\r\n    [info]   at Chisel.Driver$.apply(Driver.scala:65)\r\n    [info]   at Chisel.chiselMain$.apply(hcl.scala:63)\r\n    [info]   ...\r\n\r\nThis looks like a reality failure - how can writing a single 0 byte to the beginning of the memory-mapped buffer fail? We should ensure the buffer size is non-zero when we map the channel."},"comment":{"url":"https://api.github.com/repos/ucb-bar/chisel/issues/comments/165520156","html_url":"https://github.com/ucb-bar/chisel/issues/624#issuecomment-165520156","issue_url":"https://api.github.com/repos/ucb-bar/chisel/issues/624","id":165520156,"user":{"login":"ucbjrl","id":6845888,"avatar_url":"https://avatars.githubusercontent.com/u/6845888?v=3","gravatar_id":"","url":"https://api.github.com/users/ucbjrl","html_url":"https://github.com/ucbjrl","followers_url":"https://api.github.com/users/ucbjrl/followers","following_url":"https://api.github.com/users/ucbjrl/following{/other_user}","gists_url":"https://api.github.com/users/ucbjrl/gists{/gist_id}","starred_url":"https://api.github.com/users/ucbjrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucbjrl/subscriptions","organizations_url":"https://api.github.com/users/ucbjrl/orgs","repos_url":"https://api.github.com/users/ucbjrl/repos","events_url":"https://api.github.com/users/ucbjrl/events{/privacy}","received_events_url":"https://api.github.com/users/ucbjrl/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T17:22:17Z","updated_at":"2015-12-17T17:22:17Z","body":"Closed by #625 (hopefully)."}}