{"action":"created","issue":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/1900","repository_url":"https://api.github.com/repos/universal-ctags/ctags","labels_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1900/labels{/name}","comments_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1900/comments","events_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1900/events","html_url":"https://github.com/universal-ctags/ctags/issues/1900","id":366440971,"node_id":"MDU6SXNzdWUzNjY0NDA5NzE=","number":1900,"title":"Possible memory leak with opengrok","user":{"login":"gtoph","id":22400253,"node_id":"MDQ6VXNlcjIyNDAwMjUz","avatar_url":"https://avatars2.githubusercontent.com/u/22400253?v=4","gravatar_id":"","url":"https://api.github.com/users/gtoph","html_url":"https://github.com/gtoph","followers_url":"https://api.github.com/users/gtoph/followers","following_url":"https://api.github.com/users/gtoph/following{/other_user}","gists_url":"https://api.github.com/users/gtoph/gists{/gist_id}","starred_url":"https://api.github.com/users/gtoph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtoph/subscriptions","organizations_url":"https://api.github.com/users/gtoph/orgs","repos_url":"https://api.github.com/users/gtoph/repos","events_url":"https://api.github.com/users/gtoph/events{/privacy}","received_events_url":"https://api.github.com/users/gtoph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-03T17:12:58Z","updated_at":"2018-10-04T23:04:13Z","closed_at":null,"author_association":"NONE","body":"Posted on the opengrok issue page as well as I'm not sure if there is a possible leak on their end or from ctags itself, but the memory usage seems to keep growing when doing the indexing.\r\n\r\nI'm using the latest daily build (9/29 I think it is) but don't really have any more info that what you see below, but maybe the command line itself will point to something obvious?\r\n\r\n![ctags_mem](https://user-images.githubusercontent.com/22400253/46426913-c426d800-c6f4-11e8-84cb-5bb74595b7e4.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/comments/427196843","html_url":"https://github.com/universal-ctags/ctags/issues/1900#issuecomment-427196843","issue_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1900","id":427196843,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzE5Njg0Mw==","user":{"login":"masatake","id":77077,"node_id":"MDQ6VXNlcjc3MDc3","avatar_url":"https://avatars2.githubusercontent.com/u/77077?v=4","gravatar_id":"","url":"https://api.github.com/users/masatake","html_url":"https://github.com/masatake","followers_url":"https://api.github.com/users/masatake/followers","following_url":"https://api.github.com/users/masatake/following{/other_user}","gists_url":"https://api.github.com/users/masatake/gists{/gist_id}","starred_url":"https://api.github.com/users/masatake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masatake/subscriptions","organizations_url":"https://api.github.com/users/masatake/orgs","repos_url":"https://api.github.com/users/masatake/repos","events_url":"https://api.github.com/users/masatake/events{/privacy}","received_events_url":"https://api.github.com/users/masatake/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T23:04:13Z","updated_at":"2018-10-04T23:04:13Z","author_association":"MEMBER","body":"I cloned the source tree of Linux kernel (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/).\r\nAnd I checked out 67b8d5c7081221efa252e111cd52532ec6d4266f.\r\n\r\nThen I run:\r\n```\r\n$ { find ~/var/linux -type f; echo __END_CTAGS__; } | valgrind --leak-check=full  --show-reachable=yes ./ctags   --c-kinds=+l --file-scope=yes -u --filter --fi\\\r\nlter-terminator=__END_CTAGS__ --fields=-anf+iKnS > /dev/null\r\n```\r\n\r\nWhat I got is\r\n```\r\n=16040==    definitely lost: 0 bytes in 0 blocks\r\n==16040==    indirectly lost: 0 bytes in 0 blocks\r\n==16040==      possibly lost: 0 bytes in 0 blocks\r\n==16040==    still reachable: 41,895 bytes in 214 blocks\r\n==16040==         suppressed: 0 bytes in 0 blocks\r\n==16040==\r\n==16040== For counts of detected and suppressed errors, rerun with: -v\r\n==16040== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\r\n```\r\nThere is no \"definitely lost\". The many part of \"still reachable\" come from XML parser.\r\nI would like you to try to give only XML files to ctags, and tell me what happens."}}
{"actor":{"display_login":"masatake"}}