query with circular dependencies leads to infinite recursion
droslean opened this issue · 1 comments
droslean commented
A stack overflow occurs for recurring calls. This seems to be a bug in https://github.com/shurcooL/graphql/blob/master/query.go#L97-L130
To replicate
package main
import (
"context"
"fmt"
"log"
graphql "github.com/hasura/go-graphql-client"
)
type Person struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Organization Organization `json:"organization,omitempty"`
}
type Organization struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Employees []Person `json:"employees,omitempty"`
}
func main() {
client := graphql.NewClient("http://whatever", nil)
var m struct {
AddOrganization struct {
Input Organization
} `graphql:"addOrganization(input: $input)"`
}
input := Organization{
Name: "Test ORG",
}
variables := map[string]interface{}{
"input": input,
}
err := client.Mutate(context.TODO(), &m, variables)
if err != nil {
log.Fatal(err)
}
fmt.Printf("m: %#v\n", m)
}
output:
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020180370 stack=[0xc020180000, 0xc040180000]
fatal error: stack overflow
runtime stack:
runtime.throw({0x6aaa5f?, 0x870ee0?})
/usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7fa143ffec18 sp=0x7fa143ffebe8 pc=0x43665d
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1103 +0x5cc fp=0x7fa143ffedd0 sp=0x7fa143ffec18 pc=0x44f6ac
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:570 +0x8b fp=0x7fa143ffedd8 sp=0x7fa143ffedd0 pc=0x463c0b
goroutine 1 [running]:
runtime.stringtoslicerune(0xc020180440, {0x64fe6a, 0x2})
/usr/local/go/src/runtime/string.go:184 +0x18e fp=0xc020180380 sp=0xc020180378 pc=0x45146e
github.com/shurcooL/graphql/ident.ParseMixedCaps({0x64fe6a?, 0x2?})
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/ident/ident.go:20 +0x45 fp=0xc020180500 sp=0xc020180380 pc=0x6406a5
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:120 +0x291 fp=0xc020180600 sp=0xc020180500 pc=0x642511
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020180700 sp=0xc020180600 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180800 sp=0xc020180700 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180900 sp=0xc020180800 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020180a00 sp=0xc020180900 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180b00 sp=0xc020180a00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180c00 sp=0xc020180b00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020180d00 sp=0xc020180c00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180e00 sp=0xc020180d00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020180f00 sp=0xc020180e00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181000 sp=0xc020180f00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181100 sp=0xc020181000 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181200 sp=0xc020181100 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181300 sp=0xc020181200 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181400 sp=0xc020181300 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181500 sp=0xc020181400 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181600 sp=0xc020181500 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181700 sp=0xc020181600 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181800 sp=0xc020181700 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181900 sp=0xc020181800 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181a00 sp=0xc020181900 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181b00 sp=0xc020181a00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181c00 sp=0xc020181b00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181d00 sp=0xc020181c00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020181e00 sp=0xc020181d00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020181f00 sp=0xc020181e00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182000 sp=0xc020181f00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182100 sp=0xc020182000 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020182200 sp=0xc020182100 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182300 sp=0xc020182200 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182400 sp=0xc020182300 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020182500 sp=0xc020182400 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182600 sp=0xc020182500 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182700 sp=0xc020182600 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020182800 sp=0xc020182700 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182900 sp=0xc020182800 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182a00 sp=0xc020182900 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020182b00 sp=0xc020182a00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182c00 sp=0xc020182b00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182d00 sp=0xc020182c00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020182e00 sp=0xc020182d00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020182f00 sp=0xc020182e00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183000 sp=0xc020182f00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020183100 sp=0xc020183000 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183200 sp=0xc020183100 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183300 sp=0xc020183200 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020183400 sp=0xc020183300 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183500 sp=0xc020183400 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183600 sp=0xc020183500 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020183700 sp=0xc020183600 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183800 sp=0xc020183700 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183900 sp=0xc020183800 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020183a00 sp=0xc020183900 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183b00 sp=0xc020183a00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183c00 sp=0xc020183b00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020183d00 sp=0xc020183c00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183e00 sp=0xc020183d00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020183f00 sp=0xc020183e00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184000 sp=0xc020183f00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184100 sp=0xc020184000 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184200 sp=0xc020184100 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184300 sp=0xc020184200 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184400 sp=0xc020184300 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184500 sp=0xc020184400 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184600 sp=0xc020184500 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184700 sp=0xc020184600 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184800 sp=0xc020184700 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184900 sp=0xc020184800 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184a00 sp=0xc020184900 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184b00 sp=0xc020184a00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184c00 sp=0xc020184b00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184d00 sp=0xc020184c00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020184e00 sp=0xc020184d00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020184f00 sp=0xc020184e00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185000 sp=0xc020184f00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185100 sp=0xc020185000 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020185200 sp=0xc020185100 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185300 sp=0xc020185200 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185400 sp=0xc020185300 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020185500 sp=0xc020185400 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185600 sp=0xc020185500 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185700 sp=0xc020185600 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020185800 sp=0xc020185700 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185900 sp=0xc020185800 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185a00 sp=0xc020185900 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020185b00 sp=0xc020185a00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185c00 sp=0xc020185b00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185d00 sp=0xc020185c00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020185e00 sp=0xc020185d00 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020185f00 sp=0xc020185e00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020186000 sp=0xc020185f00 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020186100 sp=0xc020186000 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020186200 sp=0xc020186100 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020186300 sp=0xc020186200 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020186400 sp=0xc020186300 pc=0x6423b0
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x684020}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020186500 sp=0xc020186400 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x68c660}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:123 +0x16b fp=0xc020186600 sp=0xc020186500 pc=0x6423eb
github.com/shurcooL/graphql.writeQuery({0x722b40, 0xc000108cf0}, {0x7274e0, 0x65a880}, 0x0)
/home/nmoraitis/go/src/github.com/droslean/dgraph-bug-stack-overflow/vendor/github.com/shurcooL/graphql/query.go:100 +0x130 fp=0xc020186700 sp=0xc020186600 pc=0x6423b0
...additional frames elided...
goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000052fb0 sp=0xc000052f90 pc=0x439276
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:369
runtime.forcegchelper()
/usr/local/go/src/runtime/proc.go:302 +0xad fp=0xc000052fe0 sp=0xc000052fb0 pc=0x43910d
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000052fe8 sp=0xc000052fe0 pc=0x465ce1
created by runtime.init.6
/usr/local/go/src/runtime/proc.go:290 +0x25
goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000053790 sp=0xc000053770 pc=0x439276
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:369
runtime.bgsweep(0x0?)
/usr/local/go/src/runtime/mgcsweep.go:297 +0xd7 fp=0xc0000537c8 sp=0xc000053790 pc=0x425db7
runtime.gcenable.func1()
/usr/local/go/src/runtime/mgc.go:178 +0x26 fp=0xc0000537e0 sp=0xc0000537c8 pc=0x41ac26
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000537e8 sp=0xc0000537e0 pc=0x465ce1
created by runtime.gcenable
/usr/local/go/src/runtime/mgc.go:178 +0x6b
goroutine 4 [GC scavenge wait]:
runtime.gopark(0x298969077e18?, 0x5eef85?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000053f70 sp=0xc000053f50 pc=0x439276
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:369
runtime.(*scavengerState).park(0x8a4e40)
/usr/local/go/src/runtime/mgcscavenge.go:389 +0x53 fp=0xc000053fa0 sp=0xc000053f70 pc=0x423e13
runtime.bgscavenge(0x0?)
/usr/local/go/src/runtime/mgcscavenge.go:622 +0x65 fp=0xc000053fc8 sp=0xc000053fa0 pc=0x424405
runtime.gcenable.func2()
/usr/local/go/src/runtime/mgc.go:179 +0x26 fp=0xc000053fe0 sp=0xc000053fc8 pc=0x41abc6
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000053fe8 sp=0xc000053fe0 pc=0x465ce1
created by runtime.gcenable
/usr/local/go/src/runtime/mgc.go:179 +0xaa
goroutine 5 [finalizer wait]:
runtime.gopark(0x8a53c0?, 0xc000007860?, 0x0?, 0x0?, 0xc000052770?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000052628 sp=0xc000052608 pc=0x439276
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:369
runtime.runfinq()
/usr/local/go/src/runtime/mfinal.go:180 +0x10f fp=0xc0000527e0 sp=0xc000052628 pc=0x419d2f
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x465ce1
created by runtime.createfing
/usr/local/go/src/runtime/mfinal.go:157 +0x45
goroutine 6 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000054750 sp=0xc000054730 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0000547e0 sp=0xc000054750 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000547e8 sp=0xc0000547e0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 18 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004e750 sp=0xc00004e730 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00004e7e0 sp=0xc00004e750 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004e7e8 sp=0xc00004e7e0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 7 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000054f50 sp=0xc000054f30 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc000054fe0 sp=0xc000054f50 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000054fe8 sp=0xc000054fe0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 8 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000055750 sp=0xc000055730 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0000557e0 sp=0xc000055750 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000557e8 sp=0xc0000557e0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 34 [GC worker (idle)]:
runtime.gopark(0x298962bef51f?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000508750 sp=0xc000508730 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0005087e0 sp=0xc000508750 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0005087e8 sp=0xc0005087e0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 19 [GC worker (idle)]:
runtime.gopark(0x8d5c20?, 0x1?, 0x3f?, 0x5b?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004ef50 sp=0xc00004ef30 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00004efe0 sp=0xc00004ef50 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004efe8 sp=0xc00004efe0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 20 [GC worker (idle)]:
runtime.gopark(0x298962bef8a4?, 0x1?, 0x4e?, 0x31?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004f750 sp=0xc00004f730 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00004f7e0 sp=0xc00004f750 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004f7e8 sp=0xc00004f7e0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
goroutine 21 [GC worker (idle)]:
runtime.gopark(0x298962bef9b6?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004ff50 sp=0xc00004ff30 pc=0x439276
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00004ffe0 sp=0xc00004ff50 pc=0x41cb71
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004ffe8 sp=0xc00004ffe0 pc=0x465ce1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
exit status 2