{"id":50694588,"url":"https://github.com/christoffer-nylen/backstrace","last_synced_at":"2026-06-09T05:32:56.385Z","repository":{"id":172095091,"uuid":"332921243","full_name":"christoffer-nylen/backstrace","owner":"christoffer-nylen","description":"Searches for PATTERNS in each file opened by an strace:d process.","archived":false,"fork":false,"pushed_at":"2021-04-30T01:48:07.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-27T20:37:07.520Z","etag":null,"topics":["debugging","debugging-tool","dependency-analysis","diagnostic-tool","language-agnostic","process-tracing","reverse-engineering","strace","syscalls","trace","tracer","troubleshooting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christoffer-nylen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-01-26T00:13:04.000Z","updated_at":"2021-11-24T11:43:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"84108166-cf99-4e05-8036-d0c9a1ab0548","html_url":"https://github.com/christoffer-nylen/backstrace","commit_stats":{"total_commits":86,"total_committers":1,"mean_commits":86.0,"dds":0.0,"last_synced_commit":"ccfe1228f5be0088063d45c08c38e580a5241fac"},"previous_names":["christoffer-nylen/backstrace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/christoffer-nylen/backstrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christoffer-nylen%2Fbackstrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christoffer-nylen%2Fbackstrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christoffer-nylen%2Fbackstrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christoffer-nylen%2Fbackstrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christoffer-nylen","download_url":"https://codeload.github.com/christoffer-nylen/backstrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christoffer-nylen%2Fbackstrace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34093774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["debugging","debugging-tool","dependency-analysis","diagnostic-tool","language-agnostic","process-tracing","reverse-engineering","strace","syscalls","trace","tracer","troubleshooting"],"created_at":"2026-06-09T05:32:55.651Z","updated_at":"2026-06-09T05:32:56.375Z","avatar_url":"https://github.com/christoffer-nylen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backstrace (bs)\nSearches for PATTERNS in each file that was opened by a process, by analyzing [strace](https://man7.org/linux/man-pages/man1/strace.1.html) output.\n\nThis can be helpful when searching for some definition or symbol that was thrown in a compile error, traceback or exception message from a faulty program or failing build system.\n\nInternally, [pystrace](https://github.com/dirtyharrycallahan/pystrace) is used to parse the strace log, and [grep](https://man7.org/linux/man-pages/man1/grep.1.html) is used for searching and presenting the lines that match a pattern.\n\n## Example\n\nBuild failure:\n```\n$ make\nsrc/my_ctrl/my_ctrl.cpp:85: error: ´struct CI::CI_Dark::CI_Dark_Ctrl::Foo_Type´ has no member named `Dark_Mode_Setting`\n```\n\nUse `strace` together with `bs` to search referenced files for patterns that are related to the failure:\n\n```\n$ strace -ttt -f -o strace.log make\nsrc/my_ctrl/my_ctrl.cpp:85: error: ´struct CI::CI_Dark::CI_Dark_Ctrl::Foo_Type´ has no member named `Dark_Mode_Setting`\n\n$ bs Foo_Type strace.log\n../../../types/ci/ci_dark/my_ctrl_types.hpp:58:struct Foo_Type {\nsrc/my_ctrl/my_ctrl.cpp:46: *dark_ctrl, CI::CI_Dark::CI_Dark_Ctrl::Foo_Type *ctrls);\nsrc/my_ctrl/my_ctrl.cpp:43:           *dark_ctrl, CI::CI_Dark::CI_Dark_Ctrl::Foo_Type\nsrc/my_ctrl/my_ctrl.cpp:85:                          Dark_Mode_Setting\n```\n\n## Limitations\n\n* `strace` must be executed with the `-ttt` format option, so the results can be presented in a timely order.\n* PATTERNS are interpreted as basic regular expressions (the default option when using `grep`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristoffer-nylen%2Fbackstrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristoffer-nylen%2Fbackstrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristoffer-nylen%2Fbackstrace/lists"}