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

Interior router crash when edge receiver disconnects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • Routing Engine
    • None

    Description

      Running a single-host setup similar to system_tests_edge_router RouterTest. See config generator script gen_configs.py attached. The test case uses current proton cpp examples to generate traffic.

       

      1. ./gen_configs.py
      2. Start the routers by running ./run-ratchet.sh
      3. simple_recv -a amqp://127.0.0.1:21009/closest/foo -m 100000000
      4. simple_recv -a amqp://127.0.0.1:21012/closest/foo -m 100000000
      5. simple_send -a amqp://127.0.0.1:21009/closest/foo -m 100000000
      6. kill receiver on port 21009. This produces the core.

      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #1  0x00007f9ebbbb1d31 in __GI_abort () at abort.c:79
      {{#2  0x00007f9ebbba905a in __assert_fail_base (fmt=0x7f9ebbcf9580 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f9ebd0adf04 "(addr->rlinks).size == 1", }}
      {{    file=file@entry=0x7f9ebd0adb60 "/home/chug/git/qpid-dispatch/src/router_core/forwarder.c", line=line@entry=580, }}
          function=function@entry=0x7f9ebd0ae0b0 <_PRETTY_FUNCTION_.8725> "qdr_forward_closest_CT") at assert.c:92
      {{#3  0x00007f9ebbba90d2 in _GI__assert_fail (assertion=0x7f9ebd0adf04 "(addr->rlinks).size == 1", file=0x7f9ebd0adb60 "/home/chug/git/qpid-dispatch/src/router_core/forwarder.c", }}
          line=580, function=0x7f9ebd0ae0b0 <_PRETTY_FUNCTION_.8725> "qdr_forward_closest_CT") at assert.c:101
      #4  0x00007f9ebd07ea6e in qdr_forward_closest_CT (core=0x1f2b8a0, addr=0x7f9ea802ea60, msg=0x7f9ea409dd20, in_delivery=0x7f9ea40cb1e0, exclude_inprocess=false, control=false)
          at /home/chug/git/qpid-dispatch/src/router_core/forwarder.c:580
      #5  0x00007f9ebd07ffba in qdr_forward_message_CT (core=0x1f2b8a0, addr=0x7f9ea802ea60, msg=0x7f9ea409dd20, in_delivery=0x7f9ea40cb1e0, exclude_inprocess=false, control=false)
          at /home/chug/git/qpid-dispatch/src/router_core/forwarder.c:978
      #6  0x00007f9ebd08ce5d in qdr_link_forward_CT (core=0x1f2b8a0, link=0x7f9ea404fe60, dlv=0x7f9ea40cb1e0, addr=0x7f9ea802ea60, more=false)
          at /home/chug/git/qpid-dispatch/src/router_core/transfer.c:874
      #7  0x00007f9ebd08d7a5 in qdr_link_deliver_CT (core=0x1f2b8a0, action=0x7f9ea4100a60, discard=false) at /home/chug/git/qpid-dispatch/src/router_core/transfer.c:1066
      #8  0x00007f9ebd08648a in router_core_thread (arg=0x1f2b8a0) at /home/chug/git/qpid-dispatch/src/router_core/router_core_thread.c:116
      #9  0x00007f9ebc9ad50b in start_thread (arg=0x7f9eaea7c700) at pthread_create.c:465
      #10 0x00007f9ebbc7138f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

       

      Attachments

        1. gen_configs.py
          10 kB
          Charles E. Rolke

        Activity

          People

            gmurthy Ganesh Murthy
            chug Charles E. Rolke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: