Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid address passed to dlfree

Tags:

android

My app seems to be crashing "randomly" and I can't figure out why.

The logcat shows the following error:

A/libc(24298): invalid address or address of corrupt block 0x78366c48 passed to dlfree
A/libc(24298): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 24322 (AsyncTask #5)

Could this be something I am doing? Is it something wrong with Android?

I'm not really sure where to start looking for this at.

The person who is seeing this crash did tell me they have "a bad SD card and Verizon is telling me I need to put a new one in." That may or may not be relevant.

like image 874
Andrew Avatar asked Jul 31 '14 21:07

Andrew


1 Answers

It's hard to solve this issue with no code to look at or any clue what the app is about, but I'll give you my guess what can cause the problem, and hopefully this will lead you in the right direction to solve this issue.

First of SIGSEGV, is a segmentation fault. Which in other words means that a memory access violation, trying to access memory which you are not allowed to. A likely cause of this is that you have ran out of memory, maybe because a memory leak or simply used up all memory. This can be caused by a bug you are using in a plugin that uses native C/C++ code through NDK.

The error code 0xDEADBAAD ("dead bad") is used by the Android libc abort() function when native heap corruption is detected.

In my opinion your best shot is to try and recreate the problem in the emulator or get hold of a device which can cause the problem and start debugging memory to get a hunch of the cause of this.

I would also recommend you to take a look at this SO question which has similar problems.

Good luck, solving the issue!

Best regards, Rawa

like image 103
Rawa Avatar answered Sep 21 '22 12:09

Rawa