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

The high concurrency multi goroutine error occur, Because goroutine is insecure? #48

Open
xudianyang opened this issue Jun 30, 2019 · 0 comments

Comments

@xudianyang
Copy link

xudianyang commented Jun 30, 2019

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x11526f5]

runtime stack:
runtime.throw(0x1b7a492, 0x2a)
/usr/local/go/src/runtime/panic.go:617 +0x72
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:374 +0x4a9

goroutine 10967 [syscall]:
runtime.cgocall(0x114ffc0, 0xc0013947d0, 0x7fa4ac003d00)
/usr/local/go/src/runtime/cgocall.go:128 +0x5b fp=0xc0013947a0 sp=0xc001394768 pc=0x788c8b
git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/augustoroman/v8._Cfunc_v8_Value_Bool(0x2f43260, 0x7fa4ac002d10, 0x0)
_cgo_gotypes.go:379 +0x4d fp=0xc0013947d0 sp=0xc0013947a0 pc=0xf5bc0d
git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/augustoroman/v8.(*Value).Bool.func1(0xc0032e3820, 0x4)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/augustoroman/v8/v8.go:361 +0xa4 fp=0xc001394818 sp=0xc0013947d0 pc=0xf630b4
git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/augustoroman/v8.(*Value).Bool(0xc0032e3820, 0xc003168430)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/augustoroman/v8/v8.go:361 +0x2b fp=0xc001394838 sp=0xc001394818 pc=0xf5d9eb
git.chinawayltd.com/g7s-foundation/dfp-server/javascript/helpers.GetSpecifiedType(0x1ae8a60, 0xc0032e3820, 0x1, 0xc000106140, 0x20)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/javascript/helpers/kind.go:107 +0x193 fp=0xc0013948d0 sp=0xc001394838 pc=0x10976c3
git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater.(*Adapter).invokingFilterPlugin(0xc0031a08c0, 0x1ba1f18)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater/adapter.go:246 +0x353 fp=0xc001394a60 sp=0xc0013948d0 pc=0x1145493
git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater.(*Adapter).Push(0xc0031a08c0, 0xc000776420, 0xc0004d4d70)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater/adapter.go:726 +0xb9 fp=0xc001394ad0 sp=0xc001394a60 pc=0x114a239
git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater.(*repeater).push(0xc00001e0b0, 0xc000519d40, 0x24, 0x6c, 0x2b, 0xc002873560, 0x90, 0x0, 0x0, 0x0, ...)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater/achieve.go:319 +0x2f2 fp=0xc001394bb0 sp=0xc001394ad0 pc=0x1142bf2
git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater.(*repeater).DoWork.func1(0xc00001e0b0, 0xc000574000, 0xc0005b69c0, 0xc000519d40, 0x24, 0x6c, 0x2b, 0xc002873560, 0x90, 0x0, ...)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater/achieve.go:190 +0xf3 fp=0xc001394f48 sp=0xc001394bb0 pc=0x114c6b3
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc001394f50 sp=0xc001394f48 pc=0x7e2aa1
created by git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater.(*repeater).DoWork
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/services/repeater/achieve.go:186 +0x607

goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fa4c7304d20, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:182 +0x56
internal/poll.(*pollDesc).wait(0xc00011c098, 0x72, 0x0, 0x0, 0x1b5abaa)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x9b
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00011c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:384 +0x1ba
net.(*netFD).accept(0xc00011c080, 0xc00004a570, 0xc00004a500, 0x7919f9)
/usr/local/go/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc0004ca8d8, 0xc0004e3c08, 0xf013f1c5, 0xd7a42d7ce6d70c46)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).AcceptTCP(0xc0004ca8d8, 0xc0004e3c30, 0x84e646, 0x5d1859f6)
/usr/local/go/src/net/tcpsock.go:247 +0x48
net/http.tcpKeepAliveListener.Accept(0xc0004ca8d8, 0xc0004e3c80, 0x18, 0xc000000180, 0xa5ba84)
/usr/local/go/src/net/http/server.go:3264 +0x2f
net/http.(*Server).Serve(0xc0004d8b60, 0x1d15080, 0xc0004ca8d8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2859 +0x22d
net/http.(*Server).ListenAndServe(0xc0004d8b60, 0xc0004d8b60, 0xc000169de0)
/usr/local/go/src/net/http/server.go:2797 +0xe4
net/http.ListenAndServe(...)
/usr/local/go/src/net/http/server.go:3037
git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/gin-gonic/gin.(*Engine).Run(0xc000262900, 0xc000169e70, 0x1, 0x1, 0x0, 0x0)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/vendor/github.com/gin-gonic/gin/gin.go:294 +0x140
git.chinawayltd.com/g7s-foundation/dfp-server/vendor/git.chinawayltd.com/go-spec/tools/gin_app.(*GinApp).Start(0x29e1ca0)
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/vendor/git.chinawayltd.com/go-spec/tools/gin_app/gin.go:75 +0x218
git.chinawayltd.com/g7s-foundation/dfp-server/operations.Start()
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/operations/routes.go:45 +0x4d
main.main()
/go/src/git.chinawayltd.com/g7s-foundation/dfp-server/main.go:12 +0xb3

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

1 participant