title: HEAP MEMORY CORRUPTION IN dlmalloc or dlfree and SIGSEGV errors in Android ICS 4.0
body: <p>Since I couldn't find anyone reporting this behaviour before I thought about posting the problem and my solution here so it could help others who are having this problem. Our app did work great on devices prior to ICS. We tested our app on the Galaxy Nexus and the ICS emulator and saw weird process crashes of the following kind:</p>
  
  <p>HEAP MEMORY CORRUPTION IN dlmalloc</p>
  
  <p>HEAP MEMORY CORRUPTION IN dlfree</p>
  
  <p>signal 11 (SIGSEGV), fault addr deadbaad </p>
  
  <p>The problem is that the crashes occured in the native space so there wasn't any self written code which affected it directly. Since we handle a lot of images in lists and the system allocates bitmaps for those the only thing which came to mind was some bad bitmap handling. We followed all best practices out in the web and we even helped the GC to collect unneeded resources by calling <code>bitmap.recycle()</code>. Anyway, for some unknown reason the application crashed constantly on Android ICS 4.0.</p>