{"action":"created","issue":{"url":"https://api.github.com/repos/senseyeio/roger/issues/23","labels_url":"https://api.github.com/repos/senseyeio/roger/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/senseyeio/roger/issues/23/comments","events_url":"https://api.github.com/repos/senseyeio/roger/issues/23/events","html_url":"https://github.com/senseyeio/roger/issues/23","id":123020017,"number":23,"title":"panic with echo disabled","user":{"login":"bfallik","id":220118,"avatar_url":"https://avatars.githubusercontent.com/u/220118?v=3","gravatar_id":"","url":"https://api.github.com/users/bfallik","html_url":"https://github.com/bfallik","followers_url":"https://api.github.com/users/bfallik/followers","following_url":"https://api.github.com/users/bfallik/following{/other_user}","gists_url":"https://api.github.com/users/bfallik/gists{/gist_id}","starred_url":"https://api.github.com/users/bfallik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfallik/subscriptions","organizations_url":"https://api.github.com/users/bfallik/orgs","repos_url":"https://api.github.com/users/bfallik/repos","events_url":"https://api.github.com/users/bfallik/events{/privacy}","received_events_url":"https://api.github.com/users/bfallik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dareid","id":7037634,"avatar_url":"https://avatars.githubusercontent.com/u/7037634?v=3","gravatar_id":"","url":"https://api.github.com/users/dareid","html_url":"https://github.com/dareid","followers_url":"https://api.github.com/users/dareid/followers","following_url":"https://api.github.com/users/dareid/following{/other_user}","gists_url":"https://api.github.com/users/dareid/gists{/gist_id}","starred_url":"https://api.github.com/users/dareid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dareid/subscriptions","organizations_url":"https://api.github.com/users/dareid/orgs","repos_url":"https://api.github.com/users/dareid/repos","events_url":"https://api.github.com/users/dareid/events{/privacy}","received_events_url":"https://api.github.com/users/dareid/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-18T20:22:19Z","updated_at":"2015-12-30T23:21:25Z","closed_at":"2015-12-30T23:15:37Z","body":"Hi,\r\n\r\nI can reliably generate a panic by disabling echo within a session:\r\n```go\r\n\tsession, err := rClient.GetSession()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tdefer session.Close()\r\n\r\n\tpkt := session.SendCommand(`options(echo = FALSE)`)\r\n\tv, err := pkt.GetResultObject()\r\n```\r\n\r\nresults in\r\n\r\n```\r\npanic: runtime error: slice bounds out of range\r\n\r\ngoroutine 1 [running]:\r\n_vendor/github.com/senseyeio/roger/sexp.parseReturningOffset(0xc82000e7e4, 0x2c, 0x2c, 0x29, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/bfallik/sandbox/gillnet/go/src/_vendor/github.com/senseyeio/roger/sexp/factory.go:26 +0xc41\r\n_vendor/github.com/senseyeio/roger/sexp.parseVector(0x13d6c0, 0xc82000e840, 0xc82000e7e4, 0x2c, 0x2c, 0x29, 0x2c, 0x0, 0x0, 0xc, ...)\r\n\t/Users/bfallik/sandbox/go/src/_vendor/github.com/senseyeio/roger/sexp/xt-vector.go:33 +0xbd\r\n_vendor/github.com/senseyeio/roger/sexp.parseReturningOffset(0xc82000e7e4, 0x2c, 0x2c, 0x20, 0x0, 0x0, 0x7a15d, 0x0, 0x0)\r\n\t/Users/bfallik/sandbox/go/src/_vendor/github.com/senseyeio/roger/sexp/factory.go:68 +0x78e\r\n_vendor/github.com/senseyeio/roger/sexp.Parse(0xc82000e7e4, 0x2c, 0x2c, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/bfallik/sandbox/go/src/_vendor/github.com/senseyeio/roger/sexp/factory.go:13 +0x61\r\n_vendor/github.com/senseyeio/roger.(*packet).GetResultObject(0xc82000e810, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/bfallik/sandbox/go/src/_vendor/github.com/senseyeio/roger/packet.go:77 +0x31e\r\nmain.main()\r\n\t/Users/bfallik/sandbox/go/src/tools/rogercmd/main.go:49 +0x4ed\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1\r\nexit status 2\r\n```"},"comment":{"url":"https://api.github.com/repos/senseyeio/roger/issues/comments/168094010","html_url":"https://github.com/senseyeio/roger/issues/23#issuecomment-168094010","issue_url":"https://api.github.com/repos/senseyeio/roger/issues/23","id":168094010,"user":{"login":"bfallik","id":220118,"avatar_url":"https://avatars.githubusercontent.com/u/220118?v=3","gravatar_id":"","url":"https://api.github.com/users/bfallik","html_url":"https://github.com/bfallik","followers_url":"https://api.github.com/users/bfallik/followers","following_url":"https://api.github.com/users/bfallik/following{/other_user}","gists_url":"https://api.github.com/users/bfallik/gists{/gist_id}","starred_url":"https://api.github.com/users/bfallik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfallik/subscriptions","organizations_url":"https://api.github.com/users/bfallik/orgs","repos_url":"https://api.github.com/users/bfallik/repos","events_url":"https://api.github.com/users/bfallik/events{/privacy}","received_events_url":"https://api.github.com/users/bfallik/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T23:21:25Z","updated_at":"2015-12-30T23:21:25Z","body":"No problem, thanks for the fix!"}}