{"id":19624433,"url":"https://github.com/sav/libmallocjack","last_synced_at":"2026-05-15T10:33:55.922Z","repository":{"id":219073560,"uuid":"155033654","full_name":"sav/libmallocjack","owner":"sav","description":"This library hooks malloc to provide leak information, allocation per function and also allows you to limit heap usage. You can also add custom traces and filters.","archived":false,"fork":false,"pushed_at":"2019-01-11T20:07:25.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-09T11:58:18.359Z","etag":null,"topics":["allocation","debug","filter","hook","libc","malloc","memory-leak","profiling","trace"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-28T04:01:37.000Z","updated_at":"2024-01-25T08:16:49.000Z","dependencies_parsed_at":"2024-01-25T11:12:33.494Z","dependency_job_id":null,"html_url":"https://github.com/sav/libmallocjack","commit_stats":null,"previous_names":["sav/libmallocjack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sav%2Flibmallocjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sav%2Flibmallocjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sav%2Flibmallocjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sav%2Flibmallocjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sav","download_url":"https://codeload.github.com/sav/libmallocjack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240923523,"owners_count":19879322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allocation","debug","filter","hook","libc","malloc","memory-leak","profiling","trace"],"created_at":"2024-11-11T11:38:03.422Z","updated_at":"2026-05-15T10:33:50.880Z","avatar_url":"https://github.com/sav.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Libmallocjack\n=============\n\nThis is a work in progress, it was barely tested only on glibc-2.27 and\nstill lacks thread-safeness.\n\nCompilation\n-----------\n\nTo compile the library run `make`. To run the tests `make run`. Remember to\ncompile the code you want to debug with `-rdynamic` and `-funwind-tables`,\nbesides naturally your basic debugging options. When not compiled with the\nlast two compilation flags though you won't get string symbols for functions.\n\nBuilt-in modules\n----------------\n\n### memstat\nPrint overall process and function statistics.\n\n### memlimit\nLimit memory usage by process and function.\n\nTodo\n----\n\n* [#a] enable thread-safeness everywhere\n* [#a] use mmap in local_alloc and support free\n* [#b] port memstat to gnu malloc info api\n* [#b] detect huge page, segregation and brk/mmap\n* [#b] allow dlopen() specific targets\n* [#c] check malloc_usable_size() consistency\n* [#c] add strace-like debugging primitives\n* [#c] add ltrace-like debugging primitives\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsav%2Flibmallocjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsav%2Flibmallocjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsav%2Flibmallocjack/lists"}