stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-15) EXCEPTION_DTOR test crashes with VC 7.1 debug
Date Sun, 28 Aug 2005 19:43:05 GMT
    [ http://issues.apache.org/jira/browse/STDCXX-15?page=comments#action_12320364 ] 

Martin Sebor commented on STDCXX-15:
------------------------------------

The purpose of the test is to determine whether the exception dtor is defined in the compiler's
runtime library or not (it could also be defined inline in the header <exception> that
comes with the compiler's native implementation of the C++ Standard Library).

We could fix the runtime problem by hardcoding the exception layout for each known compiler
(or simply by making the class defined in the test big enough and properly aligned), but since
it's really a link-time only test that may not even need to be executed the easiest way to
fix it might be to avoid running the body of main. The code will have to stay but we could
use argc or argv to avoid executing it (by relying on argc or argv we prevent optimizing compilers
from eliminating as dead).

> EXCEPTION_DTOR test crashes with VC 7.1 debug
> ---------------------------------------------
>
>          Key: STDCXX-15
>          URL: http://issues.apache.org/jira/browse/STDCXX-15
>      Project: STDCXX
>         Type: Bug
>   Components: Configuration
>     Versions: 4.1.3
>  Environment: MS VC++ 7.1 debug build
>     Reporter: Alex Ostapenko

>
> Test asserts on "Damage after normal" block. Probably reason is that std::exception class
declared in the EXCEPTION_DTOR.cpp has different layout from std::exception declared in the
VC headers. Thus external .ctor/.dtor call damages memory beyond the memory block allocated
for a class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message