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
runtime: SIGBUS occurred during slice append #29208
Comments
this sigbus occurred during 2000 concurrent compute executing |
Strange. Any chance this is reproducible? If so, could you try a different kernel? |
Please kindly fill the complete issue template. Specifically, it would help if you can tell us whether the issue occurs with 1.10 too. And also kindly mention the steps for us the reproduce the issue, preferably with a self-contained code sample. And a code paste is always preferred than a screenshot. It is practically impossible to copy the code from the screenshot. |
compute.tar.gz |
|
these are client codes. |
this is the file used in the client |
you can run the server code ,listening port num:8089 |
run the client to send messages for several times. the bug will occur randomly. |
|
here is the server bug code. |
Without the full code for the server so I can rebuild it, it's hard to debug. |
type implementation struct { func (s *implementation) Release() error { func (s *implementation) Acquire() error {
} func NewSemaphore(tickets int, timeout time.Duration) ISemaphore { |
case <-time.After(s.timeout) this line will cause mem leak........why?? |
Hi @templarzq - It would be great if you can provide us a fully self contained program to reproduce the crash on our side and debug this. What you are showing us is just a snippet of a larger codebase. |
sorry,this is a business project . u can reproduce that by using timeAfter and setting the timeout to INTMAX, then calling this function many times. |
Thanks. Upto @randall77 and folks to take it forward. |
I'm going to close this as not actionable. Without source there's no way to debug on this end. Please reopen if you can provide source, or provide more information below.
|
go version 1.11.1
system: linux centos 7.2.1511
unexpected fault address 0xecc6a02000
148734 fatal error: fault
148735 [signal SIGBUS: bus error code=0x2 addr=0xecc6a02000 pc=0x458641]
148736
148737 goroutine 15317 [running]:
148738 runtime.throw(0x8794cf, 0x5)
148739 E:/software/golang/go/src/runtime/panic.go:608 +0x72 fp=0xc04af8cd50 sp=0xc04af8cd20 pc=0x42a762
148740 runtime.sigpanic()
148741 E:/software/golang/go/src/runtime/signal_unix.go:387 +0x2d7 fp=0xc04af8cda0 sp=0xc04af8cd50 pc=0x43f4e7
148742 runtime.memmove(0xecc6a02000, 0xecc683c7c0, 0x20)
148743 E:/software/golang/go/src/runtime/memmove_amd64.s:180 +0x151 fp=0xc04af8cda8 sp=0xc04af8cda0 pc=0x458641
148744 runtime.growslice(0x7ddba0, 0xecc683c7c0, 0x4, 0x4, 0x5, 0xecc683c7c0, 0x2, 0x4)
148745 E:/software/golang/go/src/runtime/slice.go:198 +0x240 fp=0xc04af8ce10 sp=0xc04af8cda8 pc=0x4407c0
148746 ElasticComputeEngine/ComputeTaskHandler/Operations.(*Op_DiscreteRatio).Compute(0xc001874c60, 0x893a60, 0xc001874c60)
148747 F:/project/goproj/GOPATH/src/ElasticComputeEngine/ComputeTaskHandler/Operations/Op_DiscreteRatio.go:205 +0xc76 fp=0xc04af8cfb0 sp=0xc04af8ce10 pc=0x74ee06
148748 ElasticComputeEngine/ComputeTaskHandler/Operations.(*Op_DiscreteRatio).Receive.func1(0xc001874c60)
148749 F:/project/goproj/GOPATH/src/ElasticComputeEngine/ComputeTaskHandler/Operations/Op_DiscreteRatio.go:93 +0x51 fp=0xc04af8cfd8 sp=0xc04af8cfb0 pc=0x7589f1
148750 runtime.goexit()
148751 E:/software/golang/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc04af8cfe0 sp=0xc04af8cfd8 pc=0x457411
148752 created by ElasticComputeEngine/ComputeTaskHandler/Operations.(*Op_DiscreteRatio).Receive
148753 F:/project/goproj/GOPATH/src/ElasticComputeEngine/ComputeTaskHandler/Operations/Op_DiscreteRatio.go:87 +0x51f
148754
148755 goroutine 1 [chan receive, 1501 minutes]:
148756 main.main()148757 F:/project/goproj/GOPATH/src/ElasticComputeEngine/main.go:39 +0x2c0
148758148759 goroutine 5 [chan receive, 1501 minutes]:
148760 github.com/AsynkronIT/protoactor-go/log.(*ioLogger).listenEvent(0xc0000b6150)
148761 F:/project/goproj/GOPATH/src/github.com/AsynkronIT/protoactor-go/log/string_encoder.go:31 +0x75
148762 created by github.com/AsynkronIT/protoactor-go/log.init.0
148763 F:/project/goproj/GOPATH/src/github.com/AsynkronIT/protoactor-go/log/string_encoder.go:26 +0x107
148764
148765 goroutine 6 [syscall, 1501 minutes]:
148766 os/signal.signal_recv(0x0)
148767 E:/software/golang/go/src/runtime/sigqueue.go:139 +0x9c
148768 os/signal.loop()
148769 E:/software/golang/go/src/os/signal/signal_unix.go:23 +0x22
148770 created by os/signal.init.0
148771 E:/software/golang/go/src/os/signal/signal_unix.go:29 +0x41
148772
148773 goroutine 10 [IO wait, 2 minutes]:
148774 internal/poll.runtime_pollWait(0x7fe805961f00, 0x72, 0x0)
148775 E:/software/golang/go/src/runtime/netpoll.go:173 +0x66
148776 internal/poll.(*pollDesc).wait(0xc00019e098, 0x72, 0xdfd08c1500, 0x0, 0x0)
148777 E:/software/golang/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
148778 internal/poll.(*pollDesc).waitRead(0xc00019e098, 0xffffffffffffff00, 0x0, 0x0)
148779 E:/software/golang/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
148780 internal/poll.(*FD).Accept(0xc00019e080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
148781 E:/software/golang/go/src/internal/poll/fd_unix.go:384 +0x1a0
The text was updated successfully, but these errors were encountered: