From stdcxx-dev-return-82-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Sun Aug 28 19:43:07 2005 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 60465 invoked from network); 28 Aug 2005 19:43:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2005 19:43:07 -0000 Received: (qmail 16168 invoked by uid 500); 28 Aug 2005 19:43:07 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 16153 invoked by uid 500); 28 Aug 2005 19:43:07 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 16140 invoked by uid 99); 28 Aug 2005 19:43:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2005 12:43:06 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2A579138 for ; Sun, 28 Aug 2005 21:43:05 +0200 (CEST) Message-ID: <1333084349.1125258185171.JavaMail.jira@ajax.apache.org> Date: Sun, 28 Aug 2005 21:43:05 +0200 (CEST) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-15) EXCEPTION_DTOR test crashes with VC 7.1 debug In-Reply-To: <96817480.1124988191102.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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 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