We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
EventsImp::loop函数中,先行调用idleConns_.clear()清除掉空闲链接,lst地址已释放。 然后调用函数 void EventsImp::unregisterIdle(const IdleId &id) { trace("unregister idle"); id->lst_->erase(id->iter_); } IdleId的构造依赖于lst的地址 IdleId(new IdleIdImp(&lst, --lst.end()));, 此时调用unregisterIdle指向的是非法指针
The text was updated successfully, but these errors were encountered:
能够给出复现的步骤吗?
Sorry, something went wrong.
No branches or pull requests
EventsImp::loop函数中,先行调用idleConns_.clear()清除掉空闲链接,lst地址已释放。
然后调用函数
void EventsImp::unregisterIdle(const IdleId &id) {
trace("unregister idle");
id->lst_->erase(id->iter_);
}
IdleId的构造依赖于lst的地址 IdleId(new IdleIdImp(&lst, --lst.end()));, 此时调用unregisterIdle指向的是非法指针
The text was updated successfully, but these errors were encountered: