Lu’s blog · Jul 15, 2024
When `__cxa_pure_virtual` is just a different flavor of SEGFAULT
0Sign in to vote or save
This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
A program crashed during shutdown, with message pure virtual method called which came from __cxa_pure_virtual – where a pure virtual function points to, in its vtable. Its implementation involves calling std::terminate which calls std::abort which by default throws a SIGABRT, and crashing the program. Now, why did pure virtual method got called?
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.