https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67626
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think the issue here is simply that ubsan isn't used to compile the code in libstdc++.so where the facets are created, so the vtable is not instrumented.