jni status: segmentation fault in C-function