{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13992","labels_url":"https://api.github.com/repos/golang/go/issues/13992/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13992/comments","events_url":"https://api.github.com/repos/golang/go/issues/13992/events","html_url":"https://github.com/golang/go/issues/13992","id":127184458,"number":13992,"title":"runtime: memory allocated by OS not in usable range (ARM)","user":{"login":"karalabe","id":129561,"avatar_url":"https://avatars.githubusercontent.com/u/129561?v=3","gravatar_id":"","url":"https://api.github.com/users/karalabe","html_url":"https://github.com/karalabe","followers_url":"https://api.github.com/users/karalabe/followers","following_url":"https://api.github.com/users/karalabe/following{/other_user}","gists_url":"https://api.github.com/users/karalabe/gists{/gist_id}","starred_url":"https://api.github.com/users/karalabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karalabe/subscriptions","organizations_url":"https://api.github.com/users/karalabe/orgs","repos_url":"https://api.github.com/users/karalabe/repos","events_url":"https://api.github.com/users/karalabe/events{/privacy}","received_events_url":"https://api.github.com/users/karalabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/34","html_url":"https://github.com/golang/go/milestones/Go1.6Maybe","labels_url":"https://api.github.com/repos/golang/go/milestones/34/labels","id":1425772,"number":34,"title":"Go1.6Maybe","description":"Maybe this will happen for Go 1.6.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":23,"state":"open","created_at":"2015-11-23T18:39:45Z","updated_at":"2016-01-18T17:06:42Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-18T09:21:03Z","updated_at":"2016-01-18T17:08:31Z","closed_at":null,"body":"Hey all,\r\n\r\n  I'm not sure whether this is a bug in Go, a bug in our code or something just odd, but thought I'd post it to get some pointers, as previous occurrences of this error usually meant bugs in the runtime.\r\n\r\n  One of our users were experimenting with running our Ethereum codebase on Android, ARMv7 with Go 1.6 beta1 or beta2 (didn't get a confirmation yet on it), and at a certain point he was hit with the non-usable memory error below:\r\n\r\n```\r\nruntime: memory allocated by OS (1626533888) not in usable range [0x9143a000,0x1143a000)\r\nruntime: out of memory: cannot allocate 268435456-byte block (3145728 in use)\r\n```\r\n\r\n  Could this point to an underlying issue in Go, or should I look in our own code base? Given the oddity of the report that memory seems to be available but Go cannot use it, it seems to me that it's an issue with Go, but I'm not sure of it.\r\n\r\n---\r\n\r\nUpdate: I think the Android library producing this issue was built with 1.6beta1 (via [xgo](https://github.com/karalabe/xgo), notable [this .aar bundle](https://bintray.com/artifact/download/karalabe/ethereum/geth-1.4.0-unstable-5945a33-android-21.aar.tar.bz2)),  will ask for a repro code if it's deemed to be a Go bug requiring investigation. The code was ran on a Sony Xperia Z2, which should have plenty of memory to cover the code's requirements.\r\n\r\nUpdate 2: Given that the cross builds are from xgo, both ARMv7 and ARM64 libraries are included in there, so the issue might be with ARM64 and not ARMv7 as I originally thought."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/172593460","html_url":"https://github.com/golang/go/issues/13992#issuecomment-172593460","issue_url":"https://api.github.com/repos/golang/go/issues/13992","id":172593460,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T17:08:31Z","updated_at":"2016-01-18T17:08:31Z","body":"This can happen on a 32-bit system if your program is using too much memory--that is, if it is going to run out of memory anyhow.  One thing to check is whether the program has a bug causing it to use memory without bounds.\r\n\r\nIt is also possible that this is a Go runtime error.  Does this error happen consistently?  Is there a way that we can reproduce the problem?"}}