Heap corruption detected by tmalloc_large (Galaxy S3 ICS 4.0)


#1

Hi everybody,

I developped an application with ionic. All works fine on my Android Nexus 6 with Lolipop. But, a friend has a problem with his Galaxy S3 on Android 4.0. Here’s the stack trace :

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/m0xx/m0:4.3/JSS15J/I9300XXUGNH4:user/release-keys'
Revision: '12'
pid: 3420, tid: 3432, name: WebViewCoreThre >>> com.mib_agence.mibclean <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
Abort message: '@@@ ABORTING: heap corruption detected by tmalloc_large'
r0 00000027 r1 00000000 r2 00000008 r3 deadbaad
r4 00000000 r5 6123154c r6 5ce18228 r7 5ce18228
r8 40007000 r9 00000000 sl 000067e8 fp 61231c84
ip 00000001 sp 61231548 lr 400f42ff pc 400f1824 cpsr 60000030
d0 000000003f800000 d1 440f4000440f4000
d2 41d56c47440f4000 d3 41d8000041d80000
d4 4446400043948000 d5 43a20000443f8000
d6 43b4000000000000 d7 408000003f800000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 0000000000000000 d17 400c148000000000
d18 4123622400000000 d19 3ff0000000000000
d20 0000000000000000 d21 0000000000000000
d22 0000000000000000 d23 0000000000000000
d24 0000000000000000 d25 0000000000000000
d26 0000000000000000 d27 4059000000000000
d28 3ff0000000000000 d29 3ff0000000000000
d30 0000000000000000 d31 0000000000000000
scr 20000093

backtrace:
#00 pc 0001e824 /system/lib/libc.so
#01 pc 0001c76c /system/lib/libc.so (abort+4)
#02 pc 000122ed /system/lib/libc.so
#03 pc 0000ea11 /system/lib/libc.so
#04 pc 0000f8df /system/lib/libc.so (dlmalloc+606)
#05 pc 0000daab /system/lib/libc.so (malloc+10)
#06 pc 0010462b /system/lib/libwebcore.so
#07 pc 003d3495 /system/lib/libwebcore.so
#08 pc 003d3525 /system/lib/libwebcore.so
#09 pc 003d3597 /system/lib/libwebcore.so
#10 pc 001b88f9 /system/lib/libwebcore.so
#11 pc 003d127d /system/lib/libwebcore.so
#12 pc 003d048f /system/lib/libwebcore.so
#13 pc 003d047d /system/lib/libwebcore.so
#14 pc 003d047d /system/lib/libwebcore.so
#15 pc 003d047d /system/lib/libwebcore.so
#16 pc 003d047d /system/lib/libwebcore.so
#17 pc 003d047d /system/lib/libwebcore.so
#18 pc 003d047d /system/lib/libwebcore.so
#19 pc 003d047d /system/lib/libwebcore.so
#20 pc 003d047d /system/lib/libwebcore.so
#21 pc 0020b065 /system/lib/libwebcore.so
#22 pc 00176b47 /system/lib/libwebcore.so
#23 pc 00176b93 /system/lib/libwebcore.so
#24 pc 0041ca8d /system/lib/libwebcore.so
#25 pc 002a9c63 /system/lib/libwebcore.so
#26 pc 002a9cc1 /system/lib/libwebcore.so
#27 pc 0001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
#28 pc 0004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#29 pc 00027860 /system/lib/libdvm.so
#30 pc 0002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#31 pc 00060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)

code around pc:
400f1804 461ce00b 2b006823 e026d1fb b12468e4 
400f1814 21014a18 6011447a 4b1247a0 24002027 
400f1824 f7fc7018 2106edc2 e828f7fe 5180f04f 
400f1834 a9029104 94022006 9403460a ebc4f7fd 
400f1844 46224629 f7fd2002 f7fcebd0 2106edae 
400f1854 e814f7fe f7fc2001 6960ea5a d1dc2800 
400f1864 bf00e7d4 deadbaad 000297f4 ffffff9c 
400f1874 0002ca84 0002ca68 2400b510 aa04b088 
400f1884 46699002 94014620 94039400 eb12f7fd 
400f1894 db0642a0 b1139b07 1c419806 98069106 
400f18a4 4620e000 bd10b008 4b1eb40e b082b5f0 
400f18b4 447b491d f107af00 585e021c f8522101 
400f18c4 68354b04 f852607d 31015b04 d1fa2d00 
400f18d4 320e008a 0507f022 0220f107 0d05ebad 
400f18e4 f107603a 46690224 9400466d 4c04f852 
400f18f4 f8453204 2c004f04 f8dfd1f8 f853c030 

code around lr:
400f42dc 4a0e4b0d e92d447b 260041f0 4680589c 
400f42ec 686768a5 f9b5e007 2b00300c 4628dd02 
400f42fc 430647c0 3f013554 6824d5f5 d1ef2c00 
400f430c e8bd4630 bf0081f0 00026cf4 ffffffc4 
400f431c 43f0e92d fb01461e 4b16f502 4916460f 
400f432c 447bb087 aa014614 20019001 95029203 
400f433c 90049505 681a585b b1124698 f0094630 
400f434c 4630fd4a f7ffa903 4681fe9c 0000f8d8 
400f435c 4630b110 fd4cf009 0f00f1b9 9c05d005 
400f436c 1b284639 ecbcf017 46204604 e8bdb007 
400f437c bf0083f0 00026ca6 ffffff60 46036842 
400f438c 60411e51 da012900 bbbcf000 f8126802 
400f439c 601a0b01 00004770 4a104b0f b570447b 
400f43ac 589b4604 461e6819 f009b109 6860fd14 
400f43bc 60651e45 da042d00 f0004620 4605fba3 
400f43cc 6822e003 5b01f812 68336022 4620b113 

What is this problem ?

Thanx for your help :smile:


#2

I’m not an expert but my best guess would be that the app using “com.mib_agence.mibclean” is writing into unallocated memory causing damage to the memory allocator and causing it to not work. Is “com.mib_agence.mibclean” your app or a plugin, or another app installed on the phone?


#3

Hi !

Yes com.mib_agence.mibclean is my app. But I dont’t understand this error. I’m using just HTML CSS and JS. Do you have an explication for this error ?

Thanx for your help :smile:


#4

This seems to be an actual issue with the Galaxy S3. If you look at his edit on the original question he mentions that it crashes when content goes off the screen, which I believe Ionic uses hardware accelerated css and javascript animations to do things so the elements are definitely going off screen.

He might be out of luck, I could not find any solution to the issue. The phone is almost 4 years old now, and on samsung terms that means it’s been outdated for 3.

It’s not an Ionic issue at all, it’s actually an android one. It happens in native apps too.