{"id":17360668,"url":"https://github.com/certik/stacktrace","last_synced_at":"2025-04-15T00:30:53.688Z","repository":{"id":1496945,"uuid":"1749481","full_name":"certik/stacktrace","owner":"certik","description":"Generate nice C/C++ stacktrace","archived":false,"fork":false,"pushed_at":"2011-05-15T00:07:31.000Z","size":120,"stargazers_count":34,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T12:21:19.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/certik.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2011-05-15T00:02:46.000Z","updated_at":"2024-12-08T13:08:15.000Z","dependencies_parsed_at":"2022-08-16T13:25:20.811Z","dependency_job_id":null,"html_url":"https://github.com/certik/stacktrace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fstacktrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fstacktrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fstacktrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fstacktrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/certik","download_url":"https://codeload.github.com/certik/stacktrace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248983994,"owners_count":21193673,"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":[],"created_at":"2024-10-15T19:27:20.984Z","updated_at":"2025-04-15T00:30:53.671Z","avatar_url":"https://github.com/certik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stacktrace\n==========\n\nThis library allows you to print the stacktrace just like Python, with\nfilenames, line numbers, function names and the line itself.\n\nIt works for shared libraries too.\n\nLicense\n-------\n\nStacktrace is BSD licensed. See the LICENSE file for more details.\n\nExample of a stacktrace\n-----------------------\n\nThis example uses a shared library (and you can see that everything works)::\n\n    Traceback (most recent call last):\n      File \"/build/buildd/eglibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S\", line 113, in _start\n      File \"/build/buildd/eglibc-2.10.1/csu/libc-start.c\", line 220, in __libc_start_main\n      File \"/home/ondrej/repos/hermes2d/benchmarks/bessel/main.cpp\", line 140, in main\n            rs.assemble();\n      File \"/home/ondrej/repos/hermes2d/src/refsystem.cpp\", line 178, in RefSystem::assemble(bool)\n          if (this-\u003elinear == true) LinSystem::assemble(rhsonly);\n      File \"/home/ondrej/repos/hermes2d/src/linsystem.cpp\", line 618, in LinSystem::assemble(bool)\n                      bi = eval_form(jfv, NULL, fu, fv, \u0026refmap[n], \u0026refmap[m]) * an-\u003ecoef[j] * am-\u003ecoef[i];\n      File \"/home/ondrej/repos/hermes2d/src/linsystem.cpp\", line 837, in LinSystem::eval_form(WeakForm::JacFormVol*, Solution**, PrecalcShapeset*, PrecalcShapeset*, RefMap*, RefMap*)\n          show_backtrace();\n      File \"/home/ondrej/repos/cpp_stacktrace/backtrace-symbols.c\", line 420, in show_backtrace()\n          size = backtrace (array, 10);\n\nPrerequisites\n-------------\n\nThe only requirement is the ``binutils`` package. On Ubuntu, do::\n\n    sudo apt-get install binutils-dev\n\nStacktrace is written in C++ and besides binutils doesn't have any other\ndependencies. C wrapper is included for usage in programs written in C.\n\nUsage\n-----\n\nInclude ``stacktrace.cpp`` and ``stacktrace.hpp`` in your projects, generate\n``Teuchos_ConfigDefs.hpp`` (included from ``stacktrace.hpp``) using your\nconfigure scripts (e.g. cmake, autotools, ...), or just leave everything\nenabled in there.\n\nYou can run the example ``compile`` script to compile tests. Consult it for\nexamples how to use stacktrace in C programs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fstacktrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcertik%2Fstacktrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fstacktrace/lists"}