backtrace-rs
backtrace-rs copied to clipboard
Backtraces in Rust
This is a continuation of the work by @Jardynq that makes it possible to trace threads other than the current one. This can be used to profile Windows applications. https://github.com/tikv/pprof-rs/issues/9#issuecomment-1114222675...
In our project at work we've been seeing issues with backtrace's not capturing the full context of the application state when we panic, where as the builtin backtrace printer for...
Currently iteration over all dynamic objects happens once in libbacktrace/gimli (gimli for sure, libbacktrace is a best approximation). This means that if a backtrace is generated and then afterwards a...
Hi! I've noticed the current backtrace logic in std isn't working properly for the fortanix sgx target. More specifically, the instruction pointer addresses aren't getting relativized from absolute addresses (e.g....
`backtrace-rs` uses [`StackWalkEx`](https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-stackwalkex) on Windows, which calls [`SymLoadModuleEx`](https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-symloadmoduleex) in turn. The symbol modules are never unloaded afterward, keeping the PDB files open until the process exits. Normally this wouldn't be...
There's a mention of debuginfod in the code from #427 (cc @philipc). I suggest we also add support for looking up in [debuginfod](https://sourceware.org/elfutils/Debuginfod.html). If `DEBUGINFOD_URLS` is set, the the debug...
When building things like built-in memory profilers and similar, it's quite useful to be able to deduplicate captured callstacks without having to resolve them - since resolving stack traces can...
Right now `gimli` is always compiled in it looks like. However, since it only targets DWARF, I think it could be an optional feature on windows. On our windows builds...
**EDIT:** For a smaller example, see a commit below. I have added a small example that you can run. Hi thanks for this lib! [Yesterday](https://github.com/rust-lang/backtrace-rs/issues/442)'s solution work pretty well, but...