Why exceptions from C++ virtual methods are not caught?

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In