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

Crash when connection_wake ctx points to freed memory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: Router Node
    • Labels:
      None

      Description

      Test clients are streaming unsettled multicast messages to and from an edge router. Another client repeats the cycle "connect, receive one message from the stream, disconnect". Soon the edge router core dumps with:

      {{(gdb) bt
      #0 get_pconnection (c=0x9999999999999999) at /home/chug/git/qpid-proton/c/src/proactor/epoll.c:578
      #1 0x00007fc8c0582a1c in pn_connection_wake (c=0x9999999999999999) at /home/chug/git/qpid-proton/c/src/proactor/epoll.c:1439
      #2 0x00007fc8c0668472 in connection_wake (ctx=0x1a43658) at /home/chug/Downloads/qpid-dispatch-1.9.0/src/server.c:505
      #3 0x00007fc8c066b2af in qd_server_activate (ctx=0x1a43658) at /home/chug/Downloads/qpid-dispatch-1.9.0/src/server.c:1304
      #4 0x00007fc8c064f3dd in qdr_activate_connections_CT (core=0x19c8ce0) at /home/chug/Downloads/qpid-dispatch-1.9.0/src/router_core/router_core_thread.c:65
      #5 0x00007fc8c064fa1d in router_core_thread (arg=0x19c8ce0) at /home/chug/Downloads/qpid-dispatch-1.9.0/src/router_core/router_core_thread.c:171
      #6 0x00007fc8c056258e in start_thread () from /usr/lib64/libpthread.so.0
      #7 0x00007fc8c0201713 in clone () from /usr/lib64/libc.so.6
      (gdb) info threads
      Id Target Id Frame

      • 1 Thread 0x7fc8b1e44700 (LWP 21706) get_pconnection (c=0x9999999999999999) at /home/chug/git/qpid-proton/c/src/proactor/epoll.c:578
        2 Thread 0x7fc8bf8ff240 (LWP 21696) 0x00007fc8c0201a47 in epoll_wait () from /usr/lib64/libc.so.6
        3 Thread 0x7fc8b0e42700 (LWP 21708) 0x00007fc8c0201a47 in epoll_wait () from /usr/lib64/libc.so.6
        4 Thread 0x7fc8abfff700 (LWP 21709) 0x00007fc8c0201a47 in epoll_wait () from /usr/lib64/libc.so.6
        5 Thread 0x7fc8b1643700 (LWP 21707) 0x00007fc8c01f6481 in poll () from /usr/lib64/libc.so.6
        6 Thread 0x7fc8ab7fe700 (LWP 21710) 0x00007fc8c0201a47 in epoll_wait () from /usr/lib64/libc.so.6}}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmurthy Ganesh Murthy
                Reporter:
                chug Charles E. Rolke
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: