Code Monkey home page Code Monkey logo

Comments (4)

waruqi avatar waruqi commented on May 12, 2024 1

加个volatile 就好了。

volatile ClassFoo *foo = nullptr;
foo->testFunc();

或者直接:*((volatile int*)0) = 0;

from xcrash.

caikelun avatar caikelun commented on May 12, 2024

这种明显有问题的代码release编译时(-Os -Oz)一般都会被优化掉,比如编译成 exit 了。请反汇编确认。

此类测试代码建议用 -O0 编译。

from xcrash.

foobra avatar foobra commented on May 12, 2024

这种明显有问题的代码release编译时(-Os -Oz)一般都会被优化掉,比如编译成 exit 了。请反汇编确认。

此类测试代码建议用 -O0 编译。

我只是举个例子, 这个ClassFoo很可能是外部传入的. 然后崩溃了. ndk自己都抓不到这种堆栈, xcrash是否能抓到?

from xcrash.

caikelun avatar caikelun commented on May 12, 2024

xCrash 的 log 文件能生成吗?还是说 log 文件中的 backtrace 为空?
另外可以确认下,是否在 xCrash 初始化之后,进程中又有其他地方注册了崩溃信号的 handler?

from xcrash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.