Skip to content
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

panic: runtime error: index out of range #3

Closed
davidreynolds opened this issue Jun 25, 2014 · 1 comment
Closed

panic: runtime error: index out of range #3

davidreynolds opened this issue Jun 25, 2014 · 1 comment
Labels

Comments

@davidreynolds
Copy link

drr@minty ~/git/cayley $ ./cayley repl --dbpath=testdata.nt
cayley> graph.Vertex("dani").Is()

=> [internal Iterator]
-----------
1 Results
Elapsed time: 1.824459 ms

cayley> graph.Vertex("dani").Is().All()

panic: runtime error: index out of range [recovered]
    panic: runtime error: index out of range [recovered]
    panic: runtime error: index out of range

goroutine 9 [running]:
runtime.panic(0x9631c0, 0x110f677)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
gremlin.func·009()
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:120 +0xe5
runtime.panic(0x9631c0, 0x110f677)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
github.com/robertkrimen/otto.func·024()
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/error.go:240 +0x43d
runtime.panic(0x9631c0, 0x110f677)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
graph.(*FixedIterator).DebugString(0xc2100c3690, 0x4, 0x0, 0x0)
    /home/drr/git/cayley/src/graph/fixed-iterator.go:92 +0x1e6
graph.(*AndIterator).DebugString(0xc21005e480, 0x0, 0xc21005e480, 0x851301)
    /home/drr/git/cayley/src/graph/and-iterator.go:117 +0x50c
gremlin.runIteratorOnSession(0x7faed00052d8, 0xc21005e480, 0xc2100d0000)
    /home/drr/git/cayley/src/gremlin/gremlin-finals.go:244 +0xd3
gremlin.func·004(0xc21006e6e0, 0x0, 0x0, 0x5, 0x9ee9e0, ...)
    /home/drr/git/cayley/src/gremlin/gremlin-finals.go:42 +0xc3
github.com/robertkrimen/otto.(*_object).call(0xc210195ea0, 0x5, 0x9ee9e0, 0xc210195180, 0x11211b0, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/type_function.go:140 +0x415
github.com/robertkrimen/otto.(*_runtime).cmpl_evaluate_nodeCallExpression(0xc21006e6e0, 0xc210184c90, 0x0, 0x0, 0x0, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/cmpl_evaluate_expression.go:240 +0x78e
github.com/robertkrimen/otto.(*_runtime).cmpl_evaluate_nodeExpression(0xc21006e6e0, 0x7faed0000fe8, 0xc210184c90, 0xc21014ebb0, 0x9ee901, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/cmpl_evaluate_expression.go:44 +0x7f8
github.com/robertkrimen/otto.(*_runtime).cmpl_evaluate_nodeStatement(0xc21006e6e0, 0x7faed0000d90, 0xc21014ebb0, 0x0, 0x0, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/cmpl_evaluate_statement.go:49 +0xd76
github.com/robertkrimen/otto.(*_runtime).cmpl_evaluate_nodeStatementList(0xc21006e6e0, 0xc21014eba0, 0x1, 0x1, 0x7faecfe88d40, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/cmpl_evaluate_statement.go:108 +0x95
github.com/robertkrimen/otto.(*_runtime).cmpl_evaluate_nodeProgram(0xc21006e6e0, 0xc2100c3000, 0x990400, 0x0, 0x0, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/cmpl_evaluate.go:17 +0x113
github.com/robertkrimen/otto.func·040()
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/runtime.go:293 +0x43
github.com/robertkrimen/otto.catchPanic(0x7faecfe88df8, 0x0, 0x0)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/error.go:243 +0x6a
github.com/robertkrimen/otto.(*_runtime).cmpl_run(0xc21006e6e0, 0x990420, 0xc210171780, 0xc210187360, 0x7faecfe84fa0, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/runtime.go:294 +0x120
github.com/robertkrimen/otto.Otto.Run(0xc210180c60, 0xc21006e6e0, 0x990420, 0xc210171780, 0xc210186c40, ...)
    /home/drr/git/cayley/src/github.com/robertkrimen/otto/otto.go:292 +0x49
gremlin.(*GremlinSession).runUnsafe(0xc2100d0000, 0x990420, 0xc210171780, 0x0, 0x0, ...)
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:139 +0x14a
gremlin.(*GremlinSession).ExecInput(0xc2100d0000, 0xc210186b40, 0x1f, 0xc210093420, 0x64)
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:151 +0x22b
created by cayley_cmd.RunQuery
    /home/drr/git/cayley/src/cayley_cmd/cayley-repl.go:52 +0x17a

goroutine 1 [runnable]:
cayley_cmd.RunQuery(0xc210186b40, 0x1f, 0x7faed0000bf8, 0xc2100d0000)
    /home/drr/git/cayley/src/cayley_cmd/cayley-repl.go:53 +0x19d
cayley_cmd.CayleyRepl(0x7faed0000a20, 0xc210048c00, 0xa1d060, 0x7, 0xc210048960)
    /home/drr/git/cayley/src/cayley_cmd/cayley-repl.go:133 +0xa6c
main.main()
    /home/drr/git/cayley/src/cayley/main.go:77 +0x7c1

goroutine 3 [chan receive]:
github.com/barakmich/glog.(*loggingT).flushDaemon(0x1118680)
    /home/drr/git/cayley/src/github.com/barakmich/glog/glog.go:923 +0x50
created by github.com/barakmich/glog.init·1
    /home/drr/git/cayley/src/github.com/barakmich/glog/glog.go:408 +0x33e

goroutine 4 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 8 [sleep]:
time.Sleep(0x6fc23ac00)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
gremlin.func·011()
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:128 +0x3c
created by gremlin.(*GremlinSession).runUnsafe
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:136 +0x10f

goroutine 10 [sleep]:
time.Sleep(0x6fc23ac00)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
gremlin.func·011()
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:128 +0x3c
created by gremlin.(*GremlinSession).runUnsafe
    /home/drr/git/cayley/src/gremlin/gremlin-session.go:136 +0x10f
@barakmich
Copy link
Member

Aha. Thank you -- I know what's wrong (the "Is" requires parameters) but I should make it not die.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants