{"action":"created","issue":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/132","repository_url":"https://api.github.com/repos/v2ray/v2ray-core","labels_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/132/comments","events_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/132/events","html_url":"https://github.com/v2ray/v2ray-core/issues/132","id":152759043,"number":132,"title":"panic: runtime error: slice bounds out of range","user":{"login":"soffchen","id":891708,"avatar_url":"https://avatars.githubusercontent.com/u/891708?v=3","gravatar_id":"","url":"https://api.github.com/users/soffchen","html_url":"https://github.com/soffchen","followers_url":"https://api.github.com/users/soffchen/followers","following_url":"https://api.github.com/users/soffchen/following{/other_user}","gists_url":"https://api.github.com/users/soffchen/gists{/gist_id}","starred_url":"https://api.github.com/users/soffchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soffchen/subscriptions","organizations_url":"https://api.github.com/users/soffchen/orgs","repos_url":"https://api.github.com/users/soffchen/repos","events_url":"https://api.github.com/users/soffchen/events{/privacy}","received_events_url":"https://api.github.com/users/soffchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-03T12:13:14Z","updated_at":"2016-05-04T06:04:30Z","closed_at":null,"body":"下载的 v1.12.3 release, linux 64\r\n\r\n客户端访问 frontend 的 ss 时，直接在 frontend 报 panic\r\n\r\n```\r\npanic: runtime error: slice bounds out of range\r\n\r\ngoroutine 261 [running]:\r\npanic(0x7e5cc0, 0xc820010080)\r\n        /home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/panic.go:464 +0x3e6\r\ngithub.com/v2ray/v2ray-core/proxy/shadowsocks.(*Shadowsocks).handleConnection.func1(0x7fd274e2c798, 0xc820079f10, 0x10, 0xc8203570c0, 0xc820011a20, 0x10, 0x10, 0x7fd274e2c428, 0xc82063bae0, 0xc820079f20)\r\n        /home/travis/gopath/src/github.com/v2ray/v2ray-core/proxy/shadowsocks/shadowsocks.go:221 +0x857\r\ncreated by github.com/v2ray/v2ray-core/proxy/shadowsocks.(*Shadowsocks).handleConnection\r\n        /home/travis/gopath/src/github.com/v2ray/v2ray-core/proxy/shadowsocks/shadowsocks.go:235 +0x1480\r\n```\r\n\r\nfrontend:\r\n\r\n```\r\n{\r\n  \"port\": xxx,\r\n  \"log\": {\r\n    \"access\": \"\"\r\n  },\r\n  \"inbound\": {\r\n    \"protocol\": \"shadowsocks\",\r\n    \"settings\": {\r\n      \"method\": \"aes-128-cfb\",\r\n      \"udp\": false,\r\n      \"password\": \"xxx\",\r\n      \"level\": 1\r\n    }\r\n  },\r\n  \"outbound\": {\r\n    \"protocol\": \"vmess\",\r\n    \"settings\": {\r\n      \"vnext\": [\r\n        {\r\n          \"address\": \"xxx\",\r\n          \"port\": xxx,\r\n          \"users\": [\r\n            {\r\n              \"id\": \"6196fe92-79bb-432d-a322-xxx\"\r\n            }\r\n          ]\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nbackend:\r\n\r\n```\r\n{\r\n  \"port\": xxx,\r\n  \"log\" : {\r\n  },\r\n  \"inbound\": {\r\n    \"protocol\": \"vmess\",\r\n    \"settings\": {\r\n      \"clients\": [\r\n        {\r\n          \"id\": \"6196fe92-79bb-432d-a322-xxx\",\r\n          \"level\": 1\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"outbound\": {\r\n    \"protocol\": \"freedom\",\r\n    \"settings\": {}\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/comments/216752712","html_url":"https://github.com/v2ray/v2ray-core/issues/132#issuecomment-216752712","issue_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/132","id":216752712,"user":{"login":"windyboy","id":604450,"avatar_url":"https://avatars.githubusercontent.com/u/604450?v=3","gravatar_id":"","url":"https://api.github.com/users/windyboy","html_url":"https://github.com/windyboy","followers_url":"https://api.github.com/users/windyboy/followers","following_url":"https://api.github.com/users/windyboy/following{/other_user}","gists_url":"https://api.github.com/users/windyboy/gists{/gist_id}","starred_url":"https://api.github.com/users/windyboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windyboy/subscriptions","organizations_url":"https://api.github.com/users/windyboy/orgs","repos_url":"https://api.github.com/users/windyboy/repos","events_url":"https://api.github.com/users/windyboy/events{/privacy}","received_events_url":"https://api.github.com/users/windyboy/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T06:04:30Z","updated_at":"2016-05-04T06:04:30Z","body":"我的情况和楼主类似，客户端出了一样panic\r\n但是同一个客户端，连freebsd上的服务端就没问题，连linux就出错\r\n服务端，客户端都是我手动编译的版本\r\n客户端在OSX上\r\n出错的服务端： 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux"}}