Bug 262104

Summary: [WPE][GTK] Symbolize `StackTrace` using `libbacktrace`
Product: WebKit Reporter: Vitaly Dyackhov <vitaly>
Component: WPE WebKitAssignee: 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

Description Vitaly Dyackhov 2023-09-26 01:54:10 PDT
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
Comment 1 Vitaly Dyackhov 2023-09-26 02:02:42 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18213
Comment 2 EWS 2023-09-28 06:35:17 PDT
Committed 268579@main (e9b9e04d5163): <https://commits.webkit.org/268579@main>

Reviewed commits have been landed. Closing PR #18213 and removing active labels.
Comment 3 Michael Catanzaro 2023-11-20 13:30:46 PST
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.