{"action":"created","issue":{"url":"https://api.github.com/repos/pavouk/lgi/issues/145","repository_url":"https://api.github.com/repos/pavouk/lgi","labels_url":"https://api.github.com/repos/pavouk/lgi/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/pavouk/lgi/issues/145/comments","events_url":"https://api.github.com/repos/pavouk/lgi/issues/145/events","html_url":"https://github.com/pavouk/lgi/issues/145","id":186078328,"number":145,"title":"Segfault with ffi.load('gettextlib').","user":{"login":"v1993","id":16255906,"avatar_url":"https://avatars.githubusercontent.com/u/16255906?v=3","gravatar_id":"","url":"https://api.github.com/users/v1993","html_url":"https://github.com/v1993","followers_url":"https://api.github.com/users/v1993/followers","following_url":"https://api.github.com/users/v1993/following{/other_user}","gists_url":"https://api.github.com/users/v1993/gists{/gist_id}","starred_url":"https://api.github.com/users/v1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v1993/subscriptions","organizations_url":"https://api.github.com/users/v1993/orgs","repos_url":"https://api.github.com/users/v1993/repos","events_url":"https://api.github.com/users/v1993/events{/privacy}","received_events_url":"https://api.github.com/users/v1993/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-29T13:22:19Z","updated_at":"2016-10-29T16:15:08Z","closed_at":null,"body":"This code throws segfalt:\r\n\r\n    local ffi = require 'ffi'\r\n    gettext = ffi.load('gettextlib')\r\n    local lgi = require 'lgi'\r\nI'm using linux mint 18, gettext 0.19.7, lua 5.2 with ffib from https://github.com/facebook/luaffifb, lgi from luarocks. What's wrong? If I will load gettext after lgi, all is ok."},"comment":{"url":"https://api.github.com/repos/pavouk/lgi/issues/comments/257100431","html_url":"https://github.com/pavouk/lgi/issues/145#issuecomment-257100431","issue_url":"https://api.github.com/repos/pavouk/lgi/issues/145","id":257100431,"user":{"login":"psychon","id":89482,"avatar_url":"https://avatars.githubusercontent.com/u/89482?v=3","gravatar_id":"","url":"https://api.github.com/users/psychon","html_url":"https://github.com/psychon","followers_url":"https://api.github.com/users/psychon/followers","following_url":"https://api.github.com/users/psychon/following{/other_user}","gists_url":"https://api.github.com/users/psychon/gists{/gist_id}","starred_url":"https://api.github.com/users/psychon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychon/subscriptions","organizations_url":"https://api.github.com/users/psychon/orgs","repos_url":"https://api.github.com/users/psychon/repos","events_url":"https://api.github.com/users/psychon/events{/privacy}","received_events_url":"https://api.github.com/users/psychon/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T16:15:08Z","updated_at":"2016-10-29T16:15:08Z","body":"Does perhaps the following help you?\r\n```Lua\r\nffi = require(\"ffi\")\r\nffi.cdef(\"const char* gettext(const char* text);\")\r\nprint(ffi.string(ffi.C.gettext(\"foo\")))'\r\n```"}}
{"actor":{"display_login":"psychon"}}