This looks like fallout of the 1.14 changes that made Goroutines
preemptively schedulable.
It seems likely that this code hasn't worked before either, just that
the failure cases were masked because less signals got delivered (and
thus had less chance of interrupting system calls).
On 26.02.20 12:34, Peter Kleiweg wrote:
This is with go version go1.14 linux/amd64
Op woensdag 26 februari 2020 12:33:05 UTC+1 schreef Peter Kleiweg:
With Go version 1.14 I get a lot of errors when I run:
go test -v github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
I didn't see this with Go 1.13.8 or any earlier version.
Is this a problem with Go 1.14, or am I doing something wrong and
just got lucky until now?
How do I debug this? The errors are different for each run. Below
is a sample of some errors.
Line numbers are not always accurate, because I inserted some
calls to test.Log().
=== RUN TestSocketEvent
TestSocketEvent: socketevent_test.go:73: rep.Bind:
interrupted system call
=== RUN TestMultipleContexts
TestMultipleContexts: zmq4_test.go:131: sock1.Connect:
interrupted system call
freeze:
=== RUN TestMultipleContexts
^CFAIL github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
30.226s
freeze:
=== RUN TestMultipleContexts
TestMultipleContexts: zmq4_test.go:148: sock1.RecvMessage:
expected <nil> [tcp://127.0.0.1:9997 <http://127.0.0.1:9997>
tcp://127.0.0.1:9997 <http://127.0.0.1:9997>], got interrupted
system call []
^CFAIL github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
21.445s
freeze:
=== RUN TestSecurityCurve
^CFAIL github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
31.143s
freeze:
=== RUN TestSecurityNull
TestSecurityNull: zmq4_test.go:1753: server.Recv 1:
resource temporarily unavailable
^CFAIL github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
44.828s
=== RUN TestDisconnectInproc
TestDisconnectInproc: zmq4_test.go:523: Poll: interrupted
system call
TestDisconnectInproc: zmq4_test.go:623: isSubscribed
=== RUN TestHwm
TestHwm: zmq4_test.go:823: bind_socket.Bind: interrupted
system call
TestHwm: zmq4_test.go:1044: test_inproc_bind_first(0, 0):
expected 10000, got -1
freeze:
=== RUN TestSecurityPlain
^CFAIL github.com/pebbe/zmq4 <http://github.com/pebbe/zmq4>
46.395s
=== RUN TestPairIpc
TestPairIpc: zmq4_test.go:1124: client.Send
SNDMORE|DONTWAIT: interrupted system call
--
You received this message because you are subscribed to the Google
Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to golang-nuts+unsubscr...@googlegroups.com
<mailto:golang-nuts+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/cdb7319d-542a-45ab-842b-bc1b5d838e93%40googlegroups.com
<https://groups.google.com/d/msgid/golang-nuts/cdb7319d-542a-45ab-842b-bc1b5d838e93%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
--
Gregor Best
b...@pferdewetten.de
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/09df487b-31c2-11a5-4195-1968fb5a7f8e%40pferdewetten.de.