{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/29","labels_url":"https://api.github.com/repos/jasonhall/codesearch/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/codesearch/issues/29/comments","events_url":"https://api.github.com/repos/jasonhall/codesearch/issues/29/events","html_url":"https://github.com/jasonhall/codesearch/issues/29","id":57509158,"number":29,"title":"cindex fails with mmap errors on OpenBSD","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T19:42:40Z","updated_at":"2015-02-12T19:42:40Z","closed_at":null,"body":"```\nTrying to run codesearch on OpenBSD -current amd64 with go 1.0.3 from packages, \nusing current codesearch code fetched with 'go get', I'm seeing this:\n\n$ go run src/code.google.com/p/codesearch/cmd/cindex/cindex.go /usr/src\n2013/03/04 10:52:52 index /usr/src\n2013/03/04 10:56:11 flush index\n2013/03/04 10:56:12 merge 13 files + mem\n2013/03/04 10:56:12 mmap /tmp/csearch-index060279584: errno 4967816\nexit status 1\n\nIf I run tests I get this,\n\n=== RUN TestMerge\n2013/03/04 11:11:32 merge 0 files + mem\n2013/03/04 11:11:32 99 data bytes, 1217 index bytes\n2013/03/04 11:11:33 merge 0 files + mem\n2013/03/04 11:11:33 87 data bytes, 1217 index bytes\n2013/03/04 11:11:33 mmap /tmp/index-test259895843: errno 5172144\nexit status 1\nFAIL    code.google.com/p/codesearch/index      0.411s\n\nThe errno seems strange, any suggestions what might be happening? OpenBSD does \nnot have UBC so I'm wondering if it may require msync (not sure if cindex is \nmixing access via standard file operations and mmap, but if so, it will need \nmsyncs between the different types of access).\n```\n\n-----\nOriginal issue reported on code.google.com by s...@spacehopper.org on 4 Mar 2013 at 11:19"},"comment":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/comments/74138214","html_url":"https://github.com/jasonhall/codesearch/issues/29#issuecomment-74138214","issue_url":"https://api.github.com/repos/jasonhall/codesearch/issues/29","id":74138214,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:42:40Z","updated_at":"2015-02-12T19:42:40Z","body":"```\nFrom mmap_bsd.go:\n\n        if err != nil {\n                log.Fatalf(\"mmap %s: %v\", f.Name(), err)\n        }\n\nfor mmap it seems failure is only indicated by the returned pointer being set \nto MAP_FAILED (on OpenBSD this is (void *)-1), errno being nonzero doesn't \nnecessarily indicate an error.\n```\n\n-----\nOriginal comment by sthe...@gmail.com on 24 Oct 2013 at 10:46"}}