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: Completely skip over hidden sequence points #769

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Mar 1, 2023

It is a bit unclear how to really treat these hidden sequence points.
However just setting the line to 0 means we do find a source location (with line 0) on lookup, and then later on we apply the wrong source context lines.

By ignoring these, we do get the correct source line (and thus source context) for the linked customer issue.

If just skipping these is really the way we want to go:

fixes #768
fixes https://github.com/getsentry/team-stacktrace-private/issues/28

It is a bit unclear how to really treat these, however just
setting the line to `0` means we correctly symbolicate,
but then later on we apply the wrong source context lines.

By ignoring these, we do get the correct source line (and thus source context)
for a specific customer issue.
@Swatinem Swatinem requested a review from a team March 1, 2023 15:54
@codecov
Copy link

codecov bot commented Mar 1, 2023

Codecov Report

Merging #769 (cef5e15) into master (1b4adbd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head cef5e15 differs from pull request most recent head 7d902d0. Consider uploading reports for the commit 7d902d0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #769   +/-   ##
=======================================
  Coverage   74.67%   74.67%           
=======================================
  Files          71       71           
  Lines       15400    15401    +1     
=======================================
+ Hits        11500    11501    +1     
  Misses       3900     3900           

Copy link
Contributor

@kamilogorek kamilogorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That let seems unnecessary :p #nit

symbolic-ppdb/src/cache/writer.rs Outdated Show resolved Hide resolved
symbolic-ppdb/src/cache/writer.rs Outdated Show resolved Hide resolved
@loewenheim
Copy link
Contributor

As you point out in the linked issue, none of us can tell what these are supposed to be for. I think skipping them entirely is reasonable.

@Swatinem Swatinem enabled auto-merge (squash) March 1, 2023 16:41
@Swatinem Swatinem merged commit 68543cf into master Mar 1, 2023
@Swatinem Swatinem deleted the fix/hidden-seqpoints branch March 1, 2023 16:47
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.

How to deal with HiddenSequencePoints in PortablePDB
3 participants