Dgraph crashes on query

following query crashes dgraph ( 1 million rdf dataset )

> 
> {
>   q(func:allofterms(name@en, "Dwayne Johnson")) {
>     name@.
>     _predicate_
>     actor.film {
>       uid
>       name@.
>        performance.film{
>       name@.
>       initial_release_date
>       genre {
>         name@.
>       }
>       starring {
>         name@.
>         _predicate_
>       }
>       _predicate_
>     }
> 			_predicate_
>      
>      }
>     
> 	}
> }
> 
> 
> dgraph server log
> 
> panic: runtime error: slice bounds out of range
> 
> goroutine 36204 [running]:
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Arena).getVal(0xc4202109c0, 0x680160012009, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/arena.go:124 +0x9a
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Skiplist).Get(0xc4202109e0, 0xc42c3858f0, 0x2b, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/skl.go:387 +0x162
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*DB).get(0xc4201be000, 0xc42c3858f0, 0x2b, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/db.go:501 +0x111
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Item).yieldItemValue(0xc42c3b11e0, 0x19f9270, 0xc42c4fdf68, 0x81d9c4, 0xc42c399f14, 0x0, 0xc42c4fdf90)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:178 +0x3c4
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Item).prefetchValue(0xc42c3b11e0)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:198 +0x35
> github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Iterator).fill.func1(0xc42c3b11e0)
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:524 +0x2b
> created by github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Iterator).fill
> 	/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:522 +0x27e

➜ dgraph dgraph version

Dgraph version : v1.0.6
Commit SHA-1 : ae8e5ffd
Commit timestamp : 2018-06-29 19:27:35 -0700
Branch : HEAD

This bug was fixed in master. It would be part of the new v1.0.7 release.

1 Like

Is there any more details about this bug?