Discussion:
[zeromq-dev] about Assertion failed: !more (src/fq.cpp:117): just remove the assertion?
zmqdev
2016-10-20 07:11:55 UTC
Permalink
Hi,

Ranjeet Kumar described his troubles with the assertion in

http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030839.html

According to

http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030851.html

he apparently solved his problem by commenting the assertion out.

1. Could someone who understands that part of the code advise on the
safety of removing that assertion?

2. Is the assertion even correct?

Thanks
Doron Somech
2016-10-20 12:28:15 UTC
Permalink
It don't think it is correct, there might be an issue we need to solve.

The workaround is not to use multi-part messages...
Post by zmqdev
Hi,
Ranjeet Kumar described his troubles with the assertion in
http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030839.html
According to
http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030851.html
he apparently solved his problem by commenting the assertion out.
1. Could someone who understands that part of the code advise on the safety
of removing that assertion?
2. Is the assertion even correct?
Thanks
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Doron Somech
2016-10-20 12:31:11 UTC
Permalink
Also I think it smells like using socket from multiple threads...
Post by Doron Somech
It don't think it is correct, there might be an issue we need to solve.
The workaround is not to use multi-part messages...
Post by zmqdev
Hi,
Ranjeet Kumar described his troubles with the assertion in
http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030839.html
According to
http://lists.zeromq.org/pipermail/zeromq-dev/2016-September/030851.html
he apparently solved his problem by commenting the assertion out.
1. Could someone who understands that part of the code advise on the safety
of removing that assertion?
2. Is the assertion even correct?
Thanks
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
zmqdev
2016-10-20 12:46:02 UTC
Permalink
Post by Doron Somech
Also I think it smells like using socket from multiple threads...
unfortunately no, the assertion strikes in a single thread application.

See also the test case at

https://github.com/zeromq/libzmq/issues/2163
Post by Doron Somech
Post by Doron Somech
It don't think it is correct, there might be an issue we need to solve.
The workaround is not to use multi-part messages...
I like multi-part messages!

The workaround would require me to do the framing myself, which would be
tricky, considering the advanced state of the application.


Thanks anyway.
Doron Somech
2016-10-20 13:46:23 UTC
Permalink
I actually those are different issues. If you suffer from the pubsub
issue, I think I trace the bug and have a solution. Take a look at the
issue. If you suffer from the 100K issue, I think that is a different
one, anyway you can try the solution as well. It might be related to
another pipe.terminate call
Post by zmqdev
Post by Doron Somech
Also I think it smells like using socket from multiple threads...
unfortunately no, the assertion strikes in a single thread application.
See also the test case at
https://github.com/zeromq/libzmq/issues/2163
Post by Doron Somech
Post by Doron Somech
It don't think it is correct, there might be an issue we need to solve.
The workaround is not to use multi-part messages...
I like multi-part messages!
The workaround would require me to do the framing myself, which would be
tricky, considering the advanced state of the application.
Thanks anyway.
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
zmqdev
2016-10-20 13:56:41 UTC
Permalink
Post by Doron Somech
I actually those are different issues. If you suffer from the pubsub
issue, I think I trace the bug and have a solution. Take a look at the
issue. If you suffer from the 100K issue, I think that is a different
one, anyway you can try the solution as well. It might be related to
another pipe.terminate call
just tweaked the test case of issue 2163 for a message with a single frame.

No assertion, the program completes.

There seems to be something broken in PUB -> SUB, multi-part messages,
and zmq_disconnect.
Doron Somech
2016-10-20 13:58:05 UTC
Permalink
Try compile zeromq with the tweak I suggested and the multipart test case.
Post by zmqdev
Post by Doron Somech
I actually those are different issues. If you suffer from the pubsub
issue, I think I trace the bug and have a solution. Take a look at the
issue. If you suffer from the 100K issue, I think that is a different
one, anyway you can try the solution as well. It might be related to
another pipe.terminate call
just tweaked the test case of issue 2163 for a message with a single frame.
No assertion, the program completes.
There seems to be something broken in PUB -> SUB, multi-part messages, and
zmq_disconnect.
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Loading...