Valgrind hangs in pthread_spin_lock consuming 100% CPU

半城伤御伤魂 提交于 2019-12-02 06:50:40

问题


My C++ multi threaded application hangs in pthread_spin_lock in valgrind versions 3.8.0 and latest. But it is not happening in 3.6.0, 3.6.1 and 3.7.0. Anyone knows any workaround for this?


回答1:


This is cause the internal problems of thread managing in valgrind. I had same problem and it was fixed in 3.10 version of valgrind.




回答2:


The issue logged in the valgrind official issue management system. Julian Seward has fixed it in 3.9 later version. https://bugs.kde.org/show_bug.cgi?id=336435



来源:https://stackoverflow.com/questions/24558914/valgrind-hangs-in-pthread-spin-lock-consuming-100-cpu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!