Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not skip split functions #441

Merged
merged 2 commits into from
Dec 3, 2021
Merged

fix: Do not skip split functions #441

merged 2 commits into from
Dec 3, 2021

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Oct 19, 2021

Previously, split top level functions were just skipped as they were causing trouble
further down the road. With the fix to paper over broken WASM ranges which also sorts all
the ranges, these problems go away, and what remains are possible issues when actually
performing lookups using built SymCaches.

The new SymCache format which is fundamentally based on instruction addrs instead of function
start/size should further improve on this.

This should fix https://getsentry.atlassian.net/browse/ISSUE-1291 and I verified this with the issue/debug file mentioned in that customer issue. However I would still hold off on this until we have the new symcache format, to avoid potential regressions here.

This has been observed by multiple customers, using emscripten WASM files.
These files include ranges that are broken in multiple ways, especially ranges going
backwards were failing processing previously.
Previously, split top level functions were just skipped as they were causing trouble
further down the road. With the fix to paper over broken WASM ranges which also sorts all
the ranges, these problems go away, and what remains are possible issues when actually
performing lookups using built SymCaches.

The new SymCache format which is fundamentally based on instruction addrs instead of function
start/size should further improve on this.
@Swatinem Swatinem changed the title WIP: fix: Do not skip split functions fix: Do not skip split functions Nov 25, 2021
@Swatinem Swatinem marked this pull request as ready for review December 1, 2021 16:39
@Swatinem Swatinem requested a review from a team December 1, 2021 16:39
@loewenheim loewenheim merged commit 5711a60 into master Dec 3, 2021
@loewenheim loewenheim deleted the fix/dwarf-split-fns branch December 3, 2021 13:36
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.

None yet

2 participants