Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In testing the packages [1] I have come across an interesting situation.
It first came up on Ubuntu trusty but then I was able to reproduce it on
F20.
If I send less than 2272 messages using the spout tool then things
success. But at 2273 then the Python bindings fail with:
Fatal Python error: deallocating None
Aborted (core dumped)
using the following command line:
$ python /usr/share/doc/python-qpid-messaging/examples/python/spout --count 2272 "my-queue;
{create:always,delete:receiver}"
I'm not sure why 2273 is the magic number. On Fedora the number seems to
be a little bit lower at 2269 before it starts to fail as on Debian.
On the other side, when I then drain the queue with:
$ python /usr/share/doc/python-qpid-messaging/examples/python/drain "my-queue"
I can't receive more than 1505 messages on Debian and 1503 on Fedora
before the same error occurs. To verify this I ran very specific spout
and drain situations with Python. On Debian I did:
$ sudo service qpidd stop; sudo service qpidd start; python /usr/share/doc/python-qpid-messaging/examples/python/spout --count 1505 "my-queue;
{create:always,delete:receiver}"
$ python /usr/share/doc/python-qpid-messaging/examples/python/drain "my-queue"
$ sudo service qpidd stop; sudo service qpidd start; python /usr/share/doc/python-qpid-messaging/examples/python/spout --count 1506 "my-queue;
{create:always,delete:receiver}"
$ python /usr/share/doc/python-qpid-messaging/examples/python/drain
"my-queue" > output.txtFatal Python error: deallocating None
Aborted (core dumped)
On Fedora I changed 1505/1506 to 1503/1504 and the output was
consistently the same.
[1] https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing/+packages