https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70112
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at ucw dot cz --- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Marek Behun from comment #2) Do you get these "invalid vptr" errors also when you compile without -flto? If yes, then you need to fix the bug they point to in Libreoffice. You can set a breakpoint at __ubsan::Diag::~Diag in gdb to get a backtrace. CCing Honza, who, I believe, builds Libreoffice regularly with -flto.