{"action":"closed","issue":{"url":"https://api.github.com/repos/rhysd/Dachs/issues/33","labels_url":"https://api.github.com/repos/rhysd/Dachs/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/rhysd/Dachs/issues/33/comments","events_url":"https://api.github.com/repos/rhysd/Dachs/issues/33/events","html_url":"https://github.com/rhysd/Dachs/issues/33","id":57272399,"number":33,"title":"Calling some functions in runtime causes SEGV","user":{"login":"rhysd","id":823277,"avatar_url":"https://avatars.githubusercontent.com/u/823277?v=3","gravatar_id":"","url":"https://api.github.com/users/rhysd","html_url":"https://github.com/rhysd","followers_url":"https://api.github.com/users/rhysd/followers","following_url":"https://api.github.com/users/rhysd/following{/other_user}","gists_url":"https://api.github.com/users/rhysd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhysd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhysd/subscriptions","organizations_url":"https://api.github.com/users/rhysd/orgs","repos_url":"https://api.github.com/users/rhysd/repos","events_url":"https://api.github.com/users/rhysd/events{/privacy}","received_events_url":"https://api.github.com/users/rhysd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rhysd/Dachs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"rhysd","id":823277,"avatar_url":"https://avatars.githubusercontent.com/u/823277?v=3","gravatar_id":"","url":"https://api.github.com/users/rhysd","html_url":"https://github.com/rhysd","followers_url":"https://api.github.com/users/rhysd/followers","following_url":"https://api.github.com/users/rhysd/following{/other_user}","gists_url":"https://api.github.com/users/rhysd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhysd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhysd/subscriptions","organizations_url":"https://api.github.com/users/rhysd/orgs","repos_url":"https://api.github.com/users/rhysd/repos","events_url":"https://api.github.com/users/rhysd/events{/privacy}","received_events_url":"https://api.github.com/users/rhysd/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-11T03:30:05Z","updated_at":"2015-02-13T09:07:23Z","closed_at":"2015-02-13T09:07:23Z","body":"`println(s : symbol)` and `print(s : symbol)` which are introduced in #30 seem to cause SEGV.  I confirmed it in Ubuntu and OS X.\r\nThey leads to call internal function `__dachs_println_symbol__(i64)` and `__dachs_print_symbol__(i64)` actually and calling them seems to make a program go to SEGV.\r\n\r\n- Emitting an LLVM IR and modifying it to call `__dachs_println_uint__(i64)` doesn't occur SEGV.\r\n- Removing `std::printf()` call in `__dachs_println_symbol__(std::uint64_t)` doesn't affect this issue.  It means that calling `__dachs_println_symbol__(i64)` itself causes SEGV.\r\n- I wrote C code which calls `__dachs_println_symbol(std::uint64_t)` and linked it to libdachs.  I confirmed that the program compiled from C code causes SEGV.  It seems that this is a problem of runtime."}}