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

如果 crash 的当前线程是 serialQueue,会造成死锁 #39

Closed
minchaozhang opened this issue Sep 10, 2019 · 2 comments
Closed

如果 crash 的当前线程是 serialQueue,会造成死锁 #39

minchaozhang opened this issue Sep 10, 2019 · 2 comments
Assignees
Labels

Comments

@minchaozhang
Copy link
Contributor

如果 crash 的当前线程是 serialQueue,会造成死锁
原因是在崩溃采集时,使用如下的方式锁住当前线程发送数据。

       dispatch_sync(instance.serialQueue, ^{
                
            });
@minchaozhang minchaozhang added this to To do in TO DO 管理 via automation Sep 10, 2019
@minchaozhang minchaozhang self-assigned this Sep 10, 2019
@minchaozhang
Copy link
Contributor Author

使用 sensorsdata_dispatch_safe_sync 函数进行处理,如果当前线程是 serialQueue 则继续在当前线程执行

@minchaozhang minchaozhang moved this from To do to Review in progress in TO DO 管理 Sep 10, 2019
@minchaozhang minchaozhang moved this from Review in progress to Reviewer approved in TO DO 管理 Sep 25, 2019
@minchaozhang minchaozhang moved this from Reviewer approved to Done in TO DO 管理 Sep 25, 2019
@minchaozhang
Copy link
Contributor Author

修复版本:Release 1.11.13
剩余问题,如果在 serialQueue 线程中出现崩溃,不能正常采集崩溃信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
TO DO 管理
  
Done
Development

No branches or pull requests

1 participant