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

Segfault in core_client_api.c on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.18.0
    • Backlog
    • Router Node
    • None

    Description

      Hard to reproduce - I hit this only due to a buggy patch I was working on but seems legit:

      During shutdown qdr_core_free() cleans up any outstanding endpoint clients.  This results in any outstanding core client RPC calls to be cancelled by invoking the "free request" logic which invokes the "request done" client handler with the error parameter set to "link detach".

      In the case of the edge router client address lookup module, the error is ignored and the client assumes the request was successful.  At this point it attempts to process the request which results in a segfault.

      We need to audit all the core client "request done" callbacks to make sure the error flag is being checked and properly handled.

      See backtrace in attachment

       

      Attachments

        1. NEW_BUG.txt
          3 kB
          Ken Giusti

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: