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

Description

This change, https://hpccsystems.atlassian.net/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.

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Created May 5, 2022 at 9:53 AM
Updated May 9, 2022 at 9:08 AM
Resolved May 9, 2022 at 8:59 AM

Flag notifications