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

【必现】线程卡住问题 #29

Closed
hansweidong opened this issue Mar 14, 2022 · 3 comments
Closed

【必现】线程卡住问题 #29

hansweidong opened this issue Mar 14, 2022 · 3 comments

Comments

@hansweidong
Copy link

MemoryCache.cpp 中
pthread_mutex_lock(&alloc_mutex);
for (auto p : alloc_table) {
for (; p != nullptr; p = p->next) {
write_trace(report, p, nullptr, &dl_cache);
}
}
pthread_mutex_lock(&alloc_mutex);

pthread_mutex_lock(&alloc_mutex);
在调试中发现这句代码卡住线程

@shentianzhou
Copy link
Collaborator

什么机型?

@zhoujunyou
Copy link

我这边也必现,怎么两个pthread_mutex_lock, 不应该是pthread_mutex_unlock吗。

@shentianzhou
Copy link
Collaborator

确实是这个问题

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

No branches or pull requests

3 participants