Bug 262104
| Summary: | [WPE][GTK] Symbolize `StackTrace` using `libbacktrace` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Vitaly Dyackhov <vitaly> |
| Component: | WPE WebKit | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=265813 | ||
Vitaly Dyackhov
Since we enable `-fvisibility=hidden` and `-fvisibility-hidden-inlines`, `backtrace()` cannot resolver pointer address to function names.
We can use `libbacktrace`[1] to symbolize addresses and generate meaningful backtraces.
[1] https://github.com/ianlancetaylor/libbacktrace
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Vitaly Dyackhov
Pull request: https://github.com/WebKit/WebKit/pull/18213
EWS
Committed 268579@main (e9b9e04d5163): <https://commits.webkit.org/268579@main>
Reviewed commits have been landed. Closing PR #18213 and removing active labels.
Michael Catanzaro
So, I don't think libbacktrace actually installs a pkg-config file, so I'm thinking the `pkg_check_modules()` call here is guaranteed to fail. Am I wrong? I think it should be removed.
I also notice this library has never released before ever. I am having second thoughts about depending on it by default. Maybe we should turn this OFF by default. I'm wondering if Ian has any plans to ever release it.