[ 
https://issues.apache.org/jira/browse/QPID-6107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139284#comment-14139284
 ] 

Darryl L. Pierce commented on QPID-6107:
----------------------------------------

An interesting discovery: if, in spout, if I comment out where it prints the 
message sent, the error doesn't happen at all and I can send way more messages:

^_^ [J:0/1092] mcpierce@mcpierce-laptop:cmake (master*) $ git diff
diff --git a/qpid/cpp/bindings/qpid/examples/python/spout 
b/qpid/cpp/bindings/qpid/examples/python/spout
index 48921d4..0f24016 100755
--- a/qpid/cpp/bindings/qpid/examples/python/spout
+++ b/qpid/cpp/bindings/qpid/examples/python/spout
@@ -130,7 +130,7 @@ try:
 
     snd.send(msg)
     count += 1
-    print msg
+    # print msg
 except SendError, e:
   print e
 except KeyboardInterrupt:


^_^ [J:0/509] mcpierce@mcp-ubuntu14:debian-qpid-cpp (master) $ sudo service 
qpidd stop; sudo service qpidd start; python 
/usr/share/doc/python-qpid-messaging/examples/python/spout --count 30000 
"my-queue;{create:always,delete:receiver}"
   ...done.


> Python Swig wrapped bindings consistently fail with spout and drain
> -------------------------------------------------------------------
>
>                 Key: QPID-6107
>                 URL: https://issues.apache.org/jira/browse/QPID-6107
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client (Wrapped)
>            Reporter: Darryl L. Pierce
>            Assignee: Darryl L. Pierce
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to