0

抱歉新手问题。我有 libnative_exception_handler.so 和 breakpad init:

google_breakpad::MinidumpDescriptor descriptor(".");
google_breakpad::ExceptionHandler eh(descriptor, NULL, breakpad_callback, NULL, true, -1);

和 libfunc.so 具有不安全的功能。

两个库都使用 android 加载System.loadLibrary();

如果 breakpad init 在libnative_exception_handler.so信号未被捕获且不调用 breakpad 回调的情况下完成。如果我将libfunc.so源更改为 init breakpad 信号被捕获。那么breakpad是否需要在不安全函数所在的同一个库中初始化?

更新:我创建了 lib 和演示应用程序来演示该问题:https ://github.com/4ntoine/Acra-breakpad

4

1 回答 1

0

google_breakpad::ExceptionHandler eh需要在堆中初始化,而不是在堆栈中。

于 2014-03-18T09:03:56.637 回答