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

Assembly version of decoder panics on windows #2

Closed
animesh2049 opened this issue Sep 19, 2019 · 3 comments
Closed

Assembly version of decoder panics on windows #2

animesh2049 opened this issue Sep 19, 2019 · 3 comments

Comments

@animesh2049
Copy link

Stack trace

unexpected fault address 0xc08c52e000
fatal error: fault
[signal 0xc0000005 code=0x0 addr=0xc08c52e000 pc=0xc64e61]

goroutine 1875499 [running]:
runtime.throw(0x11f1aff, 0x5)
        c:/go/src/runtime/panic.go:774 +0x79 fp=0xc00b0e9600 sp=0xc00b0e95d0 pc=0x432bf9
runtime.sigpanic()
        c:/go/src/runtime/signal_windows.go:236 +0x228 fp=0xc00b0e9630 sp=0xc00b0e9600 pc=0x4468a8
github.com/dgraph-io/dgraph/vendor/github.com/dgryski/go-groupvarint.Decode4(0xc00b0e96a8, 0x4, 0x4, 0xc08c52dff0, 0xb, 0x10)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/vendor/github.com/dgryski/go-groupvarint/decode_amd64.s:11 +0x11 fp=0xc00b0e9638 sp=0xc00b0e9630 pc=0xc64e61
github.com/dgraph-io/dgraph/codec.(*Decoder).unpackBlock(0xc020db22d0, 0xc03f00e000, 0x2966278, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/codec/codec.go:145 +0x225 fp=0xc00b0e96e0 sp=0xc00b0e9638 pc=0xc65675
github.com/dgraph-io/dgraph/codec.(*Decoder).Seek(0xc020db22d0, 0x0, 0x1, 0x0, 0x0, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/codec/codec.go:177 +0x2c9 fp=0xc00b0e9760 sp=0xc00b0e96e0 pc=0xc65b69
github.com/dgraph-io/dgraph/posting.(*pIterator).init(0xc00b0e98c0, 0xc020dd4ae0, 0x0, 0x0, 0x0, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/posting/list.go:127 +0x191 fp=0xc00b0e97e0 sp=0xc00b0e9760 pc=0xc77b01
github.com/dgraph-io/dgraph/posting.(*List).iterate(0xc020dd4ae0, 0x360c, 0x0, 0xc00b0e9970, 0xc62571, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/posting/list.go:615 +0x118 fp=0xc00b0e9938 sp=0xc00b0e97e0 pc=0xc79d18
github.com/dgraph-io/dgraph/posting.(*List).length(0xc020dd4ae0, 0x360c, 0x0, 0x1)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/posting/list.go:691 +0x98 fp=0xc00b0e9990 sp=0xc00b0e9938 pc=0xc7a4e8
github.com/dgraph-io/dgraph/posting.(*Txn).addMutationHelper(0xc0207eca40, 0x13d1de0, 0xc03d160480, 0xc020dd4ae0, 0x20dc0100, 0xc01c2aab40, 0xc000000000, 0x0, 0x0, 0xc01eb45600, ...)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/posting/index.go:356 +0x51f fp=0xc00b0e9b08 sp=0xc00b0e9990 pc=0xc7338f
github.com/dgraph-io/dgraph/posting.(*List).AddMutationWithIndex(0xc020dd4ae0, 0x13d1de0, 0xc03d160480, 0xc01c2aab40, 0xc0207eca40, 0x0, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/posting/index.go:394 +0x124 fp=0xc00b0e9cc8 sp=0xc00b0e9b08 pc=0xc73b24
github.com/dgraph-io/dgraph/worker.runMutation(0x13d1de0, 0xc03d160480, 0xc01c2aab40, 0xc0207eca40, 0x0, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/worker/mutation.go:115 +0x38c fp=0xc00b0e9ec0 sp=0xc00b0e9cc8 pc=0xdc6e9c
github.com/dgraph-io/dgraph/worker.(*node).applyMutations.func3(0xc002040000, 0x1f4, 0x400, 0xc85b65, 0xc0102f71c0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/worker/draft.go:289 +0xb8 fp=0xc00b0e9f70 sp=0xc00b0e9ec0 pc=0xdeb8a8
github.com/dgraph-io/dgraph/worker.(*node).applyMutations.func4(0xc0207e77a0, 0xc01eb45710, 0xc026241200, 0x0, 0x1f4)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/worker/draft.go:318 +0x7e fp=0xc00b0e9fb8 sp=0xc00b0e9f70 pc=0xdebabe
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc00b0e9fc0 sp=0xc00b0e9fb8 pc=0x460ca1
created by github.com/dgraph-io/dgraph/worker.(*node).applyMutations
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/worker/draft.go:317 +0x9c7

goroutine 1 [semacquire, 15 minutes]:
sync.runtime_Semacquire(0xc0003fc2d8)
        c:/go/src/runtime/sema.go:56 +0x49
sync.(*WaitGroup).Wait(0xc0003fc2d0)
        c:/go/src/sync/waitgroup.go:130 +0x6b
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.setupServer()
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:419 +0x82b
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run()
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:565 +0xd88
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1(0xc0000d6b40, 0xc000720160, 0x0, 0x1)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:87 +0x6d
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).execute(0xc0000d6b40, 0xc000720140, 0x1, 0x1, 0xc0000d6b40, 0xc000720140)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:702 +0x28c
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1c73b00, 0x0, 0x0, 0x0)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:783 +0x2d0
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).Execute(...)
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:736
github.com/dgraph-io/dgraph/dgraph/cmd.Execute()
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:68 +0x87
main.main()
        C:/Users/ashish/projects/src/github.com/dgraph-io/dgraph/dgraph/main.go:33 +0x9b
@animesh2049
Copy link
Author

animesh2049 commented Sep 19, 2019

Link to original Dgraph Issue: dgraph-io/dgraph#4020
Seems like a golang issue to me. Link to golang issues: golang/go#23279, golang/go#14631

@dgryski
Copy link
Owner

dgryski commented Sep 19, 2019

I think this is probably #1 . Having an actually failing decode input will help here.

@dgryski
Copy link
Owner

dgryski commented Sep 26, 2019

This was #1

@dgryski dgryski closed this as completed Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants