https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117276
Bug ID: 117276 Summary: std::sort(par_unseq ,...) leaks memory when called repeatedly Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: oschonrock at gmail dot com Target Milestone: --- Created attachment 59418 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59418&action=edit code to reproduce problem Environment ----------- ubuntu 24.04 libstdc++ 13.2 from ubuntu repos but also 14.2 and judging by libstdc++ github mirror the latest head also has this problem sudo apt install libtbb-dev ## this is obviously required Problem ------- when calling `std::sort(std::execution::par_unseq` repeatedly it leaks memory, and will ultimately deplete the machine and get killed by the kernel. the attached