Opened 6 years ago

Closed 6 years ago

#12224 closed Bugs (fixed)

Crash on MSVC with RTTI disabled

Reported by: raad@… Owned by: Raffi Enficiaud
Milestone: Boost 1.62.0 Component: test
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

When runtime type information is turned off, BOOST_NO_TYPEID is not defined for MSVC as well as the Intel compiler in MSVC mode as static typeid works fine. But dynamic typeid leads to a crash at runtime if RTTI is disabled. This happens in execution_monitor::execute when an exception is caught.

Patch that checks for BOOST_NO_RTTI in addition to BOOST_NO_TYPEID here: https://github.com/boostorg/test/pull/99

Change History (4)

comment:1 by Raffi Enficiaud, 6 years ago

Owner: changed from Gennadiy Rozental to Raffi Enficiaud

comment:2 by Raffi Enficiaud, 6 years ago

Status: newassigned

comment:3 by Raffi Enficiaud, 6 years ago

Milestone: To Be DeterminedBoost 1.62.0

On next-internal for testing

comment:4 by Raffi Enficiaud, 6 years ago

Resolution: fixed
Status: assignedclosed

Merged to master a38161dd316028d64f9dbf36168095470680a747

Note: See TracTickets for help on using tickets.