Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-26159

Fix teardown crash in qhttp unit test

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:
      None

      Description

      There has been for some time an intermittent crasher that occurs sometimes during teardown of the boost::unit unit test for qhttp (testqhttp).

      Andy Salnikov recently obtained a repeatable failure and extracted a core; investigation of this indicated the problem is occurs as a bad object dereference in a race between the asio service teardown in one thread and a socket accept handler executing on the service handler thread.

        Attachments

          Activity

          Hide
          fritzm Fritz Mueller added a comment -

          Hi Igor, could you please take a look at this? It is small.

          This addresses the intermittent fail in the qhttp unit test.

          Show
          fritzm Fritz Mueller added a comment - Hi Igor, could you please take a look at this? It is small. This addresses the intermittent fail in the qhttp unit test.
          Hide
          gapon Igor Gaponenko added a comment -

          Looks good to me!

          Show
          gapon Igor Gaponenko added a comment - Looks good to me!

            People

            Assignee:
            fritzm Fritz Mueller
            Reporter:
            fritzm Fritz Mueller
            Reviewers:
            Igor Gaponenko
            Watchers:
            Fritz Mueller, Igor Gaponenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: