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

Obscure crash (memory corruption) in local sort whilst serializing stats.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 7.12.104, 8.6.24, 8.4.42, 8.2.62
    • Thor
    • None

    Description

      This change, https://track.hpccsystems.com/browse/HPCC-23975 (merged into 7.10.0), introduced a window where the activity could stop and clear an object (iLoader), whilst the serialization code was still using it.
      Related - the mergeStats helpers were inadvertently taking a copy of the shared object, and in so doing so linking (and later releasing) - see: HPCC-27606

      Combined with this bug, it could cause heap corruption if the serializeStats call was linking as the stop() thread was destroying the object.

      Fix is to ensure the iLoader.clear() is inside the critical section.

      Attachments

        Issue Links

          Activity

            People

              jakesmith Jake Smith
              jakesmith Jake Smith
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: