-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
idle-close.cc 按Ctrl+c停止服务会coredump #83
Comments
能够给出复现的步骤吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: