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

Stack Trace Rules bypass recusion check #73738

Open
lhunath opened this issue Jul 3, 2024 · 2 comments
Open

Stack Trace Rules bypass recusion check #73738

lhunath opened this issue Jul 3, 2024 · 2 comments

Comments

@lhunath
Copy link

lhunath commented Jul 3, 2024

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Specify a stack trace rule for a frame which may appear in a recursion
  2. Produce an error where the frame participates in a stack recursion
  3. Observe the grouping of the error event's stack

eg.

stack.package:**/UIKitCore stack.function:[-+]\[* +group

Expected Result

  • The first frame is un-ignored per the stack trace rule.
  • The recursing frames are ignored on account of recursion.
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (ignored due to recursion)
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (ignored due to recursion)
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]

Actual Result

  • Every frame that matches the rule, including the recusing frames, are un-ignored.
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]

It doesn't seem to be desirable to make the default behaviour be the one that is least useful, this makes the group sensitive to the # of recursions which is not the default Sentry stack grouping behaviour.

Furthermore, there is no simple way to restore the recursive check. One might be forced to explicitly write out sibling rules for each standard rule just to restore the default recursion behaviour. A recursion:yes/no matcher might be a useful addition if flipping the default behaviour by itself is inadequate.

Product Area

Issues

Link

https://hubstaff.sentry.io/issues/5565708392/events/bed216c2a2974d35b147bddd99587b01/

DSN

https://[email protected]/5277412

Version

8.25.0

@getsantry
Copy link
Contributor

getsantry bot commented Jul 3, 2024

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

@scttcper
Copy link
Member

scttcper commented Jul 3, 2024

Thanks for reporting i've added this to our grouping backlog. cc @armenzg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants