{"action":"opened","number":62,"pull_request":{"url":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62","id":75671699,"html_url":"https://github.com/ledbettj/systemd-journal/pull/62","diff_url":"https://github.com/ledbettj/systemd-journal/pull/62.diff","patch_url":"https://github.com/ledbettj/systemd-journal/pull/62.patch","issue_url":"https://api.github.com/repos/ledbettj/systemd-journal/issues/62","number":62,"state":"open","locked":false,"title":"Fix a bug where using LibC.free() can cause faults when using alternative malloc","user":{"login":"mark-adams","id":472350,"avatar_url":"https://avatars.githubusercontent.com/u/472350?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-adams","html_url":"https://github.com/mark-adams","followers_url":"https://api.github.com/users/mark-adams/followers","following_url":"https://api.github.com/users/mark-adams/following{/other_user}","gists_url":"https://api.github.com/users/mark-adams/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-adams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-adams/subscriptions","organizations_url":"https://api.github.com/users/mark-adams/orgs","repos_url":"https://api.github.com/users/mark-adams/repos","events_url":"https://api.github.com/users/mark-adams/events{/privacy}","received_events_url":"https://api.github.com/users/mark-adams/received_events","type":"User","site_admin":false},"body":"While attempting to get the fluent-plugin-systemd to work with td-agent,\r\nI was running into a problem where td-agent would suddenly die when\r\ntrying to access a cursor.\r\n\r\nUpon further review, it was discovered that this did not happen if\r\nLibC.free(ptr) was commented out in read_and_free_outstr(). Upon digging\r\ninto the issue deeper, it appears that td-agent is configured to use\r\njemalloc (via LD_PRELOAD). From what I can tell, LibC.free() attempts to\r\nuse the normal system malloc-based free instead of linking against the\r\njemalloc version. As a result, the attempt to free crashes the process.\r\n\r\nI believe the best solution to the problem is to replace this call with\r\na call to ptr.free() which will allow FFI to handle this appropriately\r\nand not crash the process.","created_at":"2016-06-29T15:40:14Z","updated_at":"2016-06-29T15:40:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62/commits","review_comments_url":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62/comments","review_comment_url":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ledbettj/systemd-journal/issues/62/comments","statuses_url":"https://api.github.com/repos/ledbettj/systemd-journal/statuses/d7fbcf2de4946f8d8b764e4bfed9ac379d5ee2d9","head":{"label":"mark-adams:fix-free-bug","ref":"fix-free-bug","sha":"d7fbcf2de4946f8d8b764e4bfed9ac379d5ee2d9","user":{"login":"mark-adams","id":472350,"avatar_url":"https://avatars.githubusercontent.com/u/472350?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-adams","html_url":"https://github.com/mark-adams","followers_url":"https://api.github.com/users/mark-adams/followers","following_url":"https://api.github.com/users/mark-adams/following{/other_user}","gists_url":"https://api.github.com/users/mark-adams/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-adams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-adams/subscriptions","organizations_url":"https://api.github.com/users/mark-adams/orgs","repos_url":"https://api.github.com/users/mark-adams/repos","events_url":"https://api.github.com/users/mark-adams/events{/privacy}","received_events_url":"https://api.github.com/users/mark-adams/received_events","type":"User","site_admin":false},"repo":{"id":62237738,"name":"systemd-journal","full_name":"mark-adams/systemd-journal","owner":{"login":"mark-adams","id":472350,"avatar_url":"https://avatars.githubusercontent.com/u/472350?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-adams","html_url":"https://github.com/mark-adams","followers_url":"https://api.github.com/users/mark-adams/followers","following_url":"https://api.github.com/users/mark-adams/following{/other_user}","gists_url":"https://api.github.com/users/mark-adams/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-adams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-adams/subscriptions","organizations_url":"https://api.github.com/users/mark-adams/orgs","repos_url":"https://api.github.com/users/mark-adams/repos","events_url":"https://api.github.com/users/mark-adams/events{/privacy}","received_events_url":"https://api.github.com/users/mark-adams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mark-adams/systemd-journal","description":"Ruby bindings for reading/writing to the systemd journal.","fork":true,"url":"https://api.github.com/repos/mark-adams/systemd-journal","forks_url":"https://api.github.com/repos/mark-adams/systemd-journal/forks","keys_url":"https://api.github.com/repos/mark-adams/systemd-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mark-adams/systemd-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mark-adams/systemd-journal/teams","hooks_url":"https://api.github.com/repos/mark-adams/systemd-journal/hooks","issue_events_url":"https://api.github.com/repos/mark-adams/systemd-journal/issues/events{/number}","events_url":"https://api.github.com/repos/mark-adams/systemd-journal/events","assignees_url":"https://api.github.com/repos/mark-adams/systemd-journal/assignees{/user}","branches_url":"https://api.github.com/repos/mark-adams/systemd-journal/branches{/branch}","tags_url":"https://api.github.com/repos/mark-adams/systemd-journal/tags","blobs_url":"https://api.github.com/repos/mark-adams/systemd-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mark-adams/systemd-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mark-adams/systemd-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/mark-adams/systemd-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mark-adams/systemd-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/mark-adams/systemd-journal/languages","stargazers_url":"https://api.github.com/repos/mark-adams/systemd-journal/stargazers","contributors_url":"https://api.github.com/repos/mark-adams/systemd-journal/contributors","subscribers_url":"https://api.github.com/repos/mark-adams/systemd-journal/subscribers","subscription_url":"https://api.github.com/repos/mark-adams/systemd-journal/subscription","commits_url":"https://api.github.com/repos/mark-adams/systemd-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/mark-adams/systemd-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/mark-adams/systemd-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/mark-adams/systemd-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/mark-adams/systemd-journal/contents/{+path}","compare_url":"https://api.github.com/repos/mark-adams/systemd-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mark-adams/systemd-journal/merges","archive_url":"https://api.github.com/repos/mark-adams/systemd-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mark-adams/systemd-journal/downloads","issues_url":"https://api.github.com/repos/mark-adams/systemd-journal/issues{/number}","pulls_url":"https://api.github.com/repos/mark-adams/systemd-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/mark-adams/systemd-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/mark-adams/systemd-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mark-adams/systemd-journal/labels{/name}","releases_url":"https://api.github.com/repos/mark-adams/systemd-journal/releases{/id}","deployments_url":"https://api.github.com/repos/mark-adams/systemd-journal/deployments","created_at":"2016-06-29T15:39:04Z","updated_at":"2016-06-29T15:39:05Z","pushed_at":"2016-06-29T15:40:01Z","git_url":"git://github.com/mark-adams/systemd-journal.git","ssh_url":"git@github.com:mark-adams/systemd-journal.git","clone_url":"https://github.com/mark-adams/systemd-journal.git","svn_url":"https://github.com/mark-adams/systemd-journal","homepage":"http://rubydoc.info/gems/systemd-journal","size":261,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ledbettj:master","ref":"master","sha":"50a364a4bfe2667321c12b8d461cff8df1d62dd0","user":{"login":"ledbettj","id":805358,"avatar_url":"https://avatars.githubusercontent.com/u/805358?v=3","gravatar_id":"","url":"https://api.github.com/users/ledbettj","html_url":"https://github.com/ledbettj","followers_url":"https://api.github.com/users/ledbettj/followers","following_url":"https://api.github.com/users/ledbettj/following{/other_user}","gists_url":"https://api.github.com/users/ledbettj/gists{/gist_id}","starred_url":"https://api.github.com/users/ledbettj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledbettj/subscriptions","organizations_url":"https://api.github.com/users/ledbettj/orgs","repos_url":"https://api.github.com/users/ledbettj/repos","events_url":"https://api.github.com/users/ledbettj/events{/privacy}","received_events_url":"https://api.github.com/users/ledbettj/received_events","type":"User","site_admin":false},"repo":{"id":11623333,"name":"systemd-journal","full_name":"ledbettj/systemd-journal","owner":{"login":"ledbettj","id":805358,"avatar_url":"https://avatars.githubusercontent.com/u/805358?v=3","gravatar_id":"","url":"https://api.github.com/users/ledbettj","html_url":"https://github.com/ledbettj","followers_url":"https://api.github.com/users/ledbettj/followers","following_url":"https://api.github.com/users/ledbettj/following{/other_user}","gists_url":"https://api.github.com/users/ledbettj/gists{/gist_id}","starred_url":"https://api.github.com/users/ledbettj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledbettj/subscriptions","organizations_url":"https://api.github.com/users/ledbettj/orgs","repos_url":"https://api.github.com/users/ledbettj/repos","events_url":"https://api.github.com/users/ledbettj/events{/privacy}","received_events_url":"https://api.github.com/users/ledbettj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ledbettj/systemd-journal","description":"Ruby bindings for reading/writing to the systemd journal.","fork":false,"url":"https://api.github.com/repos/ledbettj/systemd-journal","forks_url":"https://api.github.com/repos/ledbettj/systemd-journal/forks","keys_url":"https://api.github.com/repos/ledbettj/systemd-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ledbettj/systemd-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ledbettj/systemd-journal/teams","hooks_url":"https://api.github.com/repos/ledbettj/systemd-journal/hooks","issue_events_url":"https://api.github.com/repos/ledbettj/systemd-journal/issues/events{/number}","events_url":"https://api.github.com/repos/ledbettj/systemd-journal/events","assignees_url":"https://api.github.com/repos/ledbettj/systemd-journal/assignees{/user}","branches_url":"https://api.github.com/repos/ledbettj/systemd-journal/branches{/branch}","tags_url":"https://api.github.com/repos/ledbettj/systemd-journal/tags","blobs_url":"https://api.github.com/repos/ledbettj/systemd-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ledbettj/systemd-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ledbettj/systemd-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/ledbettj/systemd-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ledbettj/systemd-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/ledbettj/systemd-journal/languages","stargazers_url":"https://api.github.com/repos/ledbettj/systemd-journal/stargazers","contributors_url":"https://api.github.com/repos/ledbettj/systemd-journal/contributors","subscribers_url":"https://api.github.com/repos/ledbettj/systemd-journal/subscribers","subscription_url":"https://api.github.com/repos/ledbettj/systemd-journal/subscription","commits_url":"https://api.github.com/repos/ledbettj/systemd-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/ledbettj/systemd-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/ledbettj/systemd-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/ledbettj/systemd-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/ledbettj/systemd-journal/contents/{+path}","compare_url":"https://api.github.com/repos/ledbettj/systemd-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ledbettj/systemd-journal/merges","archive_url":"https://api.github.com/repos/ledbettj/systemd-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ledbettj/systemd-journal/downloads","issues_url":"https://api.github.com/repos/ledbettj/systemd-journal/issues{/number}","pulls_url":"https://api.github.com/repos/ledbettj/systemd-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/ledbettj/systemd-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/ledbettj/systemd-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ledbettj/systemd-journal/labels{/name}","releases_url":"https://api.github.com/repos/ledbettj/systemd-journal/releases{/id}","deployments_url":"https://api.github.com/repos/ledbettj/systemd-journal/deployments","created_at":"2013-07-24T01:19:09Z","updated_at":"2016-04-26T20:51:36Z","pushed_at":"2016-06-29T15:40:15Z","git_url":"git://github.com/ledbettj/systemd-journal.git","ssh_url":"git@github.com:ledbettj/systemd-journal.git","clone_url":"https://github.com/ledbettj/systemd-journal.git","svn_url":"https://github.com/ledbettj/systemd-journal","homepage":"http://rubydoc.info/gems/systemd-journal","size":261,"stargazers_count":26,"watchers_count":26,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62"},"html":{"href":"https://github.com/ledbettj/systemd-journal/pull/62"},"issue":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/issues/62"},"comments":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/ledbettj/systemd-journal/statuses/d7fbcf2de4946f8d8b764e4bfed9ac379d5ee2d9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mark-adams"}}