{"action":"created","comment":{"url":"https://api.github.com/repos/radare/radare2/pulls/comments/78439770","id":78439770,"diff_hunk":"@@ -751,16 +905,75 @@ static void print_current_heap_64(RCore *core, RHeap_MallocState64 *main_arena,\n \t}\n \n \tPRINT_YA (\"\\n  Top chunk @ \");\n-\tPRINTF_BA (\"0x%\"PFMT64x, main_arena->top);\n-\tPRINT_GA (\" - [brk_start: \");\n-\tPRINTF_BA (\"0x%\"PFMT64x, brk_start);\n-\tPRINT_GA (\", brk_end: \");\n-\tPRINTF_BA (\"0x%\"PFMT64x, brk_end);\n+\tPRINTF_BA (\"0x%\"PFMT64x, ms->top);\n+\tPRINT_GA (\" - [mmap_start: \");\n+\tPRINTF_BA (\"0x%\"PFMT64x, mmap_start);\n+\tPRINT_GA (\", mmap_end: \");\n+\tr_core_read_at (core, ms->top, (ut8*)cnk, sizeof (RHeapChunk64));\n+\tPRINTF_BA (\"0x%\"PFMT64x, mmap_end + ((cnk->size >> 3) << 3));\n \tPRINT_GA (\"]\\n\");\n \tr_cons_printf (\"\\n\");\n \tfree (cnk);\n+\tfree (ms);\n }\n \n+void print_malloc_states64( RCore *core, ut64 m_arena, RHeap_MallocState64 *main_arena) {\n+\tRHeap_MallocState64 *ta = R_NEW0 (RHeap_MallocState64);\n+\tPRINT_YA (\"main_arena @ \");\n+\tPRINTF_BA (\"0x%\"PFMT64x\"\\n\", m_arena);\t\n+\n+\tif (main_arena->next == m_arena) return;\n+\telse {\n+\t\tta->next = main_arena->next;\n+\t\twhile (ta->next != UT64_MAX && ta->next != m_arena) {\n+\t\t\tPRINT_YA (\"thread arena @ \");\n+\t\t\tPRINTF_BA (\"0x%\"PFMT64x\"\\n\", ta->next);\n+\t\t\tr_core_read_at (core, ta->next, (ut8 *)ta, sizeof (RHeap_MallocState64));\n+\t\t}\n+\t}\n+\tfree(ta);\n+\treturn;","path":"libr/core/linux_heap_glibc_64.c","position":314,"original_position":314,"commit_id":"5e20b0c49061bc69d69dda7bcbe96c43fdab0aac","original_commit_id":"5e20b0c49061bc69d69dda7bcbe96c43fdab0aac","user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"body":"no need for that","created_at":"2016-09-12T19:38:07Z","updated_at":"2016-09-12T19:38:07Z","html_url":"https://github.com/radare/radare2/pull/5741#discussion_r78439770","pull_request_url":"https://api.github.com/repos/radare/radare2/pulls/5741","_links":{"self":{"href":"https://api.github.com/repos/radare/radare2/pulls/comments/78439770"},"html":{"href":"https://github.com/radare/radare2/pull/5741#discussion_r78439770"},"pull_request":{"href":"https://api.github.com/repos/radare/radare2/pulls/5741"}}},"pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/5741","id":84929953,"html_url":"https://github.com/radare/radare2/pull/5741","diff_url":"https://github.com/radare/radare2/pull/5741.diff","patch_url":"https://github.com/radare/radare2/pull/5741.patch","issue_url":"https://api.github.com/repos/radare/radare2/issues/5741","number":5741,"state":"open","locked":false,"title":"child thread heap analysis support","user":{"login":"n4x0r","id":14844304,"avatar_url":"https://avatars.githubusercontent.com/u/14844304?v=3","gravatar_id":"","url":"https://api.github.com/users/n4x0r","html_url":"https://github.com/n4x0r","followers_url":"https://api.github.com/users/n4x0r/followers","following_url":"https://api.github.com/users/n4x0r/following{/other_user}","gists_url":"https://api.github.com/users/n4x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/n4x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n4x0r/subscriptions","organizations_url":"https://api.github.com/users/n4x0r/orgs","repos_url":"https://api.github.com/users/n4x0r/repos","events_url":"https://api.github.com/users/n4x0r/events{/privacy}","received_events_url":"https://api.github.com/users/n4x0r/received_events","type":"User","site_admin":false},"body":"child thread analysis support implemented for glibc malloc.","created_at":"2016-09-12T19:30:29Z","updated_at":"2016-09-12T19:38:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f82cb22ba999f4c6c2458e51d17cb2070690a570","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/radare/radare2/pulls/5741/commits","review_comments_url":"https://api.github.com/repos/radare/radare2/pulls/5741/comments","review_comment_url":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/radare/radare2/issues/5741/comments","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/5e20b0c49061bc69d69dda7bcbe96c43fdab0aac","head":{"label":"n4x0r:glibc_dmh","ref":"glibc_dmh","sha":"5e20b0c49061bc69d69dda7bcbe96c43fdab0aac","user":{"login":"n4x0r","id":14844304,"avatar_url":"https://avatars.githubusercontent.com/u/14844304?v=3","gravatar_id":"","url":"https://api.github.com/users/n4x0r","html_url":"https://github.com/n4x0r","followers_url":"https://api.github.com/users/n4x0r/followers","following_url":"https://api.github.com/users/n4x0r/following{/other_user}","gists_url":"https://api.github.com/users/n4x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/n4x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n4x0r/subscriptions","organizations_url":"https://api.github.com/users/n4x0r/orgs","repos_url":"https://api.github.com/users/n4x0r/repos","events_url":"https://api.github.com/users/n4x0r/events{/privacy}","received_events_url":"https://api.github.com/users/n4x0r/received_events","type":"User","site_admin":false},"repo":{"id":50539973,"name":"radare2","full_name":"n4x0r/radare2","owner":{"login":"n4x0r","id":14844304,"avatar_url":"https://avatars.githubusercontent.com/u/14844304?v=3","gravatar_id":"","url":"https://api.github.com/users/n4x0r","html_url":"https://github.com/n4x0r","followers_url":"https://api.github.com/users/n4x0r/followers","following_url":"https://api.github.com/users/n4x0r/following{/other_user}","gists_url":"https://api.github.com/users/n4x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/n4x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n4x0r/subscriptions","organizations_url":"https://api.github.com/users/n4x0r/orgs","repos_url":"https://api.github.com/users/n4x0r/repos","events_url":"https://api.github.com/users/n4x0r/events{/privacy}","received_events_url":"https://api.github.com/users/n4x0r/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/n4x0r/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":true,"url":"https://api.github.com/repos/n4x0r/radare2","forks_url":"https://api.github.com/repos/n4x0r/radare2/forks","keys_url":"https://api.github.com/repos/n4x0r/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/n4x0r/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/n4x0r/radare2/teams","hooks_url":"https://api.github.com/repos/n4x0r/radare2/hooks","issue_events_url":"https://api.github.com/repos/n4x0r/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/n4x0r/radare2/events","assignees_url":"https://api.github.com/repos/n4x0r/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/n4x0r/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/n4x0r/radare2/tags","blobs_url":"https://api.github.com/repos/n4x0r/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/n4x0r/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/n4x0r/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/n4x0r/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/n4x0r/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/n4x0r/radare2/languages","stargazers_url":"https://api.github.com/repos/n4x0r/radare2/stargazers","contributors_url":"https://api.github.com/repos/n4x0r/radare2/contributors","subscribers_url":"https://api.github.com/repos/n4x0r/radare2/subscribers","subscription_url":"https://api.github.com/repos/n4x0r/radare2/subscription","commits_url":"https://api.github.com/repos/n4x0r/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/n4x0r/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/n4x0r/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/n4x0r/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/n4x0r/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/n4x0r/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/n4x0r/radare2/merges","archive_url":"https://api.github.com/repos/n4x0r/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/n4x0r/radare2/downloads","issues_url":"https://api.github.com/repos/n4x0r/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/n4x0r/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/n4x0r/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/n4x0r/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/n4x0r/radare2/labels{/name}","releases_url":"https://api.github.com/repos/n4x0r/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/n4x0r/radare2/deployments","created_at":"2016-01-27T21:45:04Z","updated_at":"2016-01-27T21:45:19Z","pushed_at":"2016-09-12T19:28:54Z","git_url":"git://github.com/n4x0r/radare2.git","ssh_url":"git@github.com:n4x0r/radare2.git","clone_url":"https://github.com/n4x0r/radare2.git","svn_url":"https://github.com/n4x0r/radare2","homepage":"http://www.radare.org/","size":61383,"stargazers_count":0,"watchers_count":0,"language":"C","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":"radare:master","ref":"master","sha":"0f168ff73b83846dcc2ef2328f8b7686e585395c","user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"repo":{"id":4869294,"name":"radare2","full_name":"radare/radare2","owner":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/radare/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":false,"url":"https://api.github.com/repos/radare/radare2","forks_url":"https://api.github.com/repos/radare/radare2/forks","keys_url":"https://api.github.com/repos/radare/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radare/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radare/radare2/teams","hooks_url":"https://api.github.com/repos/radare/radare2/hooks","issue_events_url":"https://api.github.com/repos/radare/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/radare/radare2/events","assignees_url":"https://api.github.com/repos/radare/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/radare/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/radare/radare2/tags","blobs_url":"https://api.github.com/repos/radare/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radare/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radare/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/radare/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/radare/radare2/languages","stargazers_url":"https://api.github.com/repos/radare/radare2/stargazers","contributors_url":"https://api.github.com/repos/radare/radare2/contributors","subscribers_url":"https://api.github.com/repos/radare/radare2/subscribers","subscription_url":"https://api.github.com/repos/radare/radare2/subscription","commits_url":"https://api.github.com/repos/radare/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/radare/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/radare/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/radare/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/radare/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/radare/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radare/radare2/merges","archive_url":"https://api.github.com/repos/radare/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radare/radare2/downloads","issues_url":"https://api.github.com/repos/radare/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/radare/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/radare/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/radare/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radare/radare2/labels{/name}","releases_url":"https://api.github.com/repos/radare/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/radare/radare2/deployments","created_at":"2012-07-03T07:42:26Z","updated_at":"2016-09-12T19:28:00Z","pushed_at":"2016-09-12T19:30:30Z","git_url":"git://github.com/radare/radare2.git","ssh_url":"git@github.com:radare/radare2.git","clone_url":"https://github.com/radare/radare2.git","svn_url":"https://github.com/radare/radare2","homepage":"http://www.radare.org/","size":80259,"stargazers_count":3217,"watchers_count":3217,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":726,"mirror_url":null,"open_issues_count":810,"forks":726,"open_issues":810,"watchers":3217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/radare/radare2/pulls/5741"},"html":{"href":"https://github.com/radare/radare2/pull/5741"},"issue":{"href":"https://api.github.com/repos/radare/radare2/issues/5741"},"comments":{"href":"https://api.github.com/repos/radare/radare2/issues/5741/comments"},"review_comments":{"href":"https://api.github.com/repos/radare/radare2/pulls/5741/comments"},"review_comment":{"href":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/radare/radare2/pulls/5741/commits"},"statuses":{"href":"https://api.github.com/repos/radare/radare2/statuses/5e20b0c49061bc69d69dda7bcbe96c43fdab0aac"}}}}
{"actor":{"display_login":"radare"}}