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

[c] Proactor: MacOSX/FreeBSD libuv proactor unit test fails with libuv 1.41

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • proton-c

    Description

      Simplest reproducer:

      $ PN_LOG=debug gdb --args ./c/tests/c-proactor-test proactor_connect
      (gdb) r
      Starting program: /usr/home/andrew/qpid-proton/bld/c/tests/c-proactor-test proactor_connect
      [0x8003a00e0]:EVENT:DEBUG:[0x800d6d000]:(PN_LISTENER_OPEN)
      [0x800da51d0]:EVENT:DEBUG:(PN_CONNECTION_INIT, pn_connection<0x800d81290>)
      [0x800da51d0]:EVENT:DEBUG:(PN_CONNECTION_LOCAL_OPEN, pn_connection<0x800d81290>)
      [0x800da51d0]:EVENT:DEBUG:(PN_CONNECTION_BOUND, pn_connection<0x800d81290>)
      [0x8003a00e0]:EVENT:DEBUG:[0x800d6d000]:(PN_LISTENER_ACCEPT)
      [0x800da5390]:EVENT:DEBUG:(PN_CONNECTION_INIT, pn_connection<0x800d813d0>)
      [0x800da5390]:EVENT:DEBUG:(PN_CONNECTION_BOUND, pn_connection<0x800d813d0>)
      [0x800da51d0]:EVENT:DEBUG:(PN_TRANSPORT_TAIL_CLOSED, pn_transport<0x800da51d0>)
      [0x800da51d0]:EVENT:DEBUG:(PN_TRANSPORT_ERROR, pn_transport<0x800da51d0>)
      
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      c-proactor-test is a Catch v1.12.2 host application.
      Run with -? for options
      
      -------------------------------------------------------------------------------
      proactor_connect
      -------------------------------------------------------------------------------
      /home/andrew/qpid-proton/src/c/tests/proactor_test.cpp:138
      ...............................................................................
      
      /home/andrew/qpid-proton/src/c/tests/proactor_test.cpp:145: FAILED:
        CHECKED_IF( (PN_TRANSPORT_CLOSED) == (p).run(PN_TRANSPORT_CLOSED) )
      with expansion:
        PN_TRANSPORT_CLOSED == PN_TRANSPORT_ERROR
      
      /home/andrew/qpid-proton/src/c/tests/proactor_test.cpp:145: FAILED:
      explicitly with message:
        pn_condition{"proton:io", "connection already in progress - read :55624"}
      
      ===============================================================================
      test cases: 1 | 1 failed
      assertions: 3 | 1 passed | 2 failed
      
      [Inferior 1 (process 50316) exited with code 02]
      

      This test passes fine with libuv 1.40. At this point it is unclear whether it is a bug with libuv or with Proton.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              astitcher Andrew Stitcher
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: