已关闭
[Bug]: 稳定性问题 #253
huyukai1创建于 17 天前关闭于 15 天前
openharmony_ci
17 天前 评论:
17 天前 评论:
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@lilong32](https://gitcode.com/lilong32) [@chengguohong](https://gitcode.com/chengguohong) [@tangjia15](https://gitcode.com/tangjia15) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.


17 天前 添加了label:waiting_for_assign
15 天前 关闭了 issue
15 天前 issue状态由 待办的 改变为 已完成
发生了什么问题?
lambda 捕获裸
this,稍后在 TWS 线程执行时通过this->twsClient_调用std::weak_ptr<TwsClient>::lock()。风险:lambda 真正执行时,回调对象可能已被析构
期望行为是什么?
无crash
如何复现该缺陷
将lambda 的捕获从裸
this改为按值捕获twsClient_的weak_ptr副本初始化捕获其他补充信息
ab47c64deca54ea8a34871a7ca852ce6.md
版本或分支信息