Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-23232

TLS objects on main thread not being cleaned up early enough

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.18
    • Component/s: EclAgent
    • Labels:
      None

      Description

      Eclagent has a QueryTerminationCleanup that's there to ensure that the TLS hooks are called before the query dll is unloaded.

      However QueryTerminationCleanup calls the hooks with isPooled=true, implying that the hooks should be kept and that the objects will be reused.

      In Eclagent that means that that any objects created in the main thread will not be deleted and will still exist until atexit, by which time the hook function in the shared library will not be valid. So it will cause a crash.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: