Skip to content

czmq selftests hang or die with zeromq-2 #1825

@jimklimov

Description

@jimklimov

Several czmq selftests just do not pass with zeromq-2, some others time out over the limit Travis CI gives to the job (10 minutes of quietness in the log, 30 minutes overall).

If the corresponding features are not supported in the old zeromq release, they should get excluded from the test (e.g. like zproc skips itself for zeromq older than v4). If they are expected to work, these tests and/or https://github.com/zeromq/zeromq2-x Git HEAD codebase should be fixed, I guess.

  • zbeacon takes 17 minutes of quiet to end (not sure if it just timed out or was really "OK"):
$ ./src/czmq_selftest -v -t zbeacon
Running czmq test 'zbeacon'...
 * zbeacon: 
I: 17-12-28 11:12:32 zbeacon: API command=CONFIGURE
I: 17-12-28 11:12:32 zbeacon: interface=eth0 address=192.168.56.74 broadcast=192.168.56.255
I: 17-12-28 11:12:32 zbeacon: configured, hostname=192.168.56.74
I: 17-12-28 11:12:32 zbeacon: API command=CONFIGURE
I: 17-12-28 11:12:32 zbeacon: interface=eth0 address=192.168.56.74 broadcast=192.168.56.255
I: 17-12-28 11:12:32 zbeacon: configured, hostname=192.168.56.74
I: 17-12-28 11:12:32 zbeacon: API command=PUBLISH
I: 17-12-28 11:12:32 zbeacon: API command=SUBSCRIBE
I: 17-12-28 11:12:32 zbeacon: API command=$TERM
I: 17-12-28 11:12:32 zbeacon: API command=$TERM
OK

$ date
Thu Dec 28 11:29:21 UTC 2017
  • zgossip : assertion fails
$ time ./src/czmq_selftest -v -t zgossip
Running czmq test 'zgossip'...
 * zgossip: 
D: 17-12-28 11:31:36 server:     API command=BIND
D: 17-12-28 11:31:37    310:server                           : start:
D: 17-12-28 11:31:37    310:server                           :     HELLO
D: 17-12-28 11:31:37    310:server                           :         $ get first tuple
D: 17-12-28 11:31:37    310:server                           :         > have tuple
D: 17-12-28 11:31:37    310:server                           : have tuple:
D: 17-12-28 11:31:37    310:server                           :     finished
D: 17-12-28 11:31:37    310:server                           :         > connected
D: 17-12-28 11:31:37    310:server                           : connected:
D: 17-12-28 11:31:37    310:server                           :     PING
D: 17-12-28 11:31:37    310:server                           :         $ send PONG
D: 17-12-28 11:31:37    310:server                           :         > connected
D: 17-12-28 11:31:37 server:     API command=$TERM
D: 17-12-28 11:31:37 base:     API command=SET
D: 17-12-28 11:31:37 base:     API command=BIND
D: 17-12-28 11:31:37    886:base                             : start:
D: 17-12-28 11:31:37    886:base                             :     HELLO
D: 17-12-28 11:31:37    886:base                             :         $ get first tuple
D: 17-12-28 11:31:37    886:base                             :         > have tuple
D: 17-12-28 11:31:37    886:base                             : have tuple:
D: 17-12-28 11:31:37    886:base                             :     finished
D: 17-12-28 11:31:37    886:base                             :         > connected
D: 17-12-28 11:31:37    886:base                             : connected:
D: 17-12-28 11:31:37    886:base                             :     PUBLISH
D: 17-12-28 11:31:37    886:base                             :         $ store tuple if new
D: 17-12-28 11:31:37    886:base                             : connected:
D: 17-12-28 11:31:37    886:base                             :     forward
D: 17-12-28 11:31:37    886:base                             :         $ get tuple to forward
D: 17-12-28 11:31:37    886:base                             :         $ send PUBLISH
D: 17-12-28 11:31:37    886:base                             :         > connected
D: 17-12-28 11:31:37    886:base                             :         > connected
D: 17-12-28 11:31:37    886:base                             : connected:
D: 17-12-28 11:31:37    886:base                             :     PUBLISH
D: 17-12-28 11:31:37    886:base                             :         $ store tuple if new
D: 17-12-28 11:31:37    886:base                             : connected:
D: 17-12-28 11:31:37    886:base                             :     forward
D: 17-12-28 11:31:37    886:base                             :         $ get tuple to forward
D: 17-12-28 11:31:37    886:base                             :         $ send PUBLISH
D: 17-12-28 11:31:37    886:base                             :         > connected
D: 17-12-28 11:31:37    886:base                             :         > connected
D: 17-12-28 11:31:37    886:base                             : connected:
D: 17-12-28 11:31:37    886:base                             :     expired
D: 17-12-28 11:31:37    886:base                             :         $ terminate
D: 17-12-28 11:31:37    887:base                             : start:
D: 17-12-28 11:31:37    887:base                             :     HELLO
D: 17-12-28 11:31:37    887:base                             :         $ get first tuple
D: 17-12-28 11:31:37    887:base                             :         > have tuple
D: 17-12-28 11:31:37    887:base                             : have tuple:
D: 17-12-28 11:31:37    887:base                             :     ok
D: 17-12-28 11:31:37    887:base                             :         $ send PUBLISH
D: 17-12-28 11:31:37    887:base                             :         $ get next tuple
D: 17-12-28 11:31:37    887:base                             :         > have tuple
D: 17-12-28 11:31:37    887:base                             : have tuple:
D: 17-12-28 11:31:37    887:base                             :     ok
D: 17-12-28 11:31:37    887:base                             :         $ send PUBLISH
D: 17-12-28 11:31:37    887:base                             :         $ get next tuple
D: 17-12-28 11:31:37    887:base                             :         > have tuple
D: 17-12-28 11:31:37    887:base                             : have tuple:
D: 17-12-28 11:31:37    887:base                             :     finished
D: 17-12-28 11:31:37    887:base                             :         > connected
lt-czmq_selftest: src/zgossip.c:572: zgossip_test: Assertion `(!strcmp ((key), ("inproc://alpha-2")))' failed.
Aborted

real	0m0.531s
user	0m0.012s
sys	0m0.004s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions