Skip to content

ANR in BroadcastReceiverSystemInfoProvider #3480

Description

@ansman

Stack trace

#01  pc 0x0000000000057538  /apex/com.android.runtime/lib64/bionic/libc.so (je_arena_tcache_fill_small+72)
  #02  pc 0x0000000000074514  /apex/com.android.runtime/lib64/bionic/libc.so (je_tcache_alloc_small_hard+36)
  #03  pc 0x000000000006ae34  /apex/com.android.runtime/lib64/bionic/libc.so (je_malloc+852)
  #04  pc 0x000000000005180c  /apex/com.android.runtime/lib64/bionic/libc.so (malloc+64)
  #05  pc 0x000000000008793c  /data/app/~~L3Kkdw40aqToqBNPCLeDgQ==/com.openai.chatgpt-HRdBXByM5vfC7gyKPqcDLw==/split_config.arm64_v8a.apk
  #06  pc 0x0000000000034710  /data/app/~~L3Kkdw40aqToqBNPCLeDgQ==/com.openai.chatgpt-HRdBXByM5vfC7gyKPqcDLw==/split_config.arm64_v8a.apk
  at com.pairip.VMRunner.executeVM (Native method)
  at com.pairip.VMRunner.invoke (VMRunner.java:69)
  at com.datadog.android.core.internal.system.BroadcastReceiverSystemInfoProvider.onReceive (BroadcastReceiverSystemInfoProvider.kt:23)
  at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0 (LoadedApk.java:1943)
  at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$gDuJqgxY6Zb-ifyeubKeivTLAwk (unavailable)
  at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run (unavailable:2)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:257)
  at android.os.Looper.loop (Looper.java:368)
  at android.app.ActivityThread.main (ActivityThread.java:8839)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:572)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)

Reproduction steps

We cannot repro this locally, but we see this on CI

Volume

N/A, but it's our top ANR

Affected SDK versions

3.10.0

Latest working SDK version

n/a

Does the crash manifest in the latest SDK version?

Yes

Kotlin / Java version

2.3.21

Gradle / AGP version

9.1.0

Other dependencies versions

No response

Device Information

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashSDK induced crash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions