[ 
https://issues.apache.org/jira/browse/PROTON-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-609:
-------------------------------
    Labels: messenger  (was: )

> Assert in messenger.py test causes core dump
> --------------------------------------------
>
>                 Key: PROTON-609
>                 URL: https://issues.apache.org/jira/browse/PROTON-609
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.7
>         Environment: Windows or Linux
>            Reporter: Chuck Rolke
>              Labels: messenger
>
> This assert:
> {noformat}
> Index: tests/python/proton_tests/messenger.py
> ===================================================================
> --- tests/python/proton_tests/messenger.py    (revision 1602460)
> +++ tests/python/proton_tests/messenger.py    (working copy)
> @@ -843,6 +843,7 @@
>      msg2 = Message()
>      msg2.address = self.address + "/msg2"
>      self.client.put(msg2)
> +    assert False, "Whoops!"
>      self.pump()
>      assert self.server.incoming == 1, self.server.incoming
>      assert self.server.receiving == 8, self.server.receiving
> {noformat}
> causes a core dump in NBMessengerTest.teardown when the code tries to stop 
> the client. A user may work around this issue by
> {noformat}
> +      if msgr.outgoing > 0:
> +        msgr.settle()
> +      while msgr.incoming > 0:
> +        msgr.get()
> +      msgr.stop()
> {noformat}
> when all he wants is msgr.stop().



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

Reply via email to