Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-826

Specifying an invalid host on the connector crashes the router

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • Container
    • None

    Description

      Grab the latest code from dispatch/proton and compile

      Use the following config file to start the router (note that the host specified in the connector - some-host - is invalid)

      router {
          mode: interior
          id: Router.B
      }
      
      connector {
         host: some-host
         port: amqp
         role: normal
      }
       
      listener {
          host: 0.0.0.0
          port: 5677
          authenticatePeer: no
          saslMechanisms: ANONYMOUS
      }
      
      

      The router crashes trying to make a connection to some-host. The following is the router output

      2017-09-12 16:49:11.564882 -0400 ROUTER_CORE (info) In-process subscription L/qdrouter
      2017-09-12 16:49:11.564886 -0400 ROUTER_CORE (info) In-process subscription L/qdrouter.ma
      2017-09-12 16:49:11.564891 -0400 ROUTER_CORE (info) In-process subscription T/qdrouter
      2017-09-12 16:49:11.564894 -0400 ROUTER_CORE (info) In-process subscription T/qdrouter.ma
      2017-09-12 16:49:11.564897 -0400 ROUTER (info) Router Engine Instantiated: id=Router.B instance=1505249351 max_routers=128
      2017-09-12 16:49:11.564900 -0400 ROUTER_CORE (info) In-process subscription L/qdhello
      2017-09-12 16:49:11.572411 -0400 AGENT (info) Activating management agent on $_management_internal
      2017-09-12 16:49:11.572441 -0400 ROUTER_CORE (info) In-process subscription L/$_management_internal
      2017-09-12 16:49:11.572803 -0400 CONN_MGR (info) Configured Listener: 0.0.0.0:5677 proto=any, role=normal
      2017-09-12 16:49:11.573453 -0400 CONN_MGR (info) Configured Connector: some-host:amqp proto=any, role=normal
      2017-09-12 16:49:11.575571 -0400 POLICY (info) Policy configured maxConnections: 65535, policyDir: '', access rules enabled: 'false'
      2017-09-12 16:49:11.576401 -0400 POLICY (info) Policy fallback defaultVhost is defined: '$default'
      2017-09-12 16:49:11.576420 -0400 SERVER (notice) Operational, 4 Threads Running (process ID 20053)
      2017-09-12 16:49:11.576550 -0400 SERVER (notice) Listening on 0.0.0.0:5677
      [0x7f098400bc70]:  -> AMQP
      [0x7f098400bc70]:0 -> @open(16) [container-id=""]
      [0x7f098400bc70]:0 -> @close(24) [error=@error(29) [condition=:"proton:io", description="No address associated with hostname - connect to  some-host:5672"]]
      epoll proactor failure in /home/gmurthy/opensource/qpid-proton/proton-c/src/proactor/epoll.c:630: "arming polled file descriptor": No such file or directory
      Aborted (core dumped)
      

      Attachments

        Issue Links

          Activity

            People

              aconway Alan Conway
              gmurthy Ganesh Murthy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: