{"action":"created","issue":{"url":"https://api.github.com/repos/eomsoft/teleport/issues/10","repository_url":"https://api.github.com/repos/eomsoft/teleport","labels_url":"https://api.github.com/repos/eomsoft/teleport/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/eomsoft/teleport/issues/10/comments","events_url":"https://api.github.com/repos/eomsoft/teleport/issues/10/events","html_url":"https://github.com/eomsoft/teleport/issues/10","id":208619371,"number":10,"title":"Linux平台上，core服务有时会崩溃。","user":{"login":"apexliu","id":691540,"avatar_url":"https://avatars3.githubusercontent.com/u/691540?v=3","gravatar_id":"","url":"https://api.github.com/users/apexliu","html_url":"https://github.com/apexliu","followers_url":"https://api.github.com/users/apexliu/followers","following_url":"https://api.github.com/users/apexliu/following{/other_user}","gists_url":"https://api.github.com/users/apexliu/gists{/gist_id}","starred_url":"https://api.github.com/users/apexliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apexliu/subscriptions","organizations_url":"https://api.github.com/users/apexliu/orgs","repos_url":"https://api.github.com/users/apexliu/repos","events_url":"https://api.github.com/users/apexliu/events{/privacy}","received_events_url":"https://api.github.com/users/apexliu/received_events","type":"User","site_admin":false},"labels":[{"id":492321032,"url":"https://api.github.com/repos/eomsoft/teleport/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"apexliu","id":691540,"avatar_url":"https://avatars3.githubusercontent.com/u/691540?v=3","gravatar_id":"","url":"https://api.github.com/users/apexliu","html_url":"https://github.com/apexliu","followers_url":"https://api.github.com/users/apexliu/followers","following_url":"https://api.github.com/users/apexliu/following{/other_user}","gists_url":"https://api.github.com/users/apexliu/gists{/gist_id}","starred_url":"https://api.github.com/users/apexliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apexliu/subscriptions","organizations_url":"https://api.github.com/users/apexliu/orgs","repos_url":"https://api.github.com/users/apexliu/repos","events_url":"https://api.github.com/users/apexliu/events{/privacy}","received_events_url":"https://api.github.com/users/apexliu/received_events","type":"User","site_admin":false},"assignees":[{"login":"apexliu","id":691540,"avatar_url":"https://avatars3.githubusercontent.com/u/691540?v=3","gravatar_id":"","url":"https://api.github.com/users/apexliu","html_url":"https://github.com/apexliu","followers_url":"https://api.github.com/users/apexliu/followers","following_url":"https://api.github.com/users/apexliu/following{/other_user}","gists_url":"https://api.github.com/users/apexliu/gists{/gist_id}","starred_url":"https://api.github.com/users/apexliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apexliu/subscriptions","organizations_url":"https://api.github.com/users/apexliu/orgs","repos_url":"https://api.github.com/users/apexliu/repos","events_url":"https://api.github.com/users/apexliu/events{/privacy}","received_events_url":"https://api.github.com/users/apexliu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eomsoft/teleport/milestones/6","html_url":"https://github.com/eomsoft/teleport/milestone/6","labels_url":"https://api.github.com/repos/eomsoft/teleport/milestones/6/labels","id":2331630,"number":6,"title":"2.0.x","description":"让teleport服务稳定工作。","creator":{"login":"apexliu","id":691540,"avatar_url":"https://avatars3.githubusercontent.com/u/691540?v=3","gravatar_id":"","url":"https://api.github.com/users/apexliu","html_url":"https://github.com/apexliu","followers_url":"https://api.github.com/users/apexliu/followers","following_url":"https://api.github.com/users/apexliu/following{/other_user}","gists_url":"https://api.github.com/users/apexliu/gists{/gist_id}","starred_url":"https://api.github.com/users/apexliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apexliu/subscriptions","organizations_url":"https://api.github.com/users/apexliu/orgs","repos_url":"https://api.github.com/users/apexliu/repos","events_url":"https://api.github.com/users/apexliu/events{/privacy}","received_events_url":"https://api.github.com/users/apexliu/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2017-02-18T06:27:07Z","updated_at":"2017-03-07T15:37:02Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-02-18T06:38:08Z","updated_at":"2017-03-15T17:25:01Z","closed_at":null,"body":"CentOS 6.7，18个人使用不同的终端（scp，xshell，putty）通过堡垒机登录到10台服务器。复制文件，查看日志等操作，core服务会崩溃。\r\n"},"comment":{"url":"https://api.github.com/repos/eomsoft/teleport/issues/comments/286816947","html_url":"https://github.com/eomsoft/teleport/issues/10#issuecomment-286816947","issue_url":"https://api.github.com/repos/eomsoft/teleport/issues/10","id":286816947,"user":{"login":"apexliu","id":691540,"avatar_url":"https://avatars3.githubusercontent.com/u/691540?v=3","gravatar_id":"","url":"https://api.github.com/users/apexliu","html_url":"https://github.com/apexliu","followers_url":"https://api.github.com/users/apexliu/followers","following_url":"https://api.github.com/users/apexliu/following{/other_user}","gists_url":"https://api.github.com/users/apexliu/gists{/gist_id}","starred_url":"https://api.github.com/users/apexliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apexliu/subscriptions","organizations_url":"https://api.github.com/users/apexliu/orgs","repos_url":"https://api.github.com/users/apexliu/repos","events_url":"https://api.github.com/users/apexliu/events{/privacy}","received_events_url":"https://api.github.com/users/apexliu/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T17:25:01Z","updated_at":"2017-03-15T17:25:01Z","body":"经过分析core dump后，有以下结果：\r\n\r\n> ssh会话中，接收到服务器发回的数据时，核心服务试图解析数据，将其中主机名部分替换成远程主机IP，以便xShell/SecureCRT等软件在其标签页上显示远程主机的IP地址，而不是teleport服务器的IP地址。\r\n>\r\n> 如果服务端返回的数据过长，或者程序计算有误，导致临时分配内存失败（返回空指针），但是后续操作并未检查此情况，仍然向此空指针写入数据，导致非法内存访问而崩溃。\r\n\r\n改进方法：\r\n\r\n - 检查内存分配是否成功；\r\n - 仅对ssh命令行数据进行解析，忽略scp/sftp下载数据；\r\n - 限定要分析的数据长度，操作一定阀值的数据不进行解析；"}}
{"actor":{"display_login":"apexliu"}}