Skip to content

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Aug 16, 2017

This commit adds a new feature, "gimli", which enables symbolicating addresses into file/line/function information using the gimli-rs/addr2line crate. Unwinding is still performed with libunwind.

This is currently Linux only. We could enable this for macOS as well if we had a way to find the dSYM bundle for a given shared library or executable file. That involves looking for the LC_UUID load command in the mach-o file, and then using spotlight APIs to find the corresponding bundle containing the DWARF debug infos.

At least on Linux, this is one less C dependency. RIIR!!


Note: we are waiting on one more bug fix before publishing a new release of addr2line to crates.io, so the Cargo.toml file has local path dependencies temporarily. Once we publish a new release, I'll fix that. I figure review can commence, nonetheless, as I don't expect any APIs to change.

r? @alexcrichton

cc @philipc @jonhoo @tromey

@fitzgen fitzgen force-pushed the gimli-to-symbolize branch from 22ea8d5 to fa91aa6 Compare August 16, 2017 21:02
@alexcrichton
Copy link
Member

Looks great to me, thanks!

I'd be down for merging with a green CI

@fitzgen fitzgen force-pushed the gimli-to-symbolize branch 2 times, most recently from 9149d99 to 322fddc Compare August 22, 2017 00:09
This commit adds a new feature, "gimli", which enables symbolicating addresses
into file/line/function information using the `gimli-rs/addr2line` crate.

This is currently Linux only. We could enable this for macOS as well if we had a
way to find the dSYM bundle for a given shared library or executable file. That
involves looking for the LC_UUID load command in the mach-o file, and then using
spotlight APIs to find the corresponding bundle containing the DWARF debug
infos.

At least on Linux, this is one less C dependency. RIIR!!
@fitzgen fitzgen force-pushed the gimli-to-symbolize branch from 322fddc to 464a2a1 Compare August 22, 2017 00:15
@fitzgen
Copy link
Member Author

fitzgen commented Aug 22, 2017

@alexcrichton ok, just updated the commit. This should be ready to merge, assuming the CI comes back green, which I expect it to.

@alexcrichton alexcrichton merged commit 890278b into rust-lang:master Aug 22, 2017
@alexcrichton
Copy link
Member

Nice!

@fitzgen fitzgen deleted the gimli-to-symbolize branch August 22, 2017 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants