Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-609

Assert in messenger.py test causes core dump

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: proton-0.7
    • Fix Version/s: None
    • Component/s: proton-c
    • Labels:
    • Environment:
      Windows or Linux

      Description

      This assert:

      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
      

      causes a core dump in NBMessengerTest.teardown when the code tries to stop the client. A user may work around this issue by

      +      if msgr.outgoing > 0:
      +        msgr.settle()
      +      while msgr.incoming > 0:
      +        msgr.get()
      +      msgr.stop()
      

      when all he wants is msgr.stop().

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chug Chuck Rolke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: