[PBDS] Rejuvenation
Oleksandr Kulkov
adamant.pwn@gmail.com
Thu Oct 29 23:24:40 GMT 2026
Okay, got it, very sorry to hear it's now also causing security issues, I
didn't consider it, but in retrospect it makes sense.
If that is the case, was there some particular input you were looking for
by pinging this thread, or perhaps there is something else I could help you
with on this?..
For example, Richard's comment was predicated on "If there are standard
library replacements", and I think that at least some of pb_ds things offer
something that can't be covered by the standard library.
If, say, I go over pb_ds running some fresh benchmarks and capability
comparison with the standard library, and it turns out that most of it can,
indeed, be retired, but some particular structures there offer some
meaningful enhancements (in performance or capability), would you be open
to preserve some individual pb_ds components, or are you set on getting rid
of it as a whole?
Oleksandr
On Thu, Oct 29, 2026 at 11:48 PM Jonathan Wakely <jwakely@redhat.com> wrote:
> On Thu, 29 Oct 2026 at 22:29, Oleksandr Kulkov <adamant.pwn@gmail.com>
> wrote:
> >
> > Hi Jonathan,
> >
> > Thanks for following up. I’ve added my thoughts here:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127690#c5
> >
> > I remember you mentioned on several occasions your plans to deprecate
> pb_ds, although I also see it haven't been done so far. I'm not sure how
> much effort I should be putting into it right now, could you maybe share
> your current vision: How strongly do you feel about retiring it, and what
> kind of contribution (if any), and on what timeline and scale do you see
> potentially steering your opinion into another direction?
>
> I am absolutely determined to retire it. It's been a frustration for
> years but having unmaintained and buggy code sitting around is now
> causing real problems and real maintenance burdens, e.g.
> CVE-2026-102010 <https://gcc.gnu.org/PR127656> required effort to fix
> in CentOS Stream and Red Hat Enterprise Linux, across a whole set of
> packages and OS versions. That was time I could have spent making real
> improvements to other parts of libstdc++, but instead I (and
> maintainers at Suse and Canonical and elsewhere) had to update
> packages due to a bug in code none of our customers ever care about.
> It needs to be removed from the GCC source tree ASAP so that we don't
> waste more time supporting this dead code.
>
> Clearly nobody was using the binary heap code, and the testsuite
> didn't cover it, because nobody noticed that the erase_if function was
> completely broken since day one. How much other pb_ds code is in the
> same situation? We don't know, and there's a real cost to keeping such
> code.
>
> > I really can't guarantee much of my personal involvement right now, esp.
> with GCC's current AI contribution policy forbidding any legally
> significant AI-assisted changes, but it would be nice to understand the
> situation a bit better.
>
> As you correctly say, AI-assisted code changes would not be acceptable
> under GCC's AI policy.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261030/7f7cb1e1/attachment.htm>
More information about the Libstdc++
mailing list