Skip to content

JSON-RPC CRASH #3373

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

Closed
btcioner opened this issue Aug 28, 2020 · 0 comments · Fixed by #3618
Closed

JSON-RPC CRASH #3373

btcioner opened this issue Aug 28, 2020 · 0 comments · Fixed by #3618

Comments

@btcioner
Copy link

btcioner commented Aug 28, 2020

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Run '...'
  2. See error
created by main.watchMinerConn
	/home/test/lotus/cmd/lotus-seal-worker/main.go:401 +0x67

goroutine 71 [chan receive, 404 minutes]:
github.com/filecoin-project/go-jsonrpc.(*wsConn).handleCtxAsync(0xc000162180, 0x2387da0, 0xc000586690, 0x3)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:282 +0x60
created by github.com/filecoin-project/go-jsonrpc.(*wsConn).handleResponse
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:367 +0x45d

goroutine 32 [select, 7 minutes]:
github.com/filecoin-project/go-jsonrpc.(*wsConn).handleWsConn(0xc000530180, 0x2387da0, 0xc0003b5710)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:553 +0x46c
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handleWS(0xc000800510, 0x2387da0, 0xc0003b5710, 0x2383be0, 0xc0003c00e0, 0xc0006d4200)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/server.go:65 +0x2cf
github.com/filecoin-project/go-jsonrpc.(*RPCServer).ServeHTTP(0xc000800510, 0x2383be0, 0xc0003c00e0, 0xc0006d4200)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/server.go:79 +0xff
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000162300, 0x2383be0, 0xc0003c00e0, 0xc0006d4000)
	/home/test/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0xe2
github.com/filecoin-project/go-jsonrpc/auth.(*Handler).ServeHTTP(0xc000800f10, 0x2383be0, 0xc0003c00e0, 0xc000042100)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/auth/handler.go:47 +0x3e5
net/http.serverHandler.ServeHTTP(0xc0003c0000, 0x2383be0, 0xc0003c00e0, 0xc000042100)
	/snap/go/6274/src/net/http/server.go:2836 +0xa3
net/http.(*conn).serve(0xc0003f32c0, 0x2387ce0, 0xc000738600)
	/snap/go/6274/src/net/http/server.go:1924 +0x86c
created by net/http.(*Server).Serve
	/snap/go/6274/src/net/http/server.go:2962 +0x35c

goroutine 30 [chan receive, 404 minutes]:
main.glob..func2.3(0x2387ce0, 0xc0000c2000, 0xc0003c0000)
	/home/test/lotus/cmd/lotus-seal-worker/main.go:373 +0x60
created by main.glob..func2
	/home/test/lotus/cmd/lotus-seal-worker/main.go:372 +0x1575

goroutine 118 [select, 404 minutes]:
reflect.rselect(0xc0001a2800, 0x4, 0x4, 0xc0001a2800, 0x1)
	/snap/go/6274/src/runtime/select.go:544 +0x38a
reflect.Select(0xc0003cc000, 0x4, 0x4, 0x1, 0x2, 0xc00022d3d0, 0x1, 0x2)
	/snap/go/6274/src/reflect/value.go:2236 +0x170
github.com/filecoin-project/go-jsonrpc.(*wsConn).handleOutChans(0xc000530180)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:167 +0x1fa
created by github.com/filecoin-project/go-jsonrpc.(*wsConn).handleChanOut.func1
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:254 +0x3e

goroutine 29 [runnable]:
github.com/filecoin-project/lotus/extern/sector-storage/stores.(*Local).reportHealth(0xc0006a4240, 0x2387ce0, 0xc0000c2000)
	/home/test/lotus/extern/sector-storage/stores/local.go:248 +0x608
created by github.com/filecoin-project/lotus/extern/sector-storage/stores.(*Local).open
	/home/test/lotus/extern/sector-storage/stores/local.go:229 +0x1ae

goroutine 9255 [runnable]:
net.(*OpError).Error(0xc0000ce050, 0x236a101, 0xc0000ce050)
	/snap/go/6274/src/net/net.go:461 +0x2b3
github.com/gorilla/websocket.hideTempErr(0x236a140, 0xc0000ce050, 0x236a140, 0xc0000ce050)
	/home/test/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:190 +0x95
github.com/gorilla/websocket.(*Conn).NextReader(0xc000338000, 0xbfca45e9c04570a4, 0x15ceaef3607e, 0x4307180, 0x0, 0x0)
	/home/test/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:982 +0x243
github.com/filecoin-project/go-jsonrpc.(*wsConn).nextMessage(0xc000162180)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:99 +0x56
created by github.com/filecoin-project/go-jsonrpc.(*wsConn).handleWsConn
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:607 +0x10da

goroutine 8261 [syscall, 63 minutes]:
github.com/filecoin-project/filecoin-ffi/generated._Cfunc_fil_seal_commit_phase2(0xc00ac7a000, 0x1afa0d4, 0x37, 0x14c0, 0x0, 0x0, 0x0, 0x0)
	_cgo_gotypes.go:1644 +0x51
github.com/filecoin-project/filecoin-ffi/generated.FilSealCommitPhase2(0xc000980000, 0x1afa0d4, 0x1afa0d4, 0x37, 0x14c0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/test/lotus/extern/filecoin-ffi/generated/generated.go:593 +0x171
github.com/filecoin-project/filecoin-ffi.SealCommitPhase2(0xc006880000, 0x1afa0d4, 0x1afa0d5, 0x37, 0xa40, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/test/lotus/extern/filecoin-ffi/proofs.go:395 +0x150
github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper.(*Sealer).SealCommit2(0xc000360120, 0x2387da0, 0xc0003ca060, 0xa40, 0x37, 0xc006880000, 0x1afa0d4, 0x1afa0d5, 0x70, 0xc00014b0f0, ...)
	/home/test/lotus/extern/sector-storage/ffiwrapper/sealer_cgo.go:515 +0x63
github.com/filecoin-project/lotus/extern/sector-storage.(*LocalWorker).SealCommit2(0xc000738280, 0x2387da0, 0xc0003ca060, 0xa40, 0x37, 0xc006880000, 0x1afa0d4, 0x1afa0d5, 0x0, 0x0, ...)
	/home/test/lotus/extern/sector-storage/localworker.go:169 +0x11a
reflect.Value.call(0x2053d60, 0xc000658150, 0x3613, 0x209e1ed, 0x4, 0xc00063e000, 0x3, 0x3, 0x5, 0x1eb0601, ...)
	/snap/go/6274/src/reflect/value.go:460 +0x8ab
reflect.Value.Call(0x2053d60, 0xc000658150, 0x3613, 0xc00063e000, 0x3, 0x3, 0x5, 0x1, 0x18)
	/snap/go/6274/src/reflect/value.go:321 +0xb4
github.com/filecoin-project/go-jsonrpc/auth.PermissionedProxy.func1(0xc00063e000, 0x3, 0x3, 0xc00063e000, 0x1ef2e60, 0x11)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/auth/auth.go:62 +0x537
reflect.callReflect(0xc0006c7050, 0xc00014b5d8, 0xc00014b5c0)
	/snap/go/6274/src/reflect/value.go:549 +0x322
reflect.makeFuncStub(0x2387da0, 0xc0003ca060, 0xa40, 0x37, 0xc006880000, 0x1afa0d4, 0x1afa0d5, 0xc0003ca060, 0xc00014b6c8, 0x5f635c, ...)
	/snap/go/6274/src/reflect/asm_amd64.s:20 +0x42
github.com/filecoin-project/lotus/api/apistruct.(*WorkerStruct).SealCommit2(0xc000394750, 0x2387da0, 0xc0003ca060, 0xa40, 0x37, 0xc006880000, 0x1afa0d4, 0x1afa0d5, 0x0, 0x0, ...)
	/home/test/lotus/api/apistruct/struct.go:1202 +0x86
reflect.Value.call(0xc0006c8900, 0xc000658508, 0x13, 0x209e1ed, 0x4, 0xc0003ba000, 0x4, 0x4, 0x54a8ff, 0x1ef2e60, ...)
	/snap/go/6274/src/reflect/value.go:460 +0x8ab
reflect.Value.Call(0xc0006c8900, 0xc000658508, 0x13, 0xc0003ba000, 0x4, 0x4, 0x1ef2e60, 0xc000554000, 0x197)
	/snap/go/6274/src/reflect/value.go:321 +0xb4
github.com/filecoin-project/go-jsonrpc.doCall(0xc000320080, 0x14, 0xc0006c8900, 0xc000658508, 0x13, 0xc0003ba000, 0x4, 0x4, 0x0, 0x0, ...)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:130 +0xdc
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handle(0xc000800510, 0x2387da0, 0xc0003ca000, 0xc0006a6008, 0x3, 0xc0006a6010, 0xc000320080, 0x14, 0xc000530240, 0x2, ...)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:221 +0xe4c
created by github.com/filecoin-project/go-jsonrpc.(*wsConn).handleCall
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:421 +0x2a8

goroutine 9233 [runnable]:
github.com/filecoin-project/go-jsonrpc.(*wsConn).nextMessage(0xc000530180)
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:99 +0x56
created by github.com/filecoin-project/go-jsonrpc.(*wsConn).handleWsConn
	/home/test/go/pkg/mod/github.com/filecoin-project/[email protected]/websocket.go:607 +0x10da

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version (run lotus version):
v0.5.4
Additional context
Add any other context about the problem here.

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

Successfully merging a pull request may close this issue.

1 participant