This is an archive of the discontinued LLVM Phabricator instance.

[ADT] IntervalTree - Random unittests failures in a debug build
ClosedPublic

Authored by CarlosAlbertoEnciso on Sep 28 2022, 6:10 AM.

Details

Summary

As reported by @antondaubert:

On a debug build with _LIBCPP_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY enabled from 100 executions around 80 are failing.

More details in https://reviews.llvm.org/D125776#3820399

The issue is related to the use of std::sort.

Diff Detail

Event Timeline

CarlosAlbertoEnciso requested review of this revision.Sep 28 2022, 6:10 AM
jryans accepted this revision.Sep 28 2022, 6:21 AM
jryans added a subscriber: jryans.

Thanks, looks good to me! 😄

This revision is now accepted and ready to land.Sep 28 2022, 6:21 AM
antondaubert accepted this revision.Sep 28 2022, 6:23 AM

Hmmm. Does that mean the sorted result is dependent on the order of insertion? If so, is that really what you want?

Hmmm. Does that mean the sorted result is dependent on the order of insertion? If so, is that really what you want?

No. I changed the insertion order in the largest test case and the results are the same.

Hmmm. Does that mean the sorted result is dependent on the order of insertion? If so, is that really what you want?

No. I changed the insertion order in the largest test case and the results are the same.

SGTM.

This revision was landed with ongoing or failed builds.Sep 28 2022, 9:20 PM
This revision was automatically updated to reflect the committed changes.