forked from lthn/blockchain
CID 273225 (#1 of 1): Using invalid iterator (INVALIDATE_ITERATOR)
This commit is contained in:
parent
cf7dc36cf7
commit
215a0b1786
1 changed files with 5 additions and 3 deletions
|
|
@ -526,9 +526,11 @@ namespace epee
|
|||
<< prev_it->second.func_name << " @ " << prev_it->second.block_location << std::endl << " |" << std::endl << " V" << std::endl;
|
||||
prev_it = current_it;
|
||||
}
|
||||
|
||||
ss << prev_it->second.thread_name << "(tid:" << prev_it->first << ") blocked by locker \"" << lock_name << "(owned by " << (*threads_chain.begin())->second.thread_name << " tid:" << (*threads_chain.begin())->first << ")] at "
|
||||
<< func_name << " @ " << location << std::endl;
|
||||
if (prev_it != m_thread_owned_locks.end())
|
||||
{
|
||||
ss << prev_it->second.thread_name << "(tid:" << prev_it->first << ") blocked by locker \"" << lock_name << "(owned by " << (*threads_chain.begin())->second.thread_name << " tid:" << (*threads_chain.begin())->first << ")] at "
|
||||
<< func_name << " @ " << location << std::endl;
|
||||
}
|
||||
m_deadlock_journal.push_back(ss.str());
|
||||
throw std::runtime_error(ss.str());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue