{"action":"created","issue":{"url":"https://api.github.com/repos/xlab/c-for-go/issues/54","repository_url":"https://api.github.com/repos/xlab/c-for-go","labels_url":"https://api.github.com/repos/xlab/c-for-go/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/xlab/c-for-go/issues/54/comments","events_url":"https://api.github.com/repos/xlab/c-for-go/issues/54/events","html_url":"https://github.com/xlab/c-for-go/issues/54","id":334882546,"node_id":"MDU6SXNzdWUzMzQ4ODI1NDY=","number":54,"title":"Parasitic refHHHH and allocHHHH fields inside structs and recursive pointers","user":{"login":"dvlempljl","id":38659294,"node_id":"MDQ6VXNlcjM4NjU5Mjk0","avatar_url":"https://avatars3.githubusercontent.com/u/38659294?v=4","gravatar_id":"","url":"https://api.github.com/users/dvlempljl","html_url":"https://github.com/dvlempljl","followers_url":"https://api.github.com/users/dvlempljl/followers","following_url":"https://api.github.com/users/dvlempljl/following{/other_user}","gists_url":"https://api.github.com/users/dvlempljl/gists{/gist_id}","starred_url":"https://api.github.com/users/dvlempljl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvlempljl/subscriptions","organizations_url":"https://api.github.com/users/dvlempljl/orgs","repos_url":"https://api.github.com/users/dvlempljl/repos","events_url":"https://api.github.com/users/dvlempljl/events{/privacy}","received_events_url":"https://api.github.com/users/dvlempljl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-22T13:41:52Z","updated_at":"2018-06-25T20:11:07Z","closed_at":null,"author_association":"NONE","body":"I have a fairly large and complicated C library that I would like to provide as golang binding.\r\nHowever at the moment I'm facing weird behavior and I'm not sure what I'm doing wrong or I'm simply facing a bug.\r\n\r\nSince the library is quite big I've reproduced the issue by just extracting the bare minimum of it to showcase the issue.\r\n\r\nI've made a simple archive with singe header file, yml file and currently converted to golang files:\r\n[test.tar.gz](https://github.com/xlab/c-for-go/files/2127816/test.tar.gz)\r\n \r\nThe problems I'm concerned with are inside types.go:\r\n\r\nInside generated struct-s I'm having fields like:\r\n\r\nref11f63067    *C.tsif_p\r\nallocs11f63067 interface{}\r\n\r\nAnd for the \"type TsifT struct\" I'm also having recursive pointer:\r\n\r\nrefff3c8fce    ****************************************************************************************************************************************************************************************************************************************************************C.tsif_t\r\n\r\nwhich is plainly a bug.\r\n\r\nI've tried MemTips and PtrTips, but I don't get the satisfactory results.\r\n\r\nAny ideas what went wrong?"},"comment":{"url":"https://api.github.com/repos/xlab/c-for-go/issues/comments/400079640","html_url":"https://github.com/xlab/c-for-go/issues/54#issuecomment-400079640","issue_url":"https://api.github.com/repos/xlab/c-for-go/issues/54","id":400079640,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDA3OTY0MA==","user":{"login":"juliandroid","id":7766093,"node_id":"MDQ6VXNlcjc3NjYwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7766093?v=4","gravatar_id":"","url":"https://api.github.com/users/juliandroid","html_url":"https://github.com/juliandroid","followers_url":"https://api.github.com/users/juliandroid/followers","following_url":"https://api.github.com/users/juliandroid/following{/other_user}","gists_url":"https://api.github.com/users/juliandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/juliandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliandroid/subscriptions","organizations_url":"https://api.github.com/users/juliandroid/orgs","repos_url":"https://api.github.com/users/juliandroid/repos","events_url":"https://api.github.com/users/juliandroid/events{/privacy}","received_events_url":"https://api.github.com/users/juliandroid/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T20:11:07Z","updated_at":"2018-06-25T20:11:07Z","author_association":"NONE","body":"xlab, thanks for looking into that. Didn't you manage to reproduce the same results by using the same test.tar.gz (attached file)?\r\n\r\nCan you please confirm that test.tar.gz doesn't help you to reproduce both issues?\r\n\r\nRegarding to TsiftT structure (C type tsif_t) - I actually need to use that since it is part of the API (as it is marked with comment inside header file \"/** interfaces within endpoint */\").\r\n\r\nAny help with that? It seems to me some sort of bug."}}
{"actor":{"display_login":"juliandroid"}}