Skip to content
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

可以不使用dumper么? #15

Closed
LiangChaoPossible opened this issue Jul 17, 2019 · 4 comments
Closed

可以不使用dumper么? #15

LiangChaoPossible opened this issue Jul 17, 2019 · 4 comments
Labels
question Further information is requested

Comments

@LiangChaoPossible
Copy link

如果不使用dumper,直接通过xc_fallback_get_emergency 会有什么区别么?
xc_fallback_get_emergency会有数据不全,或者信息不全的问题么?

@caikelun
Copy link
Collaborator

fallback是在崩溃线程自身的signal handler中执行的,稳定性比较低。dumper是个独立进程,充当gdb的角色,可以比较可靠的“调试”已崩溃的进程。

@LiangChaoPossible
Copy link
Author

LiangChaoPossible commented Jul 17, 2019

稳定性比较低,是指信息收集(因为可能要回调到java层进行写文件操作)还没执行完,进程就会退出么?还是说崩溃信息收集不全。

@caikelun
Copy link
Collaborator

是的,信息收集没有完成就可能会退出。

崩溃进程可能已经fd耗尽、虚拟内存空间耗尽等,因此在崩溃进程中执行收集信息的逻辑,会有很多问题。

signal handler中也有很多额外的限制,参考:http://man7.org/linux/man-pages/man7/signal-safety.7.html

@caikelun caikelun added the question Further information is requested label Jul 17, 2019
@LiangChaoPossible
Copy link
Author

谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants