coffeecatch icon indicating copy to clipboard operation
coffeecatch copied to clipboard

CoffeeCatch, a tiny native POSIX signal catcher (especially useful for JNI code on Android/Dalvik)

Results 28 coffeecatch issues
Sort by recently updated
recently updated
newest added

Hi. I am trying to do some little testing of coffeecatch without JNI - in pure C/C++ on Android 4.4.4 x86. Doing something like this: ``` test_result_t run_test(int signal) {...

There's no "libcorkscrew" in Android 5.0. Instead, there's a C++-based "libbacktrace.so". here's a sample code to use it: # include "backtrace/Backtrace.h" ``` int btdump(int sig, struct siginfo * info, void...

I have been trying out coffeecatch (thanks for the useful lib!) and noticed that it was trying to use corkscrew, while I need it to use libunwind as I'm targeting...

JNIEXPORT jobject JNICALL Java_com_ircm_controller_MPCController_getInfusion(JNIEnv *env, jobject thiz, jobject object) { ``` COFFEE_TRY_JNI(env, return Java_com_ircm_controller_MPCController_getInfusion_notProtected(env, thiz, object)); ``` } JNIEXPORT jobject JNICALL Java_com_ircm_controller_MPCController_getInfusion_notProtected(JNIEnv *env, jobject thiz, jobject object) { ``` DBLOG("getInfusion...

Occasionally, it makes sense to wrap a callback with coffeecatch. If that callback happens to be called within an existing coffeecatch block, an error occurs -- the first block to...

I'm trying to test my app on Android 4.2.2. After adding coffeecatch to build with my NDK part, when I'm loading my so lib with System.loadLibrary("jni"), I get the following...

The error is : ![image](https://cloud.githubusercontent.com/assets/8143488/7909054/22940a88-087c-11e5-8f80-fd821e996e2e.png)

Hi Xavier, I'm using COFFEE_TRY_JNI as described in your examples with multiple threads. During some stability testing I'm seeing a crash in libc.so when coffeecatch_cleanup calls pthread_key_delete. It doesn't happen...