I wrote a simple Android native function that get a filename and some more arguments and read the file by mmapping (mmap) it\'s memory.
Because it\'s mmap, I don\'t real
There is a big problem here:
addr+=jbuffer_size;
You're bumping addr by sizeof(int) * jbuffer_size bytes whereas you just want to increment it by jbuffer_size bytes.
My guess is sizeof(int) is 4 on your system, hence you crash at around 25% of the way through your loop, because you're incrementing addr by a factor of 4x too much on each iteration.