Skip to content

Sentry can't catch stack/buffer overflow problem? #2988

Closed

Description

@wingorithm

Gradle Version

8.3

AGP Version

8.1.2

Code Minifier/Optimizer

R8

Version

3.12.0

Sentry SDK Version

6.30.0

Steps to Reproduce

first of all i'm not sure if the Sentry SDK Version either 6.30.0 or not when using 3.12.0 (AGP). (can't find how to check it)

Case : i'm doing benchmarking for sentry self-hosted with android studio, one of my test is "stack overflow" error. it basically calling recursion function with no end like buffer overflow. But when the app stopped and forced closed, sentry didn't catch any error report?

to reproduce:

  1. just simply call endless recursion function

stackoverflow()
...
...
private fun stackOverflow() {
stackOverflow()
}

Expected Result

Sentry report the error

Actual Result

no report

Activity

  1. romtsn commented on Oct 16, 2023

    @romtsn
    Contributor

    Hi @wingorithm, thanks for the report, we'll have to look into this and come back to you wrt further steps

  2. wingorithm commented on Oct 17, 2023

    @wingorithm
    Author

    ok, waiting for good news then...

  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Oct 17, 2023
  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Oct 17, 2023
  5. romtsn commented on Oct 23, 2023

    @romtsn
    Contributor

    hi @wingorithm it is indeed not working, I've just tested it - the reason is payload size, because there are too many repeating frames and it's exceeding the limits. We should probably cap the max. number of repeating frames for such cases. I will check with team internally and provide a fix most likely, thanks for reporting the issue!

  6. assigned and unassigned on Oct 23, 2023
  7. ghost added
    BugIssue type
    on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions