Renderscript runtime segfaults after copying data and using that data in subsequent kernels, e.g.
img1 = img2;
kernel.execute(); // kernel reads or writes to img1
the same memory assignment work perfectly and passes in tests/memory_assignment when no kernel is executed afterwards. Most likely a bug in Renderscript runtime ...
This was actually no bug in the Renderscript runtime, but triggered by out-of-bounds memory accesses in a previous kernel launch.