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

hprof: heap dump "2023-04-13_19-57-28_643.hprof" native crash #2501

Closed
woerte197 opened this issue Apr 13, 2023 · 1 comment
Closed

hprof: heap dump "2023-04-13_19-57-28_643.hprof" native crash #2501

woerte197 opened this issue Apr 13, 2023 · 1 comment

Comments

@woerte197
Copy link

Description

ABI: arm
time: 2023-04-13 19:39:55
pid: 22241, tid: 22299, name: LeakCanary-Heap >>> <<<
signal: 11 (SIGSEGV), code: 2 (SEGV_ACCERR) fault addr: 0x749ee000
si_errno:0, si_errnoMsg:Success, sending pid:0, sending uid:0
r0: 0x965600e8 r1: 0x749cf304 r2: 0x0008acc0 r3: 0x00000000
r4: 0x8a2ef13c r5: 0x74a59fc3 r6: 0x749edfff r7: 0x74a59fc4
r8: 0xb6cb3e40 r9: 0x965600e8 r10: 0xb404b4e8 fp: 0x00000001
ip: 0xb404b4e8 sp: 0x9655fe90 lr: 0x8a2d0008 pc: 0xb3dd3bd6
cpsr: 0x80070030
#00 pc 001cfbd6 /system/lib/libart.so (_ZN3art5hprof20EndianOutputBuffered12HandleU1ListEPKhj+33) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#1 pc 001d2831 /system/lib/libart.so (_ZN3art5hprof5Hprof13DumpHeapArrayEPNS_6mirror5ArrayEPNS2_5ClassE+1240) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#2 pc 001d2e1b /system/lib/libart.so (_ZN3art5hprof5Hprof19VisitObjectCallbackEPNS_6mirror6ObjectEPv+530) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#3 pc 00187b3b /system/lib/libart.so (ZN3art2gc10accounting11SpaceBitmapILj8EE4WalkEPFvPNS_6mirror6ObjectEPvES7+86) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#4 pc 001821f7 /system/lib/libart.so (ZN3art2gc10accounting10HeapBitmap4WalkEPFvPNS_6mirror6ObjectEPvES6+26) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#5 pc 001a6f93 /system/lib/libart.so (ZN3art2gc4Heap20VisitObjectsInternalEPFvPNS_6mirror6ObjectEPvES5+170) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#6 pc 001d3617 /system/lib/libart.so (_ZN3art5hprof5Hprof10DumpToFileEjj+1910) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#7 pc 001d4705 /system/lib/libart.so (_ZN3art5hprof8DumpHeapEPKcib+3568) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#8 pc 002b72b7 /system/lib/libart.so (_ZN3artL21VMDebug_dumpHprofDataEP7_JNIEnvP7_jclassP8_jstringP8_jobject+174) [armeabi-v7a::7d5172dbf7c131b20157658850cea29b]
#9 pc 025cd5b5 /system/framework/arm/boot.oat (oatexec+2160053) [armeabi::6a3405137d8036189ee7235688990a31]

Steps to Reproduce

[Provide a sample project, a .hprof file or a failing test]

  1. I hook libart.so _ZN3artL28VMRuntime_newNonMovableArrayEP7_JNIEnvP8_jobjectP7_jclassi ZN3artL19VMRuntime_addressOfEP7_JNIEnvP8_jobjectS3. _ZN3art3JNI19DeleteWeakGlobalRefEP7_JNIEnvP8_jobject
  2. hprof: heap dump 2023-04-13_19-39-50_073.hprof crash

Expected behavior: [What you expect to happen]

Version Information

  • LeakCanary version: leakcanary-android:2.7
  • Android OS version: 6.0.1
  • Gradle version: 7.1.2

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@pyricau
Copy link
Member

pyricau commented May 4, 2023

We're using the standard Android heap dumping API. Not sure why it's crashing for you but that shouldn't have anything to do with LeakCanary. Also unclear what you meant by "I hook libart.so "

@pyricau pyricau closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants