Why exceptions from C++ virtual methods are not caught?
Issue
- Exceptions from C++ virtual methods are not caught which leads to application crash (ABORT and core dump)
- With disabled optimization (-O0) it seems to work.
- Both RHEL7 standard gcc 4.8.5 and compat gcc 4.4 are affected.
- Is fix for GCC Bug 68184 available in RHEL7 for gcc-g++
Environment
- Red Hat Enterprise Linux 7
- gcc 4.8.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
