-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是否所有的native异常都能捕获? #20
Labels
invalid
This doesn't seem right
Comments
这种明显有问题的代码release编译时(-Os -Oz)一般都会被优化掉,比如编译成 exit 了。请反汇编确认。 此类测试代码建议用 -O0 编译。 |
加个volatile 就好了。 volatile ClassFoo *foo = nullptr;
foo->testFunc(); 或者直接: |
我只是举个例子, 这个ClassFoo很可能是外部传入的. 然后崩溃了. ndk自己都抓不到这种堆栈, xcrash是否能抓到? |
xCrash 的 log 文件能生成吗?还是说 log 文件中的 backtrace 为空? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我发现有个空指针异常没有捕获 其他情况可以捕获.
ClassFoo *foo = nullptr;
foo->testFunc();
第二行crash的时候 无法捕获
The text was updated successfully, but these errors were encountered: