{"action":"created","issue":{"url":"https://api.github.com/repos/endobson/racket-llvm/issues/5","labels_url":"https://api.github.com/repos/endobson/racket-llvm/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/endobson/racket-llvm/issues/5/comments","events_url":"https://api.github.com/repos/endobson/racket-llvm/issues/5/events","html_url":"https://github.com/endobson/racket-llvm/issues/5","id":83480032,"number":5,"title":"create-index in clang.rkt crashes","user":{"login":"parenthetical","id":10009041,"avatar_url":"https://avatars.githubusercontent.com/u/10009041?v=3","gravatar_id":"","url":"https://api.github.com/users/parenthetical","html_url":"https://github.com/parenthetical","followers_url":"https://api.github.com/users/parenthetical/followers","following_url":"https://api.github.com/users/parenthetical/following{/other_user}","gists_url":"https://api.github.com/users/parenthetical/gists{/gist_id}","starred_url":"https://api.github.com/users/parenthetical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parenthetical/subscriptions","organizations_url":"https://api.github.com/users/parenthetical/orgs","repos_url":"https://api.github.com/users/parenthetical/repos","events_url":"https://api.github.com/users/parenthetical/events{/privacy}","received_events_url":"https://api.github.com/users/parenthetical/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T12:59:41Z","updated_at":"2015-06-01T17:07:50Z","closed_at":null,"body":"I'm trying to get racket-llvm up and running, but I'm getting crashes when trying to load the example programs. I've tracked the crash from `enums.rkt` to `read-header` to `create-index`. Once the inner allocator `create-index` here is called the whole process crashes:\r\n```\r\n(define create-index\r\n  (let ()\r\n    (define dispose-index\r\n      (get-ffi-obj \"clang_disposeIndex\" lib-clang (_fun _pointer -> _void))) \r\n    (define create-index\r\n      ((allocator dispose-index)\r\n       (get-ffi-obj \"clang_createIndex\" lib-clang (_fun _bool _bool -> _pointer))) )\r\n    \r\n    (lambda (#:exclude-declarations-from-pch [exclude #f] #:display-diagnostics [diagnostics #f])\r\n      (index (create-index exclude diagnostics)))))\r\n```\r\n\r\nI haven't been able to look at core dumps yet (not that I could find any, despite the \"core dumped\" message), but maybe someone might know what's up?"},"comment":{"url":"https://api.github.com/repos/endobson/racket-llvm/issues/comments/107641435","html_url":"https://github.com/endobson/racket-llvm/issues/5#issuecomment-107641435","issue_url":"https://api.github.com/repos/endobson/racket-llvm/issues/5","id":107641435,"user":{"login":"endobson","id":170008,"avatar_url":"https://avatars.githubusercontent.com/u/170008?v=3","gravatar_id":"","url":"https://api.github.com/users/endobson","html_url":"https://github.com/endobson","followers_url":"https://api.github.com/users/endobson/followers","following_url":"https://api.github.com/users/endobson/following{/other_user}","gists_url":"https://api.github.com/users/endobson/gists{/gist_id}","starred_url":"https://api.github.com/users/endobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endobson/subscriptions","organizations_url":"https://api.github.com/users/endobson/orgs","repos_url":"https://api.github.com/users/endobson/repos","events_url":"https://api.github.com/users/endobson/events{/privacy}","received_events_url":"https://api.github.com/users/endobson/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T17:07:49Z","updated_at":"2015-06-01T17:07:49Z","body":"I'm about to be out for a trip for the next few days, so won't be able to look at until after that. But important things for debugging. What version of LLVM and OS are you using? I have only tested on OS X at the latest version of LLVM when a commit was made.\r\n\r\nAlso I just pushed two changes that were written months ago, one of which fixed a bug in `enums.rkt` so that might have been your issue."}}